Home
last modified time | relevance | path

Searched refs:mCodec (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMediaCodecAudioDecoder.java40 private MediaCodec mCodec; field in MediaCodecAudioDecoder
75 return format != null && mCodec == null; in shouldInitCodec()
93 mCodec = MediaCodec.createByCodecName(codecName); in maybeInitDecoder()
94 mCodec.configure(format.getFrameworkMediaFormatV16(), null, null, 0); in maybeInitDecoder()
95 mCodec.start(); in maybeInitDecoder()
108 if (mCodec == null) { in resetDecoderState()
114 mCodec.flush(); in resetDecoderState()
120 if (mCodec != null) { in release()
126 mCodec.stop(); in release()
129 mCodec.release(); in release()
[all …]
/packages/services/Car/cpp/computepipe/runner/input_manager/
DVideoDecoder.cpp74 if (!mCodec) { in getPlaybackFrameRate()
154 mCodec = AMediaCodec_createDecoderByType(mime); in initializeMediaDecoder()
155 if (!mCodec) { in initializeMediaDecoder()
162 media_status_t status = AMediaCodec_configure(mCodec, format, nullptr, nullptr, 0); in initializeMediaDecoder()
177 if (mCodec) { in releaseResources()
180 AMediaCodec_releaseOutputBuffer(mCodec, buffer.first, false); in releaseResources()
183 AMediaFormat* format = AMediaCodec_getOutputFormat(mCodec); in releaseResources()
185 (void)AMediaCodec_delete(mCodec); in releaseResources()
186 mCodec = nullptr; in releaseResources()
195 if (!mExtractor || !mCodec) { in decoderThreadFunction()
[all …]
DVideoDecoder.h85 AMediaCodec* mCodec = nullptr; variable