/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 75 AMediaCodec* mCodec; member in CodecHandler 84 sp<android::MediaCodec> mCodec; member 100 mCodec = codec; in CodecHandler() 108 if (mCodec->mRequestedActivityNotification) { in onMessageReceived() 112 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived() 113 mCodec->mRequestedActivityNotification = true; in onMessageReceived() 123 if (generation != mCodec->mGeneration) { in onMessageReceived() 128 mCodec->mRequestedActivityNotification = false; in onMessageReceived() 131 if (mCodec->mCallback) { in onMessageReceived() 132 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AmrInputStream.java | 38 MediaCodec mCodec; field in AmrInputStream 72 mCodec = MediaCodec.createByCodecName(name); in AmrInputStream() 73 mCodec.configure(format, in AmrInputStream() 77 mCodec.start(); in AmrInputStream() 79 if (mCodec != null) { in AmrInputStream() 80 mCodec.release(); in AmrInputStream() 82 mCodec = null; in AmrInputStream() 110 if (mCodec == null) { in read() 121 int index = mCodec.dequeueInputBuffer(0); in read() 135 ByteBuffer buf = mCodec.getInputBuffer(index); in read() [all …]
|
D | EncoderCapabilities.java | 48 public final int mCodec; // @see android.media.MediaRecorder.VideoEncoder field in EncoderCapabilities.VideoEncoderCap 68 mCodec = codec; in VideoEncoderCap() 93 … public final int mCodec; // @see android.media.MediaRecorder.AudioEncoder field in EncoderCapabilities.AudioEncoderCap 103 mCodec = codec; in AudioEncoderCap()
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | Decoder.cpp | 46 if (mediaCodec == mCodec && mediaCodec) { in onInputAvailable() 55 uint8_t *buf = AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable() 79 media_status_t status = AMediaCodec_queueInputBuffer(mCodec, bufIdx, 0 /* offset */, in onInputAvailable() 95 if (mediaCodec == mCodec && mediaCodec) { in onOutputAvailable() 105 uint8_t *buf = AMediaCodec_getOutputBuffer(mCodec, bufIdx, &bufSize); in onOutputAvailable() 112 AMediaCodec_releaseOutputBuffer(mCodec, bufIdx, false); in onOutputAvailable() 127 if (mediaCodec == mCodec && mediaCodec) { in onFormatChanged() 135 if (mediaCodec == mCodec && mediaCodec) { in onError() 149 return AMediaCodec_getOutputFormat(mCodec); in getFormat() 165 mCodec = createMediaCodec(mFormat, mime, codecName, false /*isEncoder*/); in decode() [all …]
|
D | Decoder.h | 33 : mCodec(nullptr), in Decoder() 80 AMediaCodec *mCodec;
|
/frameworks/av/media/libstagefright/ |
D | ACodec.cpp | 268 ACodec *mCodec; member 5659 mCodec(codec) { in BaseState() 5668 ++mCodec->mStateGeneration; in stateExited() 5709 status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get())); in onMessageReceived() 5723 mCodec->signalError(OMX_ErrorUndefined, INVALID_OPERATION); in onMessageReceived() 5731 mCodec->mGraphicBufferSource.clear(); in onMessageReceived() 5732 mCodec->signalError(OMX_ErrorResourcesLost, DEAD_OBJECT); in onMessageReceived() 5739 mCodec->mComponentName.c_str()); in onMessageReceived() 5740 status_t err = mCodec->mOMXNode->freeNode(); in onMessageReceived() 5742 mCodec->mComponentName.c_str(), err); in onMessageReceived() [all …]
|
D | SimpleDecodingSource.cpp | 124 : mCodec(codec), in SimpleDecodingSource() 130 mCodec->getName(&mComponentName); in SimpleDecodingSource() 134 mCodec->release(); in ~SimpleDecodingSource() 144 status_t res = mCodec->start(); in start() 172 status_t res1 = mCodec->stop(); in stop() 174 mCodec->release(); in stop() 239 mCodec->flush(); in doRead() 253 res = mCodec->dequeueInputBuffer(&in_ix, kTimeoutWaitForInputUs); in doRead() 261 res = mCodec->getInputBuffer(in_ix, &in_buffer); in doRead() 285 if (mCodec->queueInputBuffer( in doRead() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.cpp | 26 if (mediaCodec == mCodec && mediaCodec) { in onInputAvailable() 35 char *buf = (char *)AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable() 104 media_status_t status = AMediaCodec_queueInputBuffer(mCodec, bufIdx, 0 /* offset */, in onInputAvailable() 120 if (mediaCodec == mCodec && mediaCodec) { in onOutputAvailable() 129 AMediaCodec_releaseOutputBuffer(mCodec, bufIdx, false); in onOutputAvailable() 143 if (mediaCodec == mCodec && mediaCodec) { in onFormatChanged() 151 if (mediaCodec == mCodec && mediaCodec) { in onError() 168 if (!mCodec) return; in deInitCodec() 170 AMediaCodec_stop(mCodec); in deInitCodec() 171 AMediaCodec_delete(mCodec); in deInitCodec() [all …]
|
D | Encoder.h | 51 : mCodec(nullptr), in Encoder() 87 AMediaCodec *mCodec;
|
/frameworks/av/cmds/stagefright/ |
D | mediafilter.cpp | 133 sp<MediaCodec> mCodec; member 168 status_t err = filterState->mCodec->dequeueInputBuffer( in tryCopyDecodedBuffer() 192 vidState->mCodec->getOutputFormat(&srcFormat); in tryCopyDecodedBuffer() 193 filterState->mCodec->getInputFormat(&destFormat); in tryCopyDecodedBuffer() 228 filterState->mCodec->flush(); in tryCopyDecodedBuffer() 230 err = filterState->mCodec->queueInputBuffer( in tryCopyDecodedBuffer() 241 err = filterState->mCodec->queueInputBuffer( in tryCopyDecodedBuffer() 246 err = vidState->mCodec->releaseOutputBuffer(outIndex); in tryCopyDecodedBuffer() 261 status_t err = filterState->mCodec->dequeueOutputBuffer( in tryDrainOutputBuffer() 272 filterState->mCodec->flush(); in tryDrainOutputBuffer() [all …]
|
D | codec.cpp | 58 sp<MediaCodec> mCodec; member 123 state->mCodec = MediaCodec::CreateByType( in decode() 126 CHECK(state->mCodec != NULL); in decode() 128 err = state->mCodec->configure( in decode() 147 sp<MediaCodec> codec = state->mCodec; in decode() 172 err = state->mCodec->dequeueInputBuffer(&index, kTimeout); in decode() 190 err = state->mCodec->queueInputBuffer( in decode() 211 state->mCodec->dequeueInputBuffer(&index, kTimeout); in decode() 216 err = state->mCodec->queueInputBuffer( in decode() 258 status_t err = state->mCodec->dequeueOutputBuffer( in decode() [all …]
|
D | SimplePlayer.cpp | 318 state->mCodec = MediaCodec::CreateByType( in onPrepare() 321 CHECK(state->mCodec != NULL); in onPrepare() 323 err = state->mCodec->configure( in onPrepare() 343 status_t err = state->mCodec->start(); in onPrepare() 346 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare() 349 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare() 356 err = state->mCodec->dequeueInputBuffer(&index, -1ll); in onPrepare() 365 err = state->mCodec->queueInputBuffer( in onPrepare() 404 CHECK_EQ(state->mCodec->release(), (status_t)OK); in onReset() 426 err = state->mCodec->dequeueInputBuffer(&index); in onDoMoreStuff() [all …]
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 51 private MediaCodec mCodec; field in DisplaySinkService 144 if (mCodec != null) { in updateSurfaceFromUi() 145 mCodec.stop(); in updateSurfaceFromUi() 146 mCodec = null; in updateSurfaceFromUi() 155 mCodec = MediaCodec.createDecoderByType("video/avc"); in updateSurfaceFromUi() 160 mCodec.configure(format, mSurface, null, 0); in updateSurfaceFromUi() 161 mCodec.start(); in updateSurfaceFromUi() 179 if (mCodec == null) { in decode() 195 final int index = mCodec.dequeueInputBuffer(0); in provideCodecInputLocked() 200 mCodecInputBuffers = mCodec.getInputBuffers(); in provideCodecInputLocked() [all …]
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Encoder.java | 40 private MediaCodec mCodec; field in Encoder 124 mCodec = createCodec(codecName, mime); in encode() 125 if (mCodec == null) { in encode() 130 mCodec.configure(encodeFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encode() 132 Log.e(TAG, "Failed to configure " + mCodec.getName() + " encoder."); in encode() 140 MediaFormat format = mCodec.getInputFormat(); in encode() 151 mCodec.setCallback(new MediaCodec.Callback() { in encode() 191 mCodec.start(); in encode() 208 int inputBufferId = mCodec.dequeueInputBuffer(kQueueDequeueTimeoutUs); in encode() 215 onInputAvailable(mCodec, inputBufferId); in encode() [all …]
|
D | Decoder.java | 37 private MediaCodec mCodec; field in Decoder 113 mCodec = createCodec(codecName, format); in decode() 114 if (mCodec == null) { in decode() 118 mCodec.setCallback(new MediaCodec.Callback() { in decode() 161 mCodec.configure(format, null, null, isEncoder); in decode() 162 mCodec.start(); in decode() 180 int inputBufferId = mCodec.dequeueInputBuffer(kQueueDequeueTimeoutUs); in decode() 188 onInputAvailable(inputBufferId, mCodec); in decode() 193 mCodec.dequeueOutputBuffer(outputBufferInfo, kQueueDequeueTimeoutUs); in decode() 196 MediaFormat outFormat = mCodec.getOutputFormat(); in decode() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 205 : mCodec(codec), in VideoCodec() 212 mCodec = copy.mCodec; in VideoCodec() 221 video_encoder mCodec; member 230 : mCodec(codec), in AudioCodec() 236 mCodec = copy.mCodec; in AudioCodec() 244 audio_encoder mCodec; member 288 : mCodec(codec), in VideoEncoderCap() 296 video_encoder mCodec; member 309 : mCodec(codec), in AudioEncoderCap() 316 audio_encoder mCodec; member [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 103 if (mCodec != NULL) { in ~Decoder() 104 mCodec->release(); in ~Decoder() 242 if (mCodec != NULL && mSurface != NULL) { in onMessageReceived() 250 err = mCodec->setSurface(surface); in onMessageReceived() 286 CHECK(mCodec == NULL); in onConfigure() 303 mCodec = MediaCodec::CreateByType( in onConfigure() 307 if (mCodec != NULL) { in onConfigure() 308 mCodec->getName(&mComponentName); in onConfigure() 310 mCodec->release(); in onConfigure() 312 mCodec = MediaCodec::CreateByComponentName( in onConfigure() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioStream.java | 46 private AudioCodec mCodec; field in AudioStream 109 return mCodec; in getCodec() 126 mCodec = codec; in setCodec() 161 if (mCodec != null && type == mCodec.type) { in setDtmfType()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | DataStreamFileCodec.java | 36 private final DataStreamCodec<T> mCodec; field in DataStreamFileCodec 44 mCodec = codec; in DataStreamFileCodec() 58 return mCodec.deserialize(dataInputStream); in deserialize() 74 mCodec.serialize(t, dataOutputStream); in serialize()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 155 mCodec = MediaCodec::CreateByType(mLooper, name, encoder, &mInitStatus); in JMediaCodec() 156 if (mCodec == nullptr || mCodec->getName(&mNameAtCreation) != OK) { in JMediaCodec() 160 mCodec = MediaCodec::CreateByComponentName(mLooper, name, &mInitStatus); in JMediaCodec() 163 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec() 215 if (mCodec != NULL) { in release() 216 mCodec->release(); in release() 274 return mCodec->setOnFrameRenderedNotification(mOnFrameRenderedNotification); in enableOnFrameRenderedListener() 286 return mCodec->setCallback(mCallbackNotification); in setCallback() 303 return mCodec->configure( in configure() 313 status_t err = mCodec->setSurface(client); in setSurface() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | AnimatedImageDrawable.cpp | 54 if (imageDecoder->mCodec->getEncodedFormat() != SkEncodedImageFormat::kWEBP) { in AnimatedImageDrawable_nCreate() 55 const int frameCount = imageDecoder->mCodec->codec()->getFrameCount(); in AnimatedImageDrawable_nCreate() 58 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate() 69 auto info = imageDecoder->mCodec->getInfo().makeWH(width, height) in AnimatedImageDrawable_nCreate() 97 sk_sp<SkAnimatedImage> animatedImg = SkAnimatedImage::Make(std::move(imageDecoder->mCodec), in AnimatedImageDrawable_nCreate()
|
D | ImageDecoder.cpp | 113 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec), in native_create() 115 if (!decoder->mCodec.get()) { in native_create() 119 const auto& info = decoder->mCodec->getInfo(); in native_create() 211 SkAndroidCodec* codec = decoder->mCodec.get(); in ImageDecoder_nDecodeBitmap() 492 SkISize size = decoder->mCodec->getSampledDimensions(sampleSize); in ImageDecoder_nGetSampledSize() 508 return encodedFormatToString(env, decoder->mCodec->getEncodedFormat()); in ImageDecoder_nGetMimeType() 512 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); in ImageDecoder_nGetColorSpace()
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 166 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 177 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 187 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap() 198 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap() 208 ALOGV("codec = %d", cap.mCodec); in logVideoDecoderCap() 215 ALOGV("codec = %d", cap.mCodec); in logAudioDecoderCap() 976 encoders.add(mVideoEncoders[i]->mCodec); in getVideoEncoders() 986 if (mVideoEncoders[i]->mCodec == codec) { in getVideoEncoderParamByName() 1013 encoders.add(mAudioEncoders[i]->mCodec); in getAudioEncoders() 1023 if (mAudioEncoders[i]->mCodec == codec) { in getAudioEncoderParamByName() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicCompositeStream.cpp | 153 res = mCodec->createInputSurface(&producer); in createInternalStreams() 167 res = mCodec->start(); in createInternalStreams() 368 mCodec->releaseOutputBuffer(outputBufferInfo.index); in onHeicOutputFrameAvailable() 371 mCodec->releaseOutputBuffer(outputBufferInfo.index); in onHeicOutputFrameAvailable() 858 res = mCodec->setParameters(qualityParams); in startMuxerForInputFrame() 964 auto res = mCodec->getInputBuffer(inputBuffer.index, &buffer); in processCodecInputFrame() 991 res = mCodec->queueInputBuffer(inputBuffer.index, 0, buffer->capacity(), in processCodecInputFrame() 1008 status_t res = mCodec->getOutputBuffer(it->index, &buffer); in processOneCodecOutputFrame() 1029 mCodec->releaseOutputBuffer(it->index); in processOneCodecOutputFrame() 1117 mCodec->releaseOutputBuffer(it->index); in releaseInputFrameLocked() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 119 AudioCodec *mCodec; member in __anon5fc701100111::AudioStream 152 mCodec = NULL; in AudioStream() 160 delete mCodec; in ~AudioStream() 204 mCodec = codec; in set() 341 if (!mCodec) { in encode() 351 int length = mCodec->encode(&buffer[3], samples); in encode() 404 if (!mCodec) { in decode() 441 length = mCodec->decode(samples, count, &buffer[offset], length); in decode()
|