Home
last modified time | relevance | path

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

/aosp14/frameworks/base/media/java/android/media/
H A DAmrInputStream.java38 MediaCodec mCodec; field 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()
186 if (mCodec != null) { in close()
187 mCodec.release(); in close()
190 mCodec = null; in close()
197 if (mCodec != null) { in finalize()
[all …]
H A DEncoderCapabilities.java49 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()
H A DMediaCodec.java1829 private MediaCodec mCodec; field in MediaCodec.EventHandler
1833 mCodec = codec; in EventHandler()
1863 mCodec, (long)mediaTimeUs, (long)systemNano); in handleMessage()
1903 request = new QueueRequest(mCodec, index); in handleCallback()
1913 mCallback.onInputBufferAvailable(mCodec, index); in handleCallback()
1944 mCodec, index, info); in handleCallback()
1962 mCallback.onOutputFormatChanged(mCodec, in handleCallback()
3334 mCodec = codec; in QueueRequest()
3581 mCodec.native_queueLinearBlock( in queue()
3586 mCodec.native_queueHardwareBuffer( in queue()
[all …]
/aosp14/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DDisplaySinkService.java51 private MediaCodec mCodec; field in DisplaySinkService
144 if (mCodec != null) { in updateSurfaceFromUi()
145 mCodec.stop(); in updateSurfaceFromUi()
146 mCodec = null; 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()
214 mCodec.queueInputBuffer(index, 0, buffer.limit(), 0, 0); in provideCodecInputLocked()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenInternalAudioRecorder.java47 private MediaCodec mCodec; field in ScreenInternalAudioRecorder
126 mCodec.configure(medFormat, in setupSimple()
238 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in encode()
243 ByteBuffer buff = mCodec.getInputBuffer(bufferIndex); in encode()
260 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in endStream()
261 mCodec.queueInputBuffer(bufferIndex, 0, 0, mPresentationTime, in endStream()
279 ByteBuffer buff = mCodec.getOutputBuffer(bufferIndex); in writeOutput()
285 mCodec.releaseOutputBuffer(bufferIndex, false); in writeOutput()
304 mCodec.start(); in start()
328 mCodec.stop(); in end()
[all …]
/aosp14/frameworks/base/libs/hwui/hwui/
H A DImageDecoder.cpp69 : mCodec(std::move(codec)) in ImageDecoder()
71 , mDecodeSize(mCodec->codec()->dimensions()) in ImageDecoder()
101 auto size = mCodec->getSampledDimensions(sampleSize); in getSampledDimensions()
131 int sampleSize = mCodec->computeSampleSize(&decodeSize); in setTargetSize()
223 ? mCodec->codec()->dimensions().height() in width()
224 : mCodec->codec()->dimensions().width(); in width()
229 ? mCodec->codec()->dimensions().width() in height()
230 : mCodec->codec()->dimensions().height(); in height()
242 return mCodec->codec()->getFrameCount() > 1; in isAnimated()
253 mCurrentFrameIsOpaque = mCodec->getInfo().isOpaque(); in rewind()
[all …]
H A DImageDecoder.h36 std::unique_ptr<SkAndroidCodec> mCodec;
132 return mOverrideOrigin.has_value() ? *mOverrideOrigin : mCodec->codec()->getOrigin(); in getOrigin()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A 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()
/aosp14/frameworks/base/libs/hwui/jni/
H A DAnimatedImageDrawable.cpp58 if (imageDecoder->mCodec->getEncodedFormat() != SkEncodedImageFormat::kWEBP) { in AnimatedImageDrawable_nCreate()
59 const int frameCount = imageDecoder->mCodec->codec()->getFrameCount(); in AnimatedImageDrawable_nCreate()
62 if (!imageDecoder->mCodec->codec()->getFrameInfo(i, &frameInfo)) { in AnimatedImageDrawable_nCreate()
73 auto info = imageDecoder->mCodec->getInfo().makeWH(width, height) in AnimatedImageDrawable_nCreate()
100 SkEncodedImageFormat format = imageDecoder->mCodec->getEncodedFormat(); in AnimatedImageDrawable_nCreate()
101 sk_sp<SkAnimatedImage> animatedImg = SkAnimatedImage::Make(std::move(imageDecoder->mCodec), in AnimatedImageDrawable_nCreate()
H A DImageDecoder.cpp290 colorType = decoder->mCodec->computeOutputColorType(colorType); in ImageDecoder_nDecodeBitmap()
305 decoder->mCodec->getEncodedFormat() == SkEncodedImageFormat::kHEIF && in ImageDecoder_nDecodeBitmap()
318 colorSpace = decoder->mCodec->computeOutputColorSpace(colorType, colorSpace); in ImageDecoder_nDecodeBitmap()
524 return getMimeTypeAsJavaString(env, decoder->mCodec->getEncodedFormat()); in ImageDecoder_nGetMimeType()
528 auto* codec = reinterpret_cast<ImageDecoder*>(nativePtr)->mCodec.get(); in ImageDecoder_nGetColorSpace()
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp235 if (mCodec == nullptr || mCodec->getName(&mNameAtCreation) != OK) { in JMediaCodec()
255 if (mCodec != NULL) { in release()
256 mCodec->release(); in release()
270 if (mCodec != NULL) { in releaseAsync()
362 return mCodec->configure( in configure()
390 return mCodec->start(); in start()
396 return mCodec->stop(); in stop()
400 return mCodec->flush(); in flush()
404 return mCodec->reset(); in reset()
496 err = input ? mCodec->getInputFormat(&msg) : mCodec->getOutputFormat(&msg); in getFormat()
[all …]
H A Dandroid_media_MediaCodec.h199 sp<MediaCodec> mCodec; member
/aosp14/frameworks/base/native/graphics/jni/
H A Dimagedecoder.cpp275 return getMimeType(toDecoder(info)->mCodec->getEncodedFormat()); in AImageDecoderHeaderInfo_getMimeType()
287 SkColorType colorType = imageDecoder->mCodec->computeOutputColorType(kN32_SkColorType); in AImageDecoderHeaderInfo_getDataSpace()
316 return getFormat(toDecoder(info)->mCodec->computeOutputColorType(kN32_SkColorType)); in AImageDecoderHeaderInfo_getAndroidBitmapFormat()
323 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
440 const int count = imageDecoder->mCodec->codec()->getRepetitionCount(); in AImageDecoder_getRepeatCount()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java311 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()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaProfileReader.java108 if (cap.mCodec == codec) { in getMinOrMaxFrameRateForCodec()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt23691 Landroid/media/AmrInputStream;->mCodec:Landroid/media/MediaCodec;
25688 Landroid/media/EncoderCapabilities$AudioEncoderCap;->mCodec:I
26791 Landroid/media/MediaCodec$EventHandler;->mCodec:Landroid/media/MediaCodec;
33285 Landroid/net/rtp/AudioStream;->mCodec:Landroid/net/rtp/AudioCodec;