/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/ |
H A D | audio_ffmpeg_encoder_plugin.cpp | 246 if (avCodec_->sample_fmts[index] == avCodecContext_->sample_fmt) { in CheckReformat() 261 srcFmt_ = avCodecContext_->sample_fmt; in Start() 263 avCodecContext_->sample_fmt = avCodec_->sample_fmts[0]; in Start() 280 avCodecContext_->sample_fmt, in Start() 380 / av_get_bytes_per_sample(avCodecContext_->sample_fmt) / avCodecContext_->channels)); in FillInFrameCache() 386 cachedFrame_->format = avCodecContext_->sample_fmt; in FillInFrameCache() 391 if (av_sample_fmt_is_planar(avCodecContext_->sample_fmt) && avCodecContext_->channels > 1) { in FillInFrameCache() 400 cachedFrame_->linesize[0] = nbSamples * av_get_bytes_per_sample(avCodecContext_->sample_fmt); in FillInFrameCache() 407 cachedFrame_->linesize[0] = nbSamples * av_get_bytes_per_sample(avCodecContext_->sample_fmt) * in FillInFrameCache()
|
H A D | ffmpeg_au_enc_config.cpp | 56 codecContext.sample_fmt = ffFmt; in ConfigAudioCommonAttr()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/ |
H A D | ffmpeg_base_decoder.cpp | 189 FFMpegConverter::ConvertFFMpegToOHAudioFormat(avCodecContext_->sample_fmt)); in ReceiveFrameSucc() 321 avCodecContext_->sample_fmt = AV_SAMPLE_FMT_S16; in InitContext() 322 avCodecContext_->request_sample_fmt = avCodecContext_->sample_fmt; in InitContext() 347 AVCODEC_LOGI("ffmpeg default sample_fmt :%{public}" PRId32, avCodecContext_->sample_fmt); in InitResample() 348 AVCODEC_LOGI("need sample_fmt :%{public}" PRId32, destFmt_); in InitResample() 350 if (avCodecContext_->sample_fmt != destFmt_) { in InitResample() 357 resamplePara.srcFfFmt = avCodecContext_->sample_fmt; in InitResample() 426 auto audioFmt = FFMpegConverter::ConvertFFMpegToOHAudioFormat(avCodecContext_->sample_fmt); in CheckSampleFormat()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/aac/ |
H A D | ffmpeg_aac_encoder_plugin.cpp | 429 tmpContext->sample_fmt = avCodecContext_->sample_fmt; in ReAllocateContext() 477 avCodecContext_->sample_fmt = srcFmt_; in InitContext() 491 avCodecContext_->sample_fmt = avCodec_->sample_fmts[0]; in InitContext() 504 MEDIA_LOG_I("avCodecContext_->sample_fmt " PUBLIC_LOG_D32, in OpenContext() 529 .destFmt = avCodecContext_->sample_fmt, in OpenContext() 628 cachedFrame_->format = avCodecContext_->sample_fmt; in InitFrame() 635 av_audio_fifo_alloc(avCodecContext_->sample_fmt, avCodecContext_->channels, cachedFrame_->nb_samples))) { in InitFrame() 693 int32_t bytesPerSample = av_get_bytes_per_sample(avCodecContext_->sample_fmt); in SendFrameToFfmpeg() 705 cachedFrame_->linesize[0] = readRet * av_get_bytes_per_sample(avCodecContext_->sample_fmt); in SendFrameToFfmpeg() [all...] |
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/ |
H A D | audio_ffmpeg_aac_encoder_plugin.cpp | 326 avCodecContext_->sample_fmt = srcFmt_; in InitContext() 329 avCodecContext_->sample_fmt = avCodec_->sample_fmts[0]; in InitContext() 357 .destFmt = avCodecContext_->sample_fmt, in OpenContext() 385 cachedFrame_->format = avCodecContext_->sample_fmt; in InitFrame() 450 auto bytesPerSample = av_get_bytes_per_sample(avCodecContext_->sample_fmt); in PcmFillFrame() 570 tmpContext->sample_fmt = avCodecContext_->sample_fmt; in ReAllocateContext()
|
H A D | audio_ffmpeg_encoder_plugin.cpp | 252 avCodecContext_->sample_fmt = ffSampleFormat; in InitContext() 295 tmpContext->sample_fmt = avCodecContext_->sample_fmt; in ReAllocateContext() 310 cachedFrame_->format = avCodecContext_->sample_fmt; in InitFrame()
|
/foundation/CastEngine/castengine_wifi_display/services/codec/src/ |
H A D | audio_aac_codec.cpp | 205 swr_ = swr_alloc_set_opts(NULL, enc_->channel_layout, enc_->sample_fmt, enc_->sample_rate, in_ch_layout, in InitSwr() 222 if ((error = av_samples_alloc(swrData_, NULL, enc_->channels, enc_->frame_size, enc_->sample_fmt, 0)) < 0) { in InitSwr() 266 enc_->sample_fmt = codec->sample_fmts[0]; // only supports AV_SAMPLE_FMT_FLTP in Init() 278 encFrame_->format = enc_->sample_fmt; in Init() 291 if (!(fifo_ = av_audio_fifo_alloc(enc_->sample_fmt, enc_->channels, enc_->frame_size))) { in Init()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/ |
H A D | audio_ffmpeg_decoder_plugin.cpp | 201 FFMpegConverter::ConvertFFMpegToOHAudioFormat(avCodecContext_->sample_fmt)); in ReceiveFrameSucc() 316 avCodecContext_->sample_fmt = AV_SAMPLE_FMT_S16; in InitContext() 317 avCodecContext_->request_sample_fmt = avCodecContext_->sample_fmt; in InitContext() 347 .srcFmt = avCodecContext_->sample_fmt, in InitResample()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/ |
H A D | ffmpeg_base_encoder.cpp | 290 avCodecContext_->sample_fmt = ffSampleFormat;
in InitContext() 335 tmpContext->sample_fmt = avCodecContext_->sample_fmt;
in ReAllocateContext() 350 cachedFrame_->format = avCodecContext_->sample_fmt;
in InitFrame()
|
/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestFFmpegDemuxer.cpp | 38 avCodecContextPtr->sample_fmt = avSampleFormat; in propagateAVSampleFormats()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/ |
H A D | histreamer_ability_querier.h | 75 std::vector<AudioSampleFormat> sample_fmt; member
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_decoder/ |
H A D | audio_ffmpeg_decoder_plugin.cpp | 318 tmpCtx->sample_fmt = tmpFmt; in Prepare() 319 tmpCtx->request_sample_fmt = tmpCtx->sample_fmt; in Prepare() 561 if (av_sample_fmt_is_planar(avCodecContext_->sample_fmt)) { in ReceiveFrameSucc()
|
/foundation/multimedia/media_foundation/services/media_monitor/server/src/ |
H A D | media_audio_encoder.cpp | 362 audioCodecContext_->sample_fmt = codec->sample_fmts ? codec->sample_fmts[0] : AV_SAMPLE_FMT_S16; in InitAudioEncode() 364 audioCodecContext_->sample_fmt = AV_SAMPLE_FMT_S32; in InitAudioEncode() 387 avFrame_->format = audioCodecContext_->sample_fmt; in InitFrame()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_track_meta.cpp | 130 if (avCodecContext->sample_fmt != AV_SAMPLE_FMT_NONE) { in ConvertCommonAudioStreamToMetaInfo() 131 meta.Set<Tag::AUDIO_SAMPLE_FORMAT>(ConvFf2PSampleFmt(avCodecContext->sample_fmt)); in ConvertCommonAudioStreamToMetaInfo()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/include/ |
H A D | histreamer_ability_parser.h | 292 std::vector<AudioSampleFormat> sample_fmt; member
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/ |
H A D | histreamer_ability_querier.cpp | 45 static const std::string AUDIO_SAMPLE_FORMAT = "sample_fmt"; 347 out.sample_fmt = AnyCast<std::vector<AudioSampleFormat>>(cap.keys[CapabilityID::AUDIO_SAMPLE_FORMAT]); in ParseAudioDecoderOut() 429 for (auto &sampleFormat : audioDecoderOut.sample_fmt) { in ToJson() 456 audioDecoderOut.sample_fmt.push_back(static_cast<AudioSampleFormat>(sampleInfo->valueint)); in FromJson()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | histreamer_ability_parser.cpp | 29 static const std::string AUDIO_SAMPLE_FORMAT = "sample_fmt"; 179 audioDecoderOut.sample_fmt.push_back((AudioSampleFormat)format->valuedouble); in FromJson()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/ |
H A D | histreamer_ability_parser_test.cpp | 194 EXPECT_TRUE(audioDecoderOut.sample_fmt.empty()); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/ |
H A D | histreamer_ability_querier_test.cpp | 400 EXPECT_TRUE(audioDecoderOut.sample_fmt.empty()); in HWTEST_F()
|