Home
last modified time | relevance | path

Searched refs:mDecoder (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp32 C2DecoderTest() : mDecoder(nullptr) {} in C2DecoderTest()
38 if (mDecoder) { in ~C2DecoderTest()
39 delete mDecoder; in ~C2DecoderTest()
40 mDecoder = nullptr; in ~C2DecoderTest()
49 C2Decoder *mDecoder; member in C2DecoderTest
53 mDecoder = new C2Decoder(); in setupC2DecoderTest()
54 ASSERT_NE(mDecoder, nullptr) << "C2Decoder creation failed"; in setupC2DecoderTest()
56 int32_t status = mDecoder->setupCodec2(); in setupC2DecoderTest()
59 mCodecList = mDecoder->getSupportedComponentList(false /* isEncoder*/); in setupC2DecoderTest()
126 status = mDecoder->createCodec2Component(codecName, format); in TEST_P()
[all …]
/frameworks/opt/net/voip/src/jni/rtp/
DAmrCodec.cpp39 if (GSMInitDecode(&mDecoder, (Word8 *)"RTP")) { in AmrCodec()
40 mDecoder = NULL; in AmrCodec()
48 if (mDecoder) { in ~AmrCodec()
49 GSMDecodeFrameExit(&mDecoder); in ~AmrCodec()
60 void *mDecoder; member in __anona83fb3cf0111::AmrCodec
97 return (sampleRate == 8000 && mEncoder && mDecoder) ? 160 : -1; in set()
169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) { in decode()
197 if (GSMInitDecode(&mDecoder, (Word8 *)"RTP")) { in GsmEfrCodec()
198 mDecoder = NULL; in GsmEfrCodec()
206 if (mDecoder) { in ~GsmEfrCodec()
[all …]
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.cpp173 : mDecoder(NULL), in FLACDecoder()
190 if (mDecoder != NULL) { in ~FLACDecoder()
191 FLAC__stream_decoder_delete(mDecoder); in ~FLACDecoder()
192 mDecoder = NULL; in ~FLACDecoder()
202 mDecoder = FLAC__stream_decoder_new(); in init()
203 if (mDecoder == NULL) { in init()
207 FLAC__stream_decoder_set_md5_checking(mDecoder, false); in init()
208 FLAC__stream_decoder_set_metadata_ignore_all(mDecoder); in init()
210 mDecoder, FLAC__METADATA_TYPE_STREAMINFO); in init()
245 mDecoder, in init()
[all …]
DFLACDecoder.h71 FLAC__StreamDecoder *mDecoder; variable
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java53 BitmapRegionDecoder mDecoder; field in SimpleBitmapRegionDecoderWrapper
55 mDecoder = decoder; in SimpleBitmapRegionDecoderWrapper()
84 return mDecoder.getWidth(); in getWidth()
87 return mDecoder.getHeight(); in getHeight()
90 return mDecoder.decodeRegion(wantRegion, options); in decodeRegion()
159 private SimpleBitmapRegionDecoder mDecoder; field in BitmapRegionTileSource.BitmapSource
176 mDecoder = loadBitmapRegionDecoder(); in loadInBackground()
177 if (mDecoder == null) { in loadInBackground()
181 int width = mDecoder.getWidth(); in loadInBackground()
182 int height = mDecoder.getHeight(); in loadInBackground()
[all …]
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp59 mDecoder(NULL), in SoftOpus()
72 if (mDecoder != NULL) { in ~SoftOpus()
73 opus_multistream_decoder_destroy(mDecoder); in ~SoftOpus()
74 mDecoder = NULL; in ~SoftOpus()
464 if (mDecoder != NULL) { in onQueueFilled()
465 opus_multistream_decoder_destroy(mDecoder); in onQueueFilled()
467 mDecoder = opus_multistream_decoder_create(kRate, in onQueueFilled()
473 if (!mDecoder || status != OPUS_OK) { in onQueueFilled()
480 opus_multistream_decoder_ctl(mDecoder, in onQueueFilled()
557 int numFrames = opus_multistream_decode(mDecoder, in onQueueFilled()
[all …]
DSoftOpus.h70 OpusMSDecoder *mDecoder; member
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp101 mDecoder(nullptr) { in C2SoftOpusDec()
114 if (mDecoder) { in onStop()
115 opus_multistream_decoder_destroy(mDecoder); in onStop()
116 mDecoder = nullptr; in onStop()
134 if (mDecoder) { in onRelease()
135 opus_multistream_decoder_destroy(mDecoder); in onRelease()
136 mDecoder = nullptr; in onRelease()
153 if (mDecoder) { in onFlush_sm()
154 opus_multistream_decoder_ctl(mDecoder, OPUS_RESET_STATE); in onFlush_sm()
283 mDecoder = opus_multistream_decoder_create(kRate, in process()
[all …]
DC2SoftOpusDec.h52 OpusMSDecoder *mDecoder; member
/frameworks/av/media/extractors/flac/
DFLACExtractor.cpp151 FLAC__StreamDecoder *mDecoder; member in android::FLACParser
458 mDecoder(NULL), in FLACParser()
475 if (mDecoder != NULL) { in ~FLACParser()
476 FLAC__stream_decoder_delete(mDecoder); in ~FLACParser()
477 mDecoder = NULL; in ~FLACParser()
484 mDecoder = FLAC__stream_decoder_new(); in init()
485 if (mDecoder == NULL) { in init()
492 FLAC__stream_decoder_set_md5_checking(mDecoder, false); in init()
493 FLAC__stream_decoder_set_metadata_ignore_all(mDecoder); in init()
495 mDecoder, FLAC__METADATA_TYPE_STREAMINFO); in init()
[all …]
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DBluetoothMidiDecoderTest.java45 BluetoothPacketDecoder mDecoder; field in BluetoothMidiDecoderTest.DecoderChecker
50 mDecoder = new BluetoothPacketDecoder(maxBytes); in DecoderChecker()
76 mDecoder.decodePacket(packet, mReceiver); in decodePacket()
83 mDecoder.decodePacket(packet, mReceiver); in decodePackets()
DBluetoothMidiCodecTest.java53 BluetoothPacketDecoder mDecoder; field in BluetoothMidiCodecTest.EncoderDecoderChecker
74 mDecoder = new BluetoothPacketDecoder(maxBytesPerPacket); in EncoderDecoderChecker()
88 mDecoder.decodePacket(packet, mFramer); in processQueue()
/frameworks/base/media/jni/soundpool/
DSoundManager.cpp32 : mDecoder{std::make_unique<SoundDecoder>(this, kDecoderThreads)} in SoundManager()
40 mDecoder->quit(); in ~SoundManager()
66 mDecoder->loadSound(soundID); in load()
DSoundManager.h106 const std::unique_ptr<SoundDecoder> mDecoder; // has its own lock variable
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp233 if (mDecoder != NULL) { in ~FrameDecoder()
234 mDecoder->release(); in ~FrameDecoder()
300 mDecoder = decoder; in init()
330 err = mDecoder->dequeueInputBuffer(&index, 0); in extractInternal()
339 err = mDecoder->getInputBuffer(index, &codecBuffer); in extractInternal()
352 (void)mDecoder->queueInputBuffer( in extractInternal()
384 err = mDecoder->queueInputBuffer( in extractInternal()
400 err = mDecoder->dequeueOutputBuffer( in extractInternal()
410 err = mDecoder->getOutputFormat(&mOutputFormat); in extractInternal()
423 err = mDecoder->getOutputBuffer(index, &videoFrameBuffer); in extractInternal()
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp147 if (mDecoder != NULL && index == mLastDecodedIndex) { in getImageRectAtIndex()
148 return mDecoder->extractFrame(&rect); in getImageRectAtIndex()
157 mDecoder.clear(); in getImageInternal()
239 mDecoder = decoder; in getImageInternal()
264 if (mDecoder != NULL && frameIndex == mLastDecodedIndex + 1) { in getFrameAtIndex()
265 sp<IMemory> frame = mDecoder->extractFrame(); in getFrameAtIndex()
278 mDecoder.clear(); in getFrameInternal()
360 mDecoder = decoder; in getFrameInternal()
DStagefrightMetadataRetriever.h64 sp<FrameDecoder> mDecoder; member
/frameworks/layoutlib/bridge/src/android/graphics/
DImageDecoder.java225 private ImageDecoder mDecoder; field in ImageDecoder.ImageInfo
228 mDecoder = decoder; in ImageInfo()
254 return mDecoder.mAnimated; in isAnimated()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java575 private ImageDecoder mDecoder; field in ImageDecoder.ImageInfo
579 mDecoder = decoder; in ImageInfo()
595 return mDecoder.getMimeType(); in getMimeType()
605 return mDecoder.mAnimated; in isAnimated()
617 return mDecoder.getColorSpace(); in getColorSpace()
1726 info.mDecoder = null; in callHeaderDecoded()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp289 explicit DecodeThread(HeifDecoderImpl *decoder) : mDecoder(decoder) {} in DecodeThread()
292 HeifDecoderImpl* mDecoder; member
300 return mDecoder->decodeAsync(); in threadLoop()
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h93 sp<MediaCodec> mDecoder; member
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java1176 private CharsetDecoder mDecoder; field in BatteryStatsService.WakeupReasonThread
1187 mDecoder = StandardCharsets.UTF_8 in run()
1211 mDecoder.reset(); in waitWakeup()
1225 mDecoder.decode(mUtf8Buffer, mUtf16Buffer, true); in waitWakeup()