/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 60 AMediaCodec* mCodec; member in CodecHandler 69 sp<android::MediaCodec> mCodec; member 80 mCodec = codec; in CodecHandler() 88 if (mCodec->mRequestedActivityNotification) { in onMessageReceived() 92 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived() 93 mCodec->mRequestedActivityNotification = true; in onMessageReceived() 103 if (generation != mCodec->mGeneration) { in onMessageReceived() 108 mCodec->mRequestedActivityNotification = false; in onMessageReceived() 111 if (mCodec->mCallback) { in onMessageReceived() 112 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ACodec.cpp | 228 ACodec *mCodec; member 5573 mCodec(codec) { in BaseState() 5619 status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get())); in onMessageReceived() 5633 mCodec->signalError(OMX_ErrorUndefined, INVALID_OPERATION); in onMessageReceived() 5641 mCodec->signalError(OMX_ErrorResourcesLost, DEAD_OBJECT); in onMessageReceived() 5648 mCodec->mComponentName.c_str()); in onMessageReceived() 5649 status_t err = mCodec->mOMX->freeNode(mCodec->mNode); in onMessageReceived() 5651 mCodec->mComponentName.c_str(), err); in onMessageReceived() 5652 sp<AMessage> notify = mCodec->mNotify->dup(); in onMessageReceived() 5668 if (mCodec->mNode == 0) { in checkOMXMessage() [all …]
|
D | SimpleDecodingSource.cpp | 98 : mCodec(codec), in SimpleDecodingSource() 104 mCodec->getName(&mComponentName); in SimpleDecodingSource() 108 mCodec->release(); in ~SimpleDecodingSource() 118 status_t res = mCodec->start(); in start() 146 status_t res1 = mCodec->stop(); in stop() 148 mCodec->release(); in stop() 213 mCodec->flush(); in doRead() 227 res = mCodec->dequeueInputBuffer(&in_ix, kTimeoutWaitForInputUs); in doRead() 235 res = mCodec->getInputBuffer(in_ix, &in_buffer); in doRead() 259 if (mCodec->queueInputBuffer( in doRead() [all …]
|
D | MediaCodec.cpp | 264 mCodec(NULL), in MediaCodec() 342 mCodec = GetCodecBase(name, nameIsType); in init() 343 if (mCodec == NULL) { in init() 358 mCodec = NULL; // remove the codec. in init() 383 mCodecLooper->registerHandler(mCodec); in init() 385 mLooper->registerHandler(mCodec); in init() 390 mCodec->setNotificationMessage(new AMessage(kWhatCodecNotify, this)); in init() 661 if (mCodec != NULL) { in reset() 663 mCodecLooper->unregisterHandler(mCodec->id()); in reset() 665 mLooper->unregisterHandler(mCodec->id()); in reset() [all …]
|
/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() 188 err = state->mCodec->queueInputBuffer( in decode() 209 state->mCodec->dequeueInputBuffer(&index, kTimeout); in decode() 214 err = state->mCodec->queueInputBuffer( in decode() 256 status_t err = state->mCodec->dequeueOutputBuffer( in decode() [all …]
|
D | SimplePlayer.cpp | 317 state->mCodec = MediaCodec::CreateByType( in onPrepare() 320 CHECK(state->mCodec != NULL); in onPrepare() 322 err = state->mCodec->configure( in onPrepare() 342 status_t err = state->mCodec->start(); in onPrepare() 345 err = state->mCodec->getInputBuffers(&state->mBuffers[0]); in onPrepare() 348 err = state->mCodec->getOutputBuffers(&state->mBuffers[1]); in onPrepare() 355 err = state->mCodec->dequeueInputBuffer(&index, -1ll); in onPrepare() 364 err = state->mCodec->queueInputBuffer( in onPrepare() 403 CHECK_EQ(state->mCodec->release(), (status_t)OK); in onReset() 425 err = state->mCodec->dequeueInputBuffer(&index); in onDoMoreStuff() [all …]
|
D | sf2.cpp | 69 mCodec(new ACodec), in Controller() 149 mDecodeLooper->registerHandler(mCodec); in onMessageReceived() 151 mCodec->setNotificationMessage( in onMessageReceived() 160 mCodec->initiateSetup(format); in onMessageReceived() 190 mCodec->signalFlush(); in onMessageReceived() 204 mCodec->initiateShutdown(); in onMessageReceived() 230 mCodec->signalResume(); in onMessageReceived() 235 mDecodeLooper->unregisterHandler(mCodec->id()); in onMessageReceived() 266 sp<ACodec> mCodec; member
|
D | SimplePlayer.h | 74 sp<MediaCodec> mCodec; member
|
/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/include/media/ |
D | MediaProfiles.h | 185 : mCodec(codec), in VideoCodec() 192 mCodec = copy.mCodec; in VideoCodec() 201 video_encoder mCodec; member 210 : mCodec(codec), in AudioCodec() 216 mCodec = copy.mCodec; in AudioCodec() 224 audio_encoder mCodec; member 268 : mCodec(codec), in VideoEncoderCap() 276 video_encoder mCodec; member 289 : mCodec(codec), in AudioEncoderCap() 296 audio_encoder mCodec; member [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 94 mCodec->release(); in ~Decoder() 213 if (mCodec != NULL && mSurface != NULL) { in onMessageReceived() 221 err = mCodec->setSurface(surface); in onMessageReceived() 250 CHECK(mCodec == NULL); in onConfigure() 267 mCodec = MediaCodec::CreateByType( in onConfigure() 271 if (mCodec != NULL) { in onConfigure() 272 mCodec->getName(&mComponentName); in onConfigure() 274 mCodec->release(); in onConfigure() 276 mCodec = MediaCodec::CreateByComponentName( in onConfigure() 280 if (mCodec == NULL) { in onConfigure() [all …]
|
D | NuPlayerDecoder.h | 72 sp<MediaCodec> mCodec; member
|
/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/media/java/android/media/ |
D | EncoderCapabilities.java | 45 …public final int mCodec; // @see android.media.MediaRecorder.Video… field in EncoderCapabilities.VideoEncoderCap 57 mCodec = codec; in VideoEncoderCap() 82 … public final int mCodec; // @see android.media.MediaRecorder.AudioEncoder field in EncoderCapabilities.AudioEncoderCap 92 mCodec = codec; in AudioEncoderCap()
|
D | MediaCodec.java | 1599 private MediaCodec mCodec; field in MediaCodec.EventHandler 1603 mCodec = codec; in EventHandler() 1630 mCodec, (long)mediaTimeUs, (long)systemNano); in handleMessage() 1653 mCallback.onInputBufferAvailable(mCodec, index); in handleCallback() 1665 mCodec, index, info); in handleCallback() 1671 mCallback.onError(mCodec, (MediaCodec.CodecException) msg.obj); in handleCallback() 1677 mCallback.onOutputFormatChanged(mCodec, in handleCallback()
|
/frameworks/base/media/jni/ |
D | android_media_MediaCodec.cpp | 137 mCodec = MediaCodec::CreateByType(mLooper, name, encoder, &mInitStatus); in JMediaCodec() 139 mCodec = MediaCodec::CreateByComponentName(mLooper, name, &mInitStatus); in JMediaCodec() 141 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec() 192 if (mCodec != NULL) { in release() 193 mCodec->release(); in release() 194 mCodec.clear(); in release() 206 if (mCodec != NULL || mLooper != NULL) { in ~JMediaCodec() 251 return mCodec->setOnFrameRenderedNotification(mOnFrameRenderedNotification); in enableOnFrameRenderedListener() 263 return mCodec->setCallback(mCallbackNotification); in setCallback() 279 return mCodec->configure(format, mSurfaceTextureClient, crypto, flags); in configure() [all …]
|
D | android_media_MediaCodec.h | 142 sp<MediaCodec> mCodec; member
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 104 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 115 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 125 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap() 136 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap() 146 ALOGV("codec = %d", cap.mCodec); in logVideoDecoderCap() 153 ALOGV("codec = %d", cap.mCodec); in logAudioDecoderCap() 903 encoders.add(mVideoEncoders[i]->mCodec); in getVideoEncoders() 913 if (mVideoEncoders[i]->mCodec == codec) { in getVideoEncoderParamByName() 940 encoders.add(mAudioEncoders[i]->mCodec); in getAudioEncoders() 950 if (mAudioEncoders[i]->mCodec == codec) { in getAudioEncoderParamByName() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 121 AudioCodec *mCodec; member in __anond99062d10111::AudioStream 154 mCodec = NULL; in AudioStream() 162 delete mCodec; in ~AudioStream() 206 mCodec = codec; in set() 343 if (!mCodec) { in encode() 353 int length = mCodec->encode(&buffer[3], samples); in encode() 406 if (!mCodec) { in decode() 434 length = mCodec->decode(samples, count, &buffer[offset], length); in decode()
|
/frameworks/av/include/media/stagefright/ |
D | SimpleDecodingSource.h | 76 sp<MediaCodec> mCodec; variable
|
D | MediaCodec.h | 294 sp<CodecBase> mCodec; member
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
D | MediaRecorderTest.java | 311 int videoEncoder = videoCap.mCodec; in recordVideoWithPara() 312 int audioEncoder = audioCap.mCodec; in recordVideoWithPara() 525 … Log.v(TAG, "Encoder = " + videoEncoder.mCodec + "Audio Encoder = " + audioEncoder.mCodec); in testDeviceSpecificCodec()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaProfileReader.java | 108 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec()
|