Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java147 BitmapRegionDecoder decoder = in testNewInstanceInputStream() local
149 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceInputStream()
150 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceInputStream()
167 BitmapRegionDecoder decoder = BitmapRegionDecoder in testNewInstanceByteArray() local
169 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceByteArray()
170 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceByteArray()
212 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStream() local
217 compareRegionByRegion(decoder, opts, MSE_MARGIN_WEB_P_CONFIG_RGB_565, in testDecodeRegionInputStream()
220 compareRegionByRegion(decoder, opts, MSE_MARGIN, wholeImage); in testDecodeRegionInputStream()
240 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStreamInBitmap() local
[all …]
DImageDecoderTest.java233 Drawable d = ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testUris()
234 decoder.setOnPartialImageListener((e) -> { in testUris()
260 ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testInfo()
318 ImageDecoder.decodeBitmap(src, (decoder, info, s) -> decoder.setAllocator(15)); in testSetBogusAllocator()
336 ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testGetAllocator()
337 assertEquals(ImageDecoder.ALLOCATOR_DEFAULT, decoder.getAllocator()); in testGetAllocator()
339 decoder.setAllocator(allocator); in testGetAllocator()
340 assertEquals(allocator, decoder.getAllocator()); in testGetAllocator()
355 public void onHeaderDecoded(ImageDecoder decoder, ImageDecoder.ImageInfo info, in testSetAllocatorDecodeBitmap() argument
357 decoder.setAllocator(allocator); in testSetAllocatorDecodeBitmap()
[all …]
DBitmapColorSpaceTest.java754 b = ImageDecoder.decodeBitmap(src, (decoder, info, s) -> {
755 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE);
790 b = ImageDecoder.decodeBitmap(src, (decoder, info, s) -> { in testEncodeP3hardware()
791 decoder.setAllocator(ImageDecoder.ALLOCATOR_HARDWARE); in testEncodeP3hardware()
/cts/tests/tests/media/src/android/media/cts/
DDecodeEditEncodeTest.java389 MediaCodec decoder = null; in editVideoFile() local
418 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in editVideoFile()
421 decoder.configure(inputFormat, outputSurface.getSurface(), null, 0); in editVideoFile()
422 decoder.start(); in editVideoFile()
424 editVideoData(inputData, decoder, outputSurface, inputSurface, encoder, outputData); in editVideoFile()
437 if (decoder != null) { in editVideoFile()
438 decoder.stop(); in editVideoFile()
439 decoder.release(); in editVideoFile()
449 private void editVideoData(VideoChunks inputData, MediaCodec decoder, in editVideoData() argument
453 ByteBuffer[] decoderInputBuffers = decoder.getInputBuffers(); in editVideoData()
[all …]
DEncodeDecodeTest.java402 MediaCodec decoder = null; in encodeDecodeVideoFromBuffer() local
445 decoder = MediaCodec.createByCodecName(codec_decoder); in encodeDecodeVideoFromBuffer()
446 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromBuffer()
448 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
455 if (decoder != null) { in encodeDecodeVideoFromBuffer()
456 decoder.stop(); in encodeDecodeVideoFromBuffer()
457 decoder.release(); in encodeDecodeVideoFromBuffer()
472 MediaCodec decoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
511 decoder = MediaCodec.createByCodecName(codec_decoder); in encodeDecodeVideoFromSurfaceToSurface()
512 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromSurfaceToSurface()
[all …]
DEncodeVirtualDisplayTest.java209 MediaCodec decoder = null; in encodeVirtualDisplayTest() local
240 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in encodeVirtualDisplayTest()
243 decoder.configure(decoderFormat, outputSurface.getSurface(), null, 0); in encodeVirtualDisplayTest()
244 decoder.start(); in encodeVirtualDisplayTest()
251 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest()
265 if (decoder != null) { in encodeVirtualDisplayTest()
266 decoder.stop(); in encodeVirtualDisplayTest()
267 decoder.release(); in encodeVirtualDisplayTest()
275 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument
279 ByteBuffer[] decoderInputBuffers = decoder.getInputBuffers(); in doTestEncodeVirtual()
[all …]
DImageReaderDecoderTest.java253 MediaCodec decoder = null; in videoDecode() local
289 decoder = MediaCodec.createByCodecName(mName); in videoDecode()
290 assertNotNull("couldn't create decoder" + mName, decoder); in videoDecode()
293 decoder, extractor, mediaFormat, in videoDecode()
296 decoder.stop(); in videoDecode()
304 if (decoder != null) { in videoDecode()
305 decoder.release(); in videoDecode()
465 MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, in decodeFramesToImage() argument
475 decoder.configure(mediaFormat, mReaderSurface, null /* crypto */, 0 /* flags */); in decodeFramesToImage()
478 decoder.configure(mediaFormat, null /* surface */, null /* crypto */, 0 /* flags */); in decodeFramesToImage()
[all …]
DDecodeAccuracyTestBase.java153 private MediaCodec decoder; field in DecodeAccuracyTestBase.SimplePlayer
304 final ByteBuffer[] inputBufferArray = decoder.getInputBuffers(); in queueDecoderInputBuffer()
305 final int inputBufferIndex = decoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in queueDecoderInputBuffer()
310 inputBuffer = decoder.getInputBuffer(inputBufferIndex); in queueDecoderInputBuffer()
314 decoder.queueInputBuffer( in queueDecoderInputBuffer()
332 final int decoderStatus = decoder.dequeueOutputBuffer(info, DEQUEUE_TIMEOUT_US); in dequeueDecoderOutputBuffer()
346 outputBuffer = decoder.getOutputBuffers()[decoderStatus]; in dequeueDecoderOutputBuffer()
348 outputBuffer = decoder.getOutputBuffer(decoderStatus); in dequeueDecoderOutputBuffer()
354 decoder.releaseOutputBuffer(decoderStatus, renderToSurface); in dequeueDecoderOutputBuffer()
391 decoder = MediaCodec.createByCodecName(codecName); in createDecoder()
[all …]
DAdaptivePlaybackTest.java352 Decoder decoder = new Decoder(c.name); in addTests()
360 decoder.configureAndStart(configFmt, stepSurface()); in addTests()
362 decoder.flush(); in addTests()
366 decoder.queueCSD(fmt); in addTests()
368 int decodedFrames = -decoder.queueInputBufferRange( in addTests()
377 decoder.stop(); in addTests()
383 warn(decoder.getWarnings()); in addTests()
384 decoder.releaseQuietly(); in addTests()
614 Decoder decoder = new Decoder(c.name); in testStep()
619 decoder.configureAndStart(stepFormat(), stepSurface()); in testStep()
[all …]
DExtractDecodeEditEncodeMuxTest.java602 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createVideoDecoder() local
603 decoder.configure(inputFormat, surface, null, 0); in createVideoDecoder()
604 decoder.start(); in createVideoDecoder()
605 return decoder; in createVideoDecoder()
638 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createAudioDecoder() local
639 decoder.configure(inputFormat, null, null, 0); in createAudioDecoder()
640 decoder.start(); in createAudioDecoder()
641 return decoder; in createAudioDecoder()
DMediaSyncTest.java151 public void onTaggedAudioBufferIndex(Decoder decoder, int index) { in onTaggedAudioBufferIndex() argument
153 if (decoder == mDecoderAudio) { in onTaggedAudioBufferIndex()
159 public void onEos(Decoder decoder) { in onEos() argument
161 if (decoder == mDecoderAudio) { in onEos()
168 if (decoder == mDecoderVideo) { in onEos()
DVpxCodecTestBase.java562 MediaCodec decoder = MediaCodec.createByCodecName(properties.codecName); in decode() local
563 decoder.configure(format, in decode()
567 decoder.start(); in decode()
569 ByteBuffer[] inputBuffers = decoder.getInputBuffers(); in decode()
570 ByteBuffer[] outputBuffers = decoder.getOutputBuffers(); in decode()
583 int inputBufIndex = decoder.dequeueInputBuffer(DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
597 decoder.queueInputBuffer( in decode()
608 int result = decoder.dequeueOutputBuffer(bufferInfo, DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
612 outputBuffers = decoder.getOutputBuffers(); in decode()
615 format = decoder.getOutputFormat(); in decode()
[all …]
DEncodeVirtualDisplayWithCompositionTest.java1568 MediaCodec decoder = null; in isConcurrentEncodingDecodingSupported() local
1573 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in isConcurrentEncodingDecodingSupported()
1577 decoder.configure(decoderFormat, decodingSurface.getSurface(), null, 0); in isConcurrentEncodingDecodingSupported()
1578 decoder.start(); in isConcurrentEncodingDecodingSupported()
1592 decoder.stop(); in isConcurrentEncodingDecodingSupported()
1604 if (decoder != null) { in isConcurrentEncodingDecodingSupported()
1605 decoder.release(); in isConcurrentEncodingDecodingSupported()
DVideoEncoderTest.java95 private void play(MediaCodec decoder, Surface surface) { in play() argument
96 decoder.reset(); in play()
99 decoder.setCallback(new MediaCodec.Callback() { in play()
136 decoder.configure(mFormat, surface, null /* crypto */, 0 /* flags */); in play()
137 decoder.start(); in play()
145 decoder.stop(); in play()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java935 private MediaCodec decoder=null; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV
999 decoder.stop(); in stop()
1008 if (decoder!=null) { in teardown()
1009 decoder.release(); in teardown()
1010 decoder = null; in teardown()
1042 decoder = MediaCodec.createDecoderByType(mime); in setup()
1053 decoder.configure(format, surface.getSurface(), null, 0); in setup()
1058 if (decoder == null) { in setup()
1077 decoder.start(); in run()
1079 ByteBuffer[] inputBuffers = decoder.getInputBuffers(); in run()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java280 String decoder = sMCL.findDecoderForFormat(format); in getDecoder() local
281 if (decoder != null) { in getDecoder()
283 return MediaCodec.createByCodecName(decoder); in getDecoder()
1065 MediaCodec decoder, MediaExtractor ex, List<String> frameMD5Sums) in verifyDecoder() argument
1070 decoder.configure(format, null /* surface */, null /* crypto */, 0 /* flags */); in verifyDecoder()
1071 decoder.start(); in verifyDecoder()
1083 int inIdx = decoder.dequeueInputBuffer(kTimeOutUs); in verifyDecoder()
1085 ByteBuffer buffer = decoder.getInputBuffer(inIdx); in verifyDecoder()
1089 decoder.queueInputBuffer(inIdx, 0, 0, 0, flagEOS); in verifyDecoder()
1092 decoder.queueInputBuffer(inIdx, 0, sampleSize, ex.getSampleTime(), 0); in verifyDecoder()
[all …]
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java294 MediaCodec decoder = d = dec.get(1, TimeUnit.SECONDS); in verifyBitstream() local
301 return MediaUtils.verifyDecoder(decoder, ex, frameChecksums); in verifyBitstream()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBitmapTests.java170 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(inputStream, false); in testBitmapRegionDecode() local
172 Bitmap hardwareBitmap = decoder.decodeRegion(new Rect(10, 15, 34, 39), in testBitmapRegionDecode()
/cts/tests/tests/view/src/android/view/cts/
DMenuInflaterTest.java331 Bitmap expected = ImageDecoder.decodeBitmap(src, (decoder, info, s) -> { in verifyDrawableContent()
332 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in verifyDrawableContent()
/cts/tests/tests/telephony/src/android/telephony/cts/
DVisualVoicemailServiceTest.java584 CharsetDecoder decoder = StandardCharsets.UTF_8.newDecoder(); in onReceive() local
591 messageBody.append(decoder.decode(byteBuffer).toString()); in onReceive()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java492 Drawable dr = ImageDecoder.decodeDrawable(source, (decoder, info, src) -> { in testPostProcess()
493 decoder.setPostProcessor((canvas) -> { in testPostProcess()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java493 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance( in testAllOutputYUVResolutions() local
498 Bitmap fullSizeJpegBmap = decoder.decodeRegion(jpegPatch, opt); in testAllOutputYUVResolutions()