Home
last modified time | relevance | path

Searched refs:mCodec (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/media/java/android/media/
DAmrInputStream.java38 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 …]
DEncoderCapabilities.java47 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/
DNdkMediaCodec.cpp75 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/
DACodec.cpp268 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 …]
DSimpleDecodingSource.cpp124 : 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 …]
DMediaCodec.cpp514 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/
Dmediafilter.cpp133 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 …]
Dcodec.cpp58 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 …]
DSimplePlayer.cpp318 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 …]
DSimplePlayer.h75 sp<MediaCodec> mCodec; member
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java51 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/
DMediaProfiles.h222 : 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/
DMediaProfiles.h222 : 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/
DNuPlayerDecoder.cpp103 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/
DNuPlayer2Decoder.cpp100 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/
DAudioStream.java46 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/
DDataStreamFileCodec.java36 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/
Dandroid_media_MediaCodec.cpp155 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/
DAnimatedImageDrawable.cpp54 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()
DImageDecoder.cpp111 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()
DImageDecoder.h50 std::unique_ptr<SkAndroidCodec> mCodec; member
/frameworks/av/media/libmedia/
DMediaProfiles.cpp120 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/
DHeicCompositeStream.cpp153 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/
DAudioGroup.cpp121 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/
DSimpleDecodingSource.h79 sp<MediaCodec> mCodec; variable

12