/frameworks/av/media/ndk/fuzzer/ |
D | ndk_sync_codec_fuzzer.cpp | 38 AMediaCodec* mCodec = nullptr; member in NdkSyncCodecFuzzer 50 AMediaCodec_configure(mCodec, getCodecFormat(), nativeWindow, nullptr /* crypto */, in invokekSyncCodecAPIs() 55 AMediaCodec_start(mCodec); in invokekSyncCodecAPIs() 59 AMediaCodec_stop(mCodec); in invokekSyncCodecAPIs() 67 invokeInputBufferOperationAPI(mCodec); in invokekSyncCodecAPIs() 71 invokeOutputBufferOperationAPI(mCodec); in invokekSyncCodecAPIs() 75 invokeCodecFormatAPI(mCodec); in invokekSyncCodecAPIs() 79 AMediaCodec_signalEndOfInputStream(mCodec); in invokekSyncCodecAPIs() 88 AMediaCodec_setParameters(mCodec, params); in invokekSyncCodecAPIs() 93 AMediaCodec_flush(mCodec); in invokekSyncCodecAPIs() [all …]
|
D | ndk_async_codec_fuzzer.cpp | 174 AMediaCodec* mCodec = nullptr; member in NdkAsyncCodecFuzzer 310 AMediaCodec_createInputSurface(mCodec, &nativeWindow); in invokekAsyncCodecAPIs() 313 if (AMEDIA_OK == AMediaCodec_configure(mCodec, getCodecFormat(), nativeWindow, in invokekAsyncCodecAPIs() 320 AMediaCodec_setAsyncNotifyCallback(mCodec, callBack, this); in invokekAsyncCodecAPIs() 323 AMediaCodec_start(mCodec); in invokekAsyncCodecAPIs() 331 invokeFormatAPI(mCodec); in invokekAsyncCodecAPIs() 335 AMediaCodec_signalEndOfInputStream(mCodec); in invokekAsyncCodecAPIs() 345 AMediaCodec_setParameters(mCodec, params); in invokekAsyncCodecAPIs() 350 AMediaCodec_flush(mCodec); in invokekAsyncCodecAPIs() 352 AMediaCodec_start(mCodec); in invokekAsyncCodecAPIs() [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 | 49 public final int mCodec; // @see android.media.MediaRecorder.VideoEncoder field in EncoderCapabilities.VideoEncoderCap 69 mCodec = codec; in VideoEncoderCap() 94 … public final int mCodec; // @see android.media.MediaRecorder.AudioEncoder field in EncoderCapabilities.AudioEncoderCap 104 mCodec = codec; in AudioEncoderCap()
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 100 AMediaCodec* mCodec; member in CodecHandler 109 sp<android::MediaCodec> mCodec; member 130 mCodec = codec; in CodecHandler() 138 if (mCodec->mRequestedActivityNotification) { in onMessageReceived() 142 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived() 143 mCodec->mRequestedActivityNotification = true; in onMessageReceived() 153 if (generation != mCodec->mGeneration) { in onMessageReceived() 158 mCodec->mRequestedActivityNotification = false; in onMessageReceived() 161 if (mCodec->mCallback) { in onMessageReceived() 162 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived() [all …]
|
/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 …]
|
/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/media/libstagefright/ |
D | ACodec.cpp | 286 ACodec *mCodec; member 302 (new AMessage(kWhatSubmitExtraOutputMetadataBuffer, mCodec))->post(); in maybePostExtraOutputMetadataBufferRequest() 5948 mCodec(codec), in BaseState() 5958 ++mCodec->mStateGeneration; in stateExited() 5999 status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get())); in onMessageReceived() 6013 mCodec->signalError(OMX_ErrorUndefined, INVALID_OPERATION); in onMessageReceived() 6021 mCodec->mGraphicBufferSource.clear(); in onMessageReceived() 6022 mCodec->signalError(OMX_ErrorResourcesLost, DEAD_OBJECT); in onMessageReceived() 6029 mCodec->mComponentName.c_str()); in onMessageReceived() 6030 status_t err = mCodec->mOMXNode->freeNode(); 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/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 = null; field in Encoder 159 if (mCodec == null) { in createAndConfigure() 161 mCodec = createCodec(codecName, mime); in createAndConfigure() 162 if (mCodec == null) { in createAndConfigure() 167 mCodec.configure(encodeFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createAndConfigure() 171 Log.e(TAG, "Failed to configure " + mCodec.getName() + " encoder."); in createAndConfigure() 184 if (mCodec != null) { in getInputSurface() 185 inputSurface = mCodec.createInputSurface(); in getInputSurface() 209 if (mCodec == null) { in encode() 220 MediaFormat format = mCodec.getInputFormat(); in encode() [all …]
|
D | Decoder.java | 41 private MediaCodec mCodec; field in Decoder 165 mCodec = createCodec(codecName, format); in decode() 166 if (mCodec == null) { in decode() 170 mFrameReleaseQueue.setMediaCodec(mCodec); in decode() 174 mCodec.setCallback(new MediaCodec.Callback() { in decode() 217 mCodec.configure(format, mSurface, null, isEncoder); in decode() 218 mCodec.start(); in decode() 236 int inputBufferId = mCodec.dequeueInputBuffer(kQueueDequeueTimeoutUs); in decode() 244 onInputAvailable(inputBufferId, mCodec); in decode() 249 mCodec.dequeueOutputBuffer(outputBufferInfo, kQueueDequeueTimeoutUs); in decode() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 102 if (mCodec != NULL) { in ~Decoder() 103 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/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 47 private MediaCodec mCodec; field in ScreenInternalAudioRecorder 119 mCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_AUDIO_AAC); in setupSimple() 126 mCodec.configure(medFormat, in setupSimple() 238 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in encode() 243 ByteBuffer buff = mCodec.getInputBuffer(bufferIndex); in encode() 251 mCodec.queueInputBuffer(bufferIndex, 0, bytesToRead, mPresentationTime, 0); in encode() 260 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in endStream() 261 mCodec.queueInputBuffer(bufferIndex, 0, 0, mPresentationTime, in endStream() 269 int bufferIndex = mCodec.dequeueOutputBuffer(bufferInfo, TIMEOUT); in writeOutput() 271 mTrackId = mMuxer.addTrack(mCodec.getOutputFormat()); in writeOutput() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.cpp | 49 const skcms_ICCProfile* encodedProfile = mCodec->getICCProfile(); in getDefaultColorSpace() 52 return mCodec->computeOutputColorSpace(kN32_SkColorType); in getDefaultColorSpace() 66 : mCodec(std::move(codec)) in ImageDecoder() 68 , mDecodeSize(mCodec->codec()->dimensions()) in ImageDecoder() 69 , mOutColorType(mCodec->computeOutputColorType(kN32_SkColorType)) in ImageDecoder() 98 auto size = mCodec->getSampledDimensions(sampleSize); in getSampledDimensions() 128 int sampleSize = mCodec->computeSampleSize(&decodeSize); in setTargetSize() 220 ? mCodec->codec()->dimensions().height() in width() 221 : mCodec->codec()->dimensions().width(); in width() 226 ? mCodec->codec()->dimensions().width() in height() [all …]
|
D | ImageDecoder.h | 36 std::unique_ptr<SkAndroidCodec> mCodec; 132 return mOverrideOrigin.has_value() ? *mOverrideOrigin : mCodec->codec()->getOrigin(); in getOrigin()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioStream.java | 48 private AudioCodec mCodec; field in AudioStream 111 return mCodec; in getCodec() 128 mCodec = codec; in setCodec() 163 if (mCodec != null && type == mCodec.type) { in setDtmfType()
|
/frameworks/av/cmds/stagefright/ |
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/av/media/libmedia/include/media/ |
D | MediaProfiles.h | 137 : mCodec(codec), in mCodec() function 154 return mCodec; in getCodec() 198 video_encoder mCodec; 225 : mCodec(codec), in mCodec() function 238 return mCodec; in getCodec() 262 audio_encoder mCodec; 438 : mCodec(codec), in VideoEncoderCap() 446 video_encoder mCodec; member 459 : mCodec(codec), in AudioEncoderCap() 466 audio_encoder mCodec; member [all …]
|
/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/libs/hwui/jni/ |
D | AnimatedImageDrawable.cpp | 63 if (imageDecoder->mCodec->getEncodedFormat() != SkEncodedImageFormat::kWEBP) { in AnimatedImageDrawable_nCreate() 64 const int frameCount = imageDecoder->mCodec->codec()->getFrameCount(); in AnimatedImageDrawable_nCreate() 67 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate() 78 auto info = imageDecoder->mCodec->getInfo().makeWH(width, height) in AnimatedImageDrawable_nCreate() 105 SkEncodedImageFormat format = imageDecoder->mCodec->getEncodedFormat(); in AnimatedImageDrawable_nCreate() 106 sk_sp<SkAnimatedImage> animatedImg = SkAnimatedImage::Make(std::move(imageDecoder->mCodec), in AnimatedImageDrawable_nCreate()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerMetrics.h | 65 return mCodec[index]; 69 return mCodec[index]; 73 int mCodec[CodecBucketMaxSize] = {0};
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 247 mCodec = MediaCodec::CreateByType(mLooper, name, encoder, &mInitStatus, pid, uid); in JMediaCodec() 248 if (mCodec == nullptr || mCodec->getName(&mNameAtCreation) != OK) { in JMediaCodec() 252 mCodec = MediaCodec::CreateByComponentName(mLooper, name, &mInitStatus, pid, uid); in JMediaCodec() 255 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec() 268 if (mCodec != NULL) { in release() 269 mCodec->release(); in release() 283 if (mCodec != NULL) { in releaseAsync() 287 mCodec->releaseAsync(notify); in releaseAsync() 326 return mCodec->setOnFirstTunnelFrameReadyNotification(mOnFirstTunnelFrameReadyNotification); in enableOnFirstTunnelFrameReadyListener() 338 return mCodec->setOnFrameRenderedNotification(mOnFrameRenderedNotification); in enableOnFrameRenderedListener() [all …]
|