/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/ |
H A D | ffmpeg_base_decoder.cpp | 190 auto layout = FFMpegConverter::ConvertFFToOHAudioChannelLayoutV2(avCodecContext_->channel_layout, in ReceiveFrameSucc() 192 if (avCodecContext_->channel_layout == 0 && avCodecContext_->channels == 1) { // 1 channel: mono in ReceiveFrameSucc() 194 avCodecContext_->channel_layout = AV_CH_LAYOUT_MONO; in ReceiveFrameSucc() 195 } else if (avCodecContext_->channel_layout == 0 && avCodecContext_->channels == 2) { // 2 channel: stereo in ReceiveFrameSucc() 197 avCodecContext_->channel_layout = AV_CH_LAYOUT_STEREO; in ReceiveFrameSucc() 300 avCodecContext_->channel_layout = ffChannelLayout; in InitContext() 304 avCodecContext_->channel_layout = AV_CH_LAYOUT_MONO; in InitContext() 307 avCodecContext_->channel_layout = AV_CH_LAYOUT_STEREO; in InitContext() 346 AVCODEC_LOGI("channel_layout :%{public}" PRId64, avCodecContext_->channel_layout); in InitResample() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/codec/src/ |
H A D | audio_aac_codec.cpp | 133 swrContext_ = swr_alloc_set_opts(nullptr, (int64_t)avFrame_->channel_layout, // out_ch_layout in OnFrame() 136 (int64_t)avFrame_->channel_layout, // in_ch_layout in OnFrame() 205 swr_ = swr_alloc_set_opts(NULL, enc_->channel_layout, enc_->sample_fmt, enc_->sample_rate, in_ch_layout, in InitSwr() 234 enc_->channel_layout = av_get_default_channel_layout(channels); in InitEncoderCtx() 280 encFrame_->channel_layout = enc_->channel_layout; in Init()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/ |
H A D | ffmpeg_base_encoder.cpp | 285 avCodecContext_->channel_layout = ffChannelLayout;
in InitContext() 334 tmpContext->channel_layout = avCodecContext_->channel_layout;
in ReAllocateContext() 351 cachedFrame_->channel_layout = avCodecContext_->channel_layout;
in InitFrame()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/encoder/ |
H A D | audio_ffmpeg_encoder_plugin.cpp | 247 avCodecContext_->channel_layout = ffChannelLayout; in InitContext() 294 tmpContext->channel_layout = avCodecContext_->channel_layout; in ReAllocateContext() 311 cachedFrame_->channel_layout = avCodecContext_->channel_layout; in InitFrame()
|
H A D | audio_ffmpeg_aac_encoder_plugin.cpp | 325 avCodecContext_->channel_layout = srcLayout_; in InitContext() 386 cachedFrame_->channel_layout = avCodecContext_->channel_layout; in InitFrame() 569 tmpContext->channel_layout = avCodecContext_->channel_layout; in ReAllocateContext()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/decoder/ |
H A D | audio_ffmpeg_decoder_plugin.cpp | 202 auto layout = FFMpegConverter::ConvertFFToOHAudioChannelLayout(avCodecContext_->channel_layout); in ReceiveFrameSucc() 300 avCodecContext_->channel_layout = ffChannelLayout; in InitContext() 304 avCodecContext_->channel_layout = AV_CH_LAYOUT_MONO; in InitContext() 307 avCodecContext_->channel_layout = AV_CH_LAYOUT_STEREO; in InitContext()
|
/foundation/CastEngine/castengine_wifi_display/services/codec/include/ |
H A D | audio_aac_codec.h | 32 #include <libavutil/channel_layout.h>
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/aac/ |
H A D | ffmpeg_aac_encoder_plugin.cpp | 428 tmpContext->channel_layout = avCodecContext_->channel_layout; in ReAllocateContext() 476 avCodecContext_->channel_layout = srcLayout_; in InitContext() 503 MEDIA_LOG_I("avCodecContext_->channel_layout " PUBLIC_LOG_D64, avCodecContext_->channel_layout); in OpenContext() 629 cachedFrame_->channel_layout = avCodecContext_->channel_layout; in InitFrame()
|
/foundation/multimedia/media_foundation/services/media_monitor/server/src/ |
H A D | media_audio_encoder.cpp | 369 audioCodecContext_->channel_layout = static_cast<uint64_t>(apiWrap_->GetChannelLayout(audioConfig.channels)); in InitAudioEncode() 389 avFrame_->channel_layout = audioCodecContext_->channel_layout; in InitFrame() 420 avFrame_->channel_layout, in InitSampleConvert()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/ |
H A D | ffmpeg_au_enc_config.cpp | 62 codecContext.channel_layout = ffLayout; in ConfigAudioCommonAttr()
|
H A D | audio_ffmpeg_encoder_plugin.cpp | 277 static_cast<int64_t>(avCodecContext_->channel_layout), in Start() 389 cachedFrame_->channel_layout = avCodecContext_->channel_layout; in FillInFrameCache()
|
/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestFFmpegDemuxer.cpp | 64 avCodecContextPtr->channel_layout = channelLayout; in propagateChannelLayouts()
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/ |
H A D | histreamer_ability_querier.h | 70 std::vector<AudioChannelLayout> channel_layout; member
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/ |
H A D | histreamer_ability_parser_test.cpp | 170 EXPECT_TRUE(audioDecoderIn.channel_layout.empty()); in HWTEST_F() 221 audioDecoderIn.channel_layout = { in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/include/ |
H A D | histreamer_ability_parser.h | 287 std::vector<AudioChannelLayout> channel_layout; member
|
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/ |
H A D | histreamer_ability_querier.cpp | 49 static const std::string AUDIO_CHANNEL_LAYOUT = "channel_layout"; 333 in.channel_layout = AnyCast<std::vector<AudioChannelLayout>>(cap.keys[CapabilityID::AUDIO_CHANNEL_LAYOUT]); in ParseAudioDecoderIn() 388 for (auto &layout : audioDecoderIn.channel_layout) { in ToJson() 414 audioDecoderIn.channel_layout.push_back(static_cast<AudioChannelLayout>(layoutInfo->valueint)); in FromJson()
|
/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 | 373 EXPECT_TRUE(audioDecoderIn.channel_layout.empty()); in HWTEST_F() 431 audioDecoderIn.channel_layout = { in HWTEST_F()
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtp/src/ |
H A D | rtp_codec_ts.cpp | 314 audioStream->codecpar->channel_layout = av_get_default_channel_layout(AUDIO_CHANNEL_STEREO); in StartEncoding()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_track_meta.cpp | 123 avCodecContext->channel_layout)); in ConvertCommonAudioStreamToMetaInfo()
|
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | histreamer_ability_parser.cpp | 33 static const std::string AUDIO_CHANNEL_LAYOUT = "channel_layout"; 155 audioDecoderIn.channel_layout.push_back((AudioChannelLayout)layout->valuedouble); in FromJson()
|
/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 172 stream->codecpar->channel_layout = (uint64_t)layout; in SetParameterOfAuTrack()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_format_helper.cpp | 659 avStream.codecpar->channel_layout, channels); in ParseAudioTrackInfo()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 613 st->codecpar->channel_layout = ffChannelLayout; in AddAudioTrack()
|