Home
last modified time | relevance | path

Searched refs:swrContext_ (Results 1 - 2 of 2) sorted by relevance

/foundation/CastEngine/castengine_wifi_display/services/codec/src/
H A Daudio_aac_codec.cpp69 if (swrContext_) { in ~AudioAACDecoder()
70 swr_free(&swrContext_); in ~AudioAACDecoder()
132 if (swrContext_ == nullptr) { in OnFrame()
133 swrContext_ = swr_alloc_set_opts(nullptr, (int64_t)avFrame_->channel_layout, // out_ch_layout in OnFrame()
140 if (swrContext_ == nullptr) { in OnFrame()
141 SHARING_LOGE("swrContext_ alloc failed!"); in OnFrame()
145 swr_init(swrContext_); in OnFrame()
156 int nbSamples = swr_convert(swrContext_, &swrOutBuffer_, avFrame_->nb_samples, (const uint8_t **)avFrame_->data, in OnFrame()
/foundation/CastEngine/castengine_wifi_display/services/codec/include/
H A Daudio_aac_codec.h55 SwrContext *swrContext_ = nullptr; member in OHOS::Sharing::AudioAACDecoder

Completed in 2 milliseconds