/frameworks/base/media/java/android/media/ |
D | AmrInputStream.java | 37 MediaCodec mCodec; field in AmrInputStream 70 mCodec = MediaCodec.createByCodecName(name); in AmrInputStream() 71 mCodec.configure(format, in AmrInputStream() 75 mCodec.start(); in AmrInputStream() 77 if (mCodec != null) { in AmrInputStream() 78 mCodec.release(); in AmrInputStream() 80 mCodec = null; in AmrInputStream() 99 if (mCodec == null) { in read() 110 int index = mCodec.dequeueInputBuffer(0); in read() 124 ByteBuffer buf = mCodec.getInputBuffer(index); in read() [all …]
|
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 | 1609 private MediaCodec mCodec; field in MediaCodec.EventHandler 1613 mCodec = codec; in EventHandler() 1640 mCodec, (long)mediaTimeUs, (long)systemNano); in handleMessage() 1663 mCallback.onInputBufferAvailable(mCodec, index); in handleCallback() 1675 mCodec, index, info); in handleCallback() 1681 mCallback.onError(mCodec, (MediaCodec.CodecException) msg.obj); in handleCallback() 1687 mCallback.onOutputFormatChanged(mCodec, in handleCallback()
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 74 AMediaCodec* mCodec; member in CodecHandler 83 sp<android::MediaCodec> mCodec; member 94 mCodec = codec; in CodecHandler() 102 if (mCodec->mRequestedActivityNotification) { in onMessageReceived() 106 mCodec->mCodec->requestActivityNotification(mCodec->mActivityNotification); in onMessageReceived() 107 mCodec->mRequestedActivityNotification = true; in onMessageReceived() 117 if (generation != mCodec->mGeneration) { in onMessageReceived() 122 mCodec->mRequestedActivityNotification = false; in onMessageReceived() 125 if (mCodec->mCallback) { in onMessageReceived() 126 mCodec->mCallback(mCodec, mCodec->mCallbackUserData); in onMessageReceived() [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() 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 …]
|
D | SimplePlayer.h | 75 sp<MediaCodec> mCodec; member
|
/frameworks/av/media/libstagefright/ |
D | ACodec.cpp | 250 ACodec *mCodec; member 5348 mCodec(codec) { in BaseState() 5357 ++mCodec->mStateGeneration; in stateExited() 5398 status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get())); in onMessageReceived() 5412 mCodec->signalError(OMX_ErrorUndefined, INVALID_OPERATION); in onMessageReceived() 5420 mCodec->mGraphicBufferSource.clear(); in onMessageReceived() 5421 mCodec->signalError(OMX_ErrorResourcesLost, DEAD_OBJECT); in onMessageReceived() 5428 mCodec->mComponentName.c_str()); in onMessageReceived() 5429 status_t err = mCodec->mOMXNode->freeNode(); in onMessageReceived() 5431 mCodec->mComponentName.c_str(), err); in onMessageReceived() [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 | 473 mCodec(NULL), in MediaCodec() 572 mCodec = GetCodecBase(name, nameIsType); in init() 573 if (mCodec == NULL) { in init() 588 mCodec = NULL; // remove the codec. in init() 613 mCodecLooper->registerHandler(mCodec); in init() 615 mLooper->registerHandler(mCodec); in init() 620 mCodec->setCallback( in init() 623 mBufferChannel = mCodec->getBufferChannel(); in init() 974 if (mCodec != NULL) { in reset() 976 mCodecLooper->unregisterHandler(mCodec->id()); in reset() [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/libmedia/include/media/ |
D | MediaProfiles.h | 210 : mCodec(codec), in VideoCodec() 217 mCodec = copy.mCodec; in VideoCodec() 226 video_encoder mCodec; member 235 : mCodec(codec), in AudioCodec() 241 mCodec = copy.mCodec; in AudioCodec() 249 audio_encoder mCodec; member 293 : mCodec(codec), in VideoEncoderCap() 301 video_encoder mCodec; member 314 : mCodec(codec), in AudioEncoderCap() 321 audio_encoder mCodec; member [all …]
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 210 : mCodec(codec), in VideoCodec() 217 mCodec = copy.mCodec; in VideoCodec() 226 video_encoder mCodec; member 235 : mCodec(codec), in AudioCodec() 241 mCodec = copy.mCodec; in AudioCodec() 249 audio_encoder mCodec; member 293 : mCodec(codec), in VideoEncoderCap() 301 video_encoder mCodec; member 314 : mCodec(codec), in AudioEncoderCap() 321 audio_encoder mCodec; member [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 102 if (mCodec != NULL) { in ~Decoder() 103 mCodec->release(); in ~Decoder() 235 if (mCodec != NULL && mSurface != NULL) { in onMessageReceived() 243 err = mCodec->setSurface(surface); in onMessageReceived() 279 CHECK(mCodec == NULL); in onConfigure() 296 mCodec = MediaCodec::CreateByType( in onConfigure() 300 if (mCodec != NULL) { in onConfigure() 301 mCodec->getName(&mComponentName); in onConfigure() 303 mCodec->release(); in onConfigure() 305 mCodec = MediaCodec::CreateByComponentName( in onConfigure() [all …]
|
D | NuPlayerDecoder.h | 78 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/jni/ |
D | android_media_MediaCodec.cpp | 142 mCodec = MediaCodec::CreateByType(mLooper, name, encoder, &mInitStatus); in JMediaCodec() 144 mCodec = MediaCodec::CreateByComponentName(mLooper, name, &mInitStatus); in JMediaCodec() 146 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec() 197 if (mCodec != NULL) { in release() 198 mCodec->release(); in release() 199 mCodec.clear(); in release() 211 if (mCodec != NULL || mLooper != NULL) { in ~JMediaCodec() 256 return mCodec->setOnFrameRenderedNotification(mOnFrameRenderedNotification); in enableOnFrameRenderedListener() 268 return mCodec->setCallback(mCallbackNotification); in setCallback() 285 return mCodec->configure( in configure() [all …]
|
D | android_media_MediaCodec.h | 150 sp<MediaCodec> mCodec; member
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 106 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 117 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 127 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap() 138 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap() 148 ALOGV("codec = %d", cap.mCodec); in logVideoDecoderCap() 155 ALOGV("codec = %d", cap.mCodec); in logAudioDecoderCap() 916 encoders.add(mVideoEncoders[i]->mCodec); in getVideoEncoders() 926 if (mVideoEncoders[i]->mCodec == codec) { in getVideoEncoderParamByName() 953 encoders.add(mAudioEncoders[i]->mCodec); in getAudioEncoders() 963 if (mAudioEncoders[i]->mCodec == codec) { in getAudioEncoderParamByName() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | AudioGroup.cpp | 121 AudioCodec *mCodec; member in __anon5fc701100111::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/media/libstagefright/include/ |
D | SimpleDecodingSource.h | 76 sp<MediaCodec> mCodec; variable
|
D | MediaCodec.h | 310 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()
|