Home
last modified time | relevance | path

Searched refs:channel_layout (Results 1 - 23 of 23) sorted by relevance

/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_decoder/
H A Dffmpeg_base_decoder.cpp190 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 Daudio_aac_codec.cpp133 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 Dffmpeg_base_encoder.cpp285 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 Daudio_ffmpeg_encoder_plugin.cpp247 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 Daudio_ffmpeg_aac_encoder_plugin.cpp325 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 Daudio_ffmpeg_decoder_plugin.cpp202 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 Daudio_aac_codec.h32 #include <libavutil/channel_layout.h>
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/aac/
H A Dffmpeg_aac_encoder_plugin.cpp428 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 Dmedia_audio_encoder.cpp369 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 Dffmpeg_au_enc_config.cpp62 codecContext.channel_layout = ffLayout; in ConfigAudioCommonAttr()
H A Daudio_ffmpeg_encoder_plugin.cpp277 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 DTestFFmpegDemuxer.cpp64 avCodecContextPtr->channel_layout = channelLayout; in propagateChannelLayouts()
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/
H A Dhistreamer_ability_querier.h70 std::vector<AudioChannelLayout> channel_layout; member
/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/
H A Dhistreamer_ability_parser_test.cpp170 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 Dhistreamer_ability_parser.h287 std::vector<AudioChannelLayout> channel_layout; member
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp49 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 Dhistreamer_ability_querier_test.cpp373 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 Drtp_codec_ts.cpp314 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 Dffmpeg_track_meta.cpp123 avCodecContext->channel_layout)); in ConvertCommonAudioStreamToMetaInfo()
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp33 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 Dffmpeg_muxer_plugin.cpp172 stream->codecpar->channel_layout = (uint64_t)layout; in SetParameterOfAuTrack()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_format_helper.cpp659 avStream.codecpar->channel_layout, channels); in ParseAudioTrackInfo()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/muxer/
H A Dffmpeg_muxer_plugin.cpp613 st->codecpar->channel_layout = ffChannelLayout; in AddAudioTrack()

Completed in 20 milliseconds