Home
last modified time | relevance | path

Searched refs:swrContext (Results 1 - 4 of 4) sorted by relevance

/foundation/multimedia/av_codec/services/engine/codec/audio/
H A Daudio_resample.cpp46 SwrContext *swrContext = swr_alloc(); in InitSwrContext() local
47 if (swrContext == nullptr) { in InitSwrContext()
52 swr_alloc_set_opts2(&swrContext, &resamplePara_.channelLayout, resamplePara_.destFmt, resamplePara_.sampleRate, in InitSwrContext()
58 if (swr_init(swrContext) != 0) { in InitSwrContext()
62 swrCtx_ = std::shared_ptr<SwrContext>(swrContext, [](SwrContext *ptr) { in InitSwrContext()
/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dffmpeg_convert.cpp39 auto swrContext = swr_alloc(); in Init() local
40 if (swrContext == nullptr) { in Init()
44 int32_t error = swr_alloc_set_opts2(&swrContext, &resamplePara_.channelLayout, resamplePara_.destFmt, in Init()
51 if (swr_init(swrContext) != 0) { in Init()
55 swrCtx_ = std::shared_ptr<SwrContext>(swrContext, [](SwrContext *ptr) { in Init()
69 auto swrContext = swr_alloc(); in InitSwrContext() local
70 if (swrContext == nullptr) { in InitSwrContext()
75 swr_alloc_set_opts2(&swrContext, &resamplePara_.channelLayout, resamplePara_.destFmt, resamplePara_.sampleRate, in InitSwrContext()
81 if (swr_init(swrContext) != 0) { in InitSwrContext()
85 swrCtx_ = std::shared_ptr<SwrContext>(swrContext, [](SwrContex in InitSwrContext()
[all...]
/foundation/multimedia/media_foundation/engine/plugin/convert/
H A Dffmpeg_convert.cpp35 auto swrContext = swr_alloc(); in Init() local
36 if (swrContext == nullptr) { in Init()
40 swrContext = swr_alloc_set_opts(swrContext, resamplePara_.channelLayout, resamplePara_.destFmt, in Init()
43 if (swr_init(swrContext) != 0) { in Init()
47 swrCtx_ = std::shared_ptr<SwrContext>(swrContext, [](SwrContext *ptr) { in Init()
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dmedia_audio_encoder.cpp93 auto swrContext = apiWrap_->SwrAlloc(); in Init() local
94 if (swrContext == nullptr) { in Init()
98 swrContext = apiWrap_->SwrSetOpts(swrContext, in Init()
102 if (apiWrap_->SwrInit(swrContext) != 0) { in Init()
106 swrCtx_ = std::shared_ptr<SwrContext>(swrContext, [this](SwrContext* ptr) { in Init()

Completed in 3 milliseconds