Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java112 BitmapRegionDecoder decoder = in testNewInstanceInputStream() local
114 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceInputStream()
115 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceInputStream()
131 BitmapRegionDecoder decoder = BitmapRegionDecoder in testNewInstanceByteArray() local
133 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceByteArray()
134 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceByteArray()
173 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStream() local
178 compareRegionByRegion(decoder, opts, mMseMarginWebPConfigRgb565, in testDecodeRegionInputStream()
181 compareRegionByRegion(decoder, opts, mMseMargin, wholeImage); in testDecodeRegionInputStream()
199 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false); in testDecodeRegionInputStreamInBitmap() local
[all …]
/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.java377 MediaCodec decoder = null; in encodeDecodeVideoFromBuffer() local
420 decoder = MediaCodec.createByCodecName(codec_decoder); in encodeDecodeVideoFromBuffer()
421 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromBuffer()
423 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
430 if (decoder != null) { in encodeDecodeVideoFromBuffer()
431 decoder.stop(); in encodeDecodeVideoFromBuffer()
432 decoder.release(); in encodeDecodeVideoFromBuffer()
447 MediaCodec decoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
486 decoder = MediaCodec.createByCodecName(codec_decoder); in encodeDecodeVideoFromSurfaceToSurface()
487 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromSurfaceToSurface()
[all …]
DEncodeVirtualDisplayTest.java205 MediaCodec decoder = null; in encodeVirtualDisplayTest() local
236 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in encodeVirtualDisplayTest()
239 decoder.configure(decoderFormat, outputSurface.getSurface(), null, 0); in encodeVirtualDisplayTest()
240 decoder.start(); in encodeVirtualDisplayTest()
247 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest()
261 if (decoder != null) { in encodeVirtualDisplayTest()
262 decoder.stop(); in encodeVirtualDisplayTest()
263 decoder.release(); in encodeVirtualDisplayTest()
271 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument
275 ByteBuffer[] decoderInputBuffers = decoder.getInputBuffers(); in doTestEncodeVirtual()
[all …]
DImageReaderDecoderTest.java252 MediaCodec decoder = null; in videoDecode() local
288 decoder = MediaCodec.createByCodecName(mName); in videoDecode()
289 assertNotNull("couldn't create decoder" + mName, decoder); in videoDecode()
292 decoder, extractor, mediaFormat, in videoDecode()
295 decoder.stop(); in videoDecode()
303 if (decoder != null) { in videoDecode()
304 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.java123 private MediaCodec decoder; field in DecodeAccuracyTestBase.SimplePlayer
184 checkNotNull(decoder); in decodeFramesAndDisplay()
190 ByteBuffer[] inputBufferArray = decoder.getInputBuffers(); in decodeFramesAndDisplay()
196 int inputBufferIndex = decoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in decodeFramesAndDisplay()
201 inputBuffer = decoder.getInputBuffer(inputBufferIndex); in decodeFramesAndDisplay()
208 decoder.queueInputBuffer( in decodeFramesAndDisplay()
213 int decoderStatus = decoder.dequeueOutputBuffer(info, DEQUEUE_TIMEOUT_US); in decodeFramesAndDisplay()
218 decoder.releaseOutputBuffer(decoderStatus, renderToSurface); in decodeFramesAndDisplay()
247 decoder = MediaCodec.createDecoderByType( in configureDecoder()
249 decoder.configure(mediaFormat, surface, null, 0); in configureDecoder()
[all …]
DAdaptivePlaybackTest.java356 Decoder decoder = new Decoder(c.name); in addTests()
364 decoder.configureAndStart(configFmt, stepSurface()); in addTests()
366 decoder.flush(); in addTests()
370 decoder.queueCSD(fmt); in addTests()
372 int decodedFrames = -decoder.queueInputBufferRange( in addTests()
381 decoder.stop(); in addTests()
387 warn(decoder.getWarnings()); in addTests()
388 decoder.releaseQuietly(); in addTests()
618 Decoder decoder = new Decoder(c.name); in testStep()
623 decoder.configureAndStart(stepFormat(), stepSurface()); in testStep()
[all …]
DExtractDecodeEditEncodeMuxTest.java600 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createVideoDecoder() local
601 decoder.configure(inputFormat, surface, null, 0); in createVideoDecoder()
602 decoder.start(); in createVideoDecoder()
603 return decoder; in createVideoDecoder()
636 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createAudioDecoder() local
637 decoder.configure(inputFormat, null, null, 0); in createAudioDecoder()
638 decoder.start(); in createAudioDecoder()
639 return decoder; in createAudioDecoder()
DMediaSyncTest.java148 public void onTaggedAudioBufferIndex(Decoder decoder, int index) { in onTaggedAudioBufferIndex() argument
150 if (decoder == mDecoderAudio) { in onTaggedAudioBufferIndex()
156 public void onEos(Decoder decoder) { in onEos() argument
158 if (decoder == mDecoderAudio) { in onEos()
165 if (decoder == mDecoderVideo) { in onEos()
DVp8CodecTestBase.java551 MediaCodec decoder = MediaCodec.createByCodecName(properties.codecName); in decode() local
552 decoder.configure(format, in decode()
556 decoder.start(); in decode()
558 ByteBuffer[] inputBuffers = decoder.getInputBuffers(); in decode()
559 ByteBuffer[] outputBuffers = decoder.getOutputBuffers(); in decode()
572 int inputBufIndex = decoder.dequeueInputBuffer(DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
586 decoder.queueInputBuffer( in decode()
597 int result = decoder.dequeueOutputBuffer(bufferInfo, DEFAULT_DEQUEUE_TIMEOUT_US); in decode()
601 outputBuffers = decoder.getOutputBuffers(); in decode()
604 format = decoder.getOutputFormat(); in decode()
[all …]
DEncodeVirtualDisplayWithCompositionTest.java1380 MediaCodec decoder = null; in isConcurrentEncodingDecodingSupported() local
1385 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in isConcurrentEncodingDecodingSupported()
1389 decoder.configure(decoderFormat, decodingSurface.getSurface(), null, 0); in isConcurrentEncodingDecodingSupported()
1390 decoder.start(); in isConcurrentEncodingDecodingSupported()
1404 decoder.stop(); in isConcurrentEncodingDecodingSupported()
1416 if (decoder != null) { in isConcurrentEncodingDecodingSupported()
1417 decoder.release(); in isConcurrentEncodingDecodingSupported()
DVideoEncoderTest.java92 private void play(MediaCodec decoder, Surface surface) { in play() argument
93 decoder.reset(); in play()
96 decoder.setCallback(new MediaCodec.Callback() { in play()
133 decoder.configure(mFormat, surface, null /* crypto */, 0 /* flags */); in play()
134 decoder.start(); in play()
142 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/libs/deviceutil/src/android/cts/util/
DMediaUtils.java251 String decoder = sMCL.findDecoderForFormat(format); in getDecoder() local
252 if (decoder != null) { in getDecoder()
254 return MediaCodec.createByCodecName(decoder); in getDecoder()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java490 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance( in testAllOutputYUVResolutions() local
495 Bitmap fullSizeJpegBmap = decoder.decodeRegion(jpegPatch, opt); in testAllOutputYUVResolutions()
/cts/tests/expectations/
Dknownfailures.txt175 …description: "This test failed on hw decoder that doesn't output frame with the configured format.…
/cts/tools/dex-tools/dex/
Dclasses0.out.dex4631 private java.nio.charset.CharsetDecoder decoder
11285 java.nio.charset.CharsetDecoder decoder
29588 java.nio.charset.CharsetDecoder decoder