Home
last modified time | relevance | path

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

/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/src/
H A DAudioDecoderDemoCommon.cpp538 codec_ctx = avcodec_alloc_context3(codec); in NativeGetVorbisConf()
539 if (codec_ctx == NULL) { in NativeGetVorbisConf()
543 ret = avcodec_parameters_to_context(codec_ctx, codec_params); in NativeGetVorbisConf()
548 ret = avcodec_open2(codec_ctx, codec, NULL); in NativeGetVorbisConf()
553 OH_AVFormat_SetBuffer(format, OH_MD_KEY_CODEC_CONFIG, (uint8_t *)(codec_ctx->extradata), codec_ctx->extradata_size); in NativeGetVorbisConf()
624 if (codec_ctx != nullptr) { in NativeCloseFFmpeg()
625 avcodec_free_context(&codec_ctx); in NativeCloseFFmpeg()
1034 if (codec_ctx != nullptr) { in TestFFmpeg()
1035 avcodec_free_context(&codec_ctx); in TestFFmpeg()
[all...]
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/include/
H A DAudioDecoderDemoCommon.h243 AVCodecContext* codec_ctx = nullptr; member in OHOS::MediaAVCodec::AudioDecoderDemo

Completed in 4 milliseconds