Home
last modified time | relevance | path

Searched refs:mCodec (Results 1 – 12 of 12) 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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/
DImsMediaVideoSource.cpp31 mCodec = nullptr; in ImsMediaVideoSource()
194 mCodec = AMediaCodec_createEncoderByType(kMimeType); in Start()
196 if (mCodec == nullptr) in Start()
203 mCodec, mFormat, nullptr, nullptr, AMEDIACODEC_CONFIGURE_FLAG_ENCODE); in Start()
208 AMediaCodec_delete(mCodec); in Start()
209 mCodec = nullptr; in Start()
224 AMediaFormat* encoderInputFormat = AMediaCodec_getInputFormat(mCodec); in Start()
243 err = AMediaCodec_start(mCodec); in Start()
248 AMediaCodec_delete(mCodec); in Start()
249 mCodec = nullptr; in Start()
[all …]
DImsMediaVideoRenderer.cpp30 mCodec = nullptr; in ImsMediaVideoRenderer()
101 mCodec = AMediaCodec_createDecoderByType(kMimeType); in Start()
103 if (mCodec == nullptr) in Start()
114 media_status_t err = AMediaCodec_configure(mCodec, mFormat, mWindow, nullptr, 0); in Start()
119 AMediaCodec_delete(mCodec); in Start()
120 mCodec = nullptr; in Start()
126 err = AMediaCodec_start(mCodec); in Start()
131 AMediaCodec_delete(mCodec); in Start()
132 mCodec = nullptr; in Start()
153 if (mCodec != nullptr) in Stop()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/android/
DImsMediaAudioPlayer.cpp42 mCodec = nullptr; in ImsMediaAudioPlayer()
156 mCodec = AMediaCodec_createDecoderByType(kMimeType); in Start()
158 if (mCodec == nullptr) in Start()
167 media_status_t codecResult = AMediaCodec_configure(mCodec, mFormat, nullptr, nullptr, 0); in Start()
172 AMediaCodec_delete(mCodec); in Start()
173 mCodec = nullptr; in Start()
189 AMediaCodec_delete(mCodec); in Start()
190 mCodec = nullptr; in Start()
205 AMediaCodec_delete(mCodec); in Start()
206 mCodec = nullptr; in Start()
[all …]
DImsMediaAudioSource.cpp40 mCodec = nullptr; in ImsMediaAudioSource()
158 AMediaCodec_delete(mCodec); in Start()
159 mCodec = nullptr; in Start()
448 mCodec = AMediaCodec_createEncoderByType(kMimeType); in startCodec()
450 if (mCodec == nullptr) in startCodec()
460 mCodec, mFormat, nullptr, nullptr, AMEDIACODEC_CONFIGURE_FLAG_ENCODE); in startCodec()
465 AMediaCodec_delete(mCodec); in startCodec()
466 mCodec = nullptr; in startCodec()
472 codecResult = AMediaCodec_start(mCodec); in startCodec()
477 AMediaCodec_delete(mCodec); in startCodec()
[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
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_a2dp_encoding_fuzzer.cpp70 delete (mCodec); in ~A2dpEncodingFuzzer()
71 mCodec = nullptr; in ~A2dpEncodingFuzzer()
74 static A2dpCodecConfig* mCodec; member in A2dpEncodingFuzzer
77 A2dpCodecConfig* A2dpEncodingFuzzer::mCodec{nullptr};
81 if (!mCodec) { in process()
82 mCodec = A2dpCodecConfig::createCodec(fdp.PickValueInArray(kCodecIndices)); in process()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/android/include/
DImsMediaAudioPlayer.h162 AMediaCodec* mCodec; variable
DImsMediaAudioSource.h155 AMediaCodec* mCodec; variable
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/android/
DImsMediaVideoRenderer.h85 AMediaCodec* mCodec; variable
DImsMediaVideoSource.h154 AMediaCodec* mCodec; variable