/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 | 47 public final int mCodec; // @see android.media.MediaRecorder.VideoEncoder field in EncoderCapabilities.VideoEncoderCap 67 mCodec = codec; in VideoEncoderCap() 92 … public final int mCodec; // @see android.media.MediaRecorder.AudioEncoder field in EncoderCapabilities.AudioEncoderCap 102 mCodec = codec; in AudioEncoderCap()
|
/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/av/media/libstagefright/ |
D | ACodec.cpp | 268 ACodec *mCodec; member 5628 mCodec(codec) { in BaseState() 5637 ++mCodec->mStateGeneration; in stateExited() 5678 status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get())); in onMessageReceived() 5692 mCodec->signalError(OMX_ErrorUndefined, INVALID_OPERATION); in onMessageReceived() 5700 mCodec->mGraphicBufferSource.clear(); in onMessageReceived() 5701 mCodec->signalError(OMX_ErrorResourcesLost, DEAD_OBJECT); in onMessageReceived() 5708 mCodec->mComponentName.c_str()); in onMessageReceived() 5709 status_t err = mCodec->mOMXNode->freeNode(); in onMessageReceived() 5711 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 …]
|
D | MediaCodec.cpp | 514 mCodec(NULL), in MediaCodec() 905 mCodec = NULL; // remove the codec. in init() 928 mCodec = GetCodecBase(name, mCodecInfo->getOwnerName()); in init() 929 if (mCodec == NULL) { in init() 941 mCodecLooper->registerHandler(mCodec); in init() 943 mLooper->registerHandler(mCodec); in init() 948 mCodec->setCallback( in init() 951 mBufferChannel = mCodec->getBufferChannel(); in init() 1313 if (mCodec != NULL) { in reset() 1315 mCodecLooper->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() 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/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 | 222 : mCodec(codec), in VideoCodec() 229 mCodec = copy.mCodec; in VideoCodec() 238 video_encoder mCodec; member 247 : mCodec(codec), in AudioCodec() 253 mCodec = copy.mCodec; in AudioCodec() 261 audio_encoder mCodec; member 305 : mCodec(codec), in VideoEncoderCap() 313 video_encoder mCodec; member 326 : mCodec(codec), in AudioEncoderCap() 333 audio_encoder mCodec; member [all …]
|
/frameworks/av/include/media/ |
D | MediaProfiles.h | 222 : mCodec(codec), in VideoCodec() 229 mCodec = copy.mCodec; in VideoCodec() 238 video_encoder mCodec; member 247 : mCodec(codec), in AudioCodec() 253 mCodec = copy.mCodec; in AudioCodec() 261 audio_encoder mCodec; member 305 : mCodec(codec), in VideoEncoderCap() 313 video_encoder mCodec; member 326 : mCodec(codec), in AudioEncoderCap() 333 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/av/media/libmediaplayer2/nuplayer2/ |
D | NuPlayer2Decoder.cpp | 100 if (mCodec != NULL) { in ~Decoder() 101 mCodec->release(); in ~Decoder() 244 if (mCodec != NULL in onMessageReceived() 254 err = mCodec->setOutputSurface(nww); in onMessageReceived() 294 CHECK(mCodec == NULL); in onConfigure() 312 mCodec = AMediaCodecWrapper::CreateDecoderByType(mime); in onConfigure() 315 if (mCodec != NULL) { in onConfigure() 316 if (mCodec->getName(&mComponentName) == OK) { in onConfigure() 318 mCodec->release(); in onConfigure() 320 mCodec = AMediaCodecWrapper::CreateCodecByName(mComponentName); 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 | 111 decoder->mCodec = SkAndroidCodec::MakeFromCodec(std::move(codec), in native_create() 113 if (!decoder->mCodec.get()) { in native_create() 117 const auto& info = decoder->mCodec->getInfo(); in native_create() 209 SkAndroidCodec* codec = decoder->mCodec.get(); in ImageDecoder_nDecodeBitmap() 490 SkISize size = decoder->mCodec->getSampledDimensions(sampleSize); in ImageDecoder_nGetSampledSize() 506 return encodedFormatToString(env, decoder->mCodec->getEncodedFormat()); in ImageDecoder_nGetMimeType() 510 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); in ImageDecoder_nGetColorSpace()
|
D | ImageDecoder.h | 50 std::unique_ptr<SkAndroidCodec> mCodec; member
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 120 ALOGV("codec = %d", codec.mCodec); in logVideoCodec() 131 ALOGV("codec = %d", codec.mCodec); in logAudioCodec() 141 ALOGV("codec = %d", cap.mCodec); in logVideoEncoderCap() 152 ALOGV("codec = %d", cap.mCodec); in logAudioEncoderCap() 162 ALOGV("codec = %d", cap.mCodec); in logVideoDecoderCap() 169 ALOGV("codec = %d", cap.mCodec); in logAudioDecoderCap() 930 encoders.add(mVideoEncoders[i]->mCodec); in getVideoEncoders() 940 if (mVideoEncoders[i]->mCodec == codec) { in getVideoEncoderParamByName() 967 encoders.add(mAudioEncoders[i]->mCodec); in getAudioEncoders() 977 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() 364 mCodec->releaseOutputBuffer(outputBufferInfo.index); in onHeicOutputFrameAvailable() 367 mCodec->releaseOutputBuffer(outputBufferInfo.index); in onHeicOutputFrameAvailable() 823 res = mCodec->setParameters(qualityParams); in startMuxerForInputFrame() 921 auto res = mCodec->getInputBuffer(inputBuffer.index, &buffer); in processCodecInputFrame() 947 res = mCodec->queueInputBuffer(inputBuffer.index, 0, buffer->capacity(), in processCodecInputFrame() 964 status_t res = mCodec->getOutputBuffer(it->index, &buffer); in processOneCodecOutputFrame() 985 mCodec->releaseOutputBuffer(it->index); in processOneCodecOutputFrame() 1069 mCodec->releaseOutputBuffer(it->index); in releaseInputFrameLocked() [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/media/stagefright/ |
D | SimpleDecodingSource.h | 79 sp<MediaCodec> mCodec; variable
|