Home
last modified time | relevance | path

Searched refs:decoder (Results 1 – 16 of 16) 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.java352 MediaCodec decoder = null; in encodeDecodeVideoFromBuffer() local
389 decoder = MediaCodec.createDecoderByType(mMimeType); in encodeDecodeVideoFromBuffer()
390 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromBuffer()
392 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
399 if (decoder != null) { in encodeDecodeVideoFromBuffer()
400 decoder.stop(); in encodeDecodeVideoFromBuffer()
401 decoder.release(); in encodeDecodeVideoFromBuffer()
416 MediaCodec decoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
450 decoder = MediaCodec.createDecoderByType(mMimeType); in encodeDecodeVideoFromSurfaceToSurface()
451 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 …]
DExtractDecodeEditEncodeMuxTest.java537 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createVideoDecoder() local
538 decoder.configure(inputFormat, surface, null, 0); in createVideoDecoder()
539 decoder.start(); in createVideoDecoder()
540 return decoder; in createVideoDecoder()
573 MediaCodec decoder = MediaCodec.createByCodecName(mcl.findDecoderForFormat(inputFormat)); in createAudioDecoder() local
574 decoder.configure(inputFormat, null, null, 0); in createAudioDecoder()
575 decoder.start(); in createAudioDecoder()
576 return decoder; in createAudioDecoder()
DAdaptivePlaybackTest.java350 Decoder decoder = new Decoder(c.name); in addTests()
358 decoder.configureAndStart(configFmt, stepSurface()); in addTests()
360 decoder.flush(); in addTests()
364 decoder.queueCSD(fmt); in addTests()
366 int decodedFrames = -decoder.queueInputBufferRange( in addTests()
375 decoder.stop(); in addTests()
381 warn(decoder.getWarnings()); in addTests()
382 decoder.releaseQuietly(); in addTests()
612 Decoder decoder = new Decoder(c.name); in testStep()
617 decoder.configureAndStart(stepFormat(), stepSurface()); in testStep()
[all …]
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.java1373 MediaCodec decoder = null; in isConcurrentEncodingDecodingSupported() local
1378 decoder = MediaCodec.createDecoderByType(MIME_TYPE); in isConcurrentEncodingDecodingSupported()
1382 decoder.configure(decoderFormat, decodingSurface.getSurface(), null, 0); in isConcurrentEncodingDecodingSupported()
1383 decoder.start(); in isConcurrentEncodingDecodingSupported()
1397 decoder.stop(); in isConcurrentEncodingDecodingSupported()
1409 if (decoder != null) { in isConcurrentEncodingDecodingSupported()
1410 decoder.release(); in isConcurrentEncodingDecodingSupported()
DMediaSyncTest.java140 public void onEos(Decoder decoder) { in onEos() argument
142 if (decoder == mDecoderAudio) { in onEos()
149 if (decoder == mDecoderVideo) { in onEos()
DVideoEncoderTest.java88 private void play(MediaCodec decoder, Surface surface) { in play() argument
89 decoder.reset(); in play()
92 decoder.setCallback(new MediaCodec.Callback() { in play()
129 decoder.configure(mFormat, surface, null /* crypto */, 0 /* flags */); in play()
130 decoder.start(); in play()
138 decoder.stop(); in play()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java927 private MediaCodec decoder=null; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV
991 decoder.stop(); in stop()
1000 if (decoder!=null) { in teardown()
1001 decoder.release(); in teardown()
1002 decoder = null; in teardown()
1034 decoder = MediaCodec.createDecoderByType(mime); in setup()
1045 decoder.configure(format, surface.getSurface(), null, 0); in setup()
1050 if (decoder == null) { in setup()
1069 decoder.start(); in run()
1071 ByteBuffer[] inputBuffers = decoder.getInputBuffers(); in run()
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java153 String decoder = sMCL.findDecoderForFormat(format); in getDecoder() local
154 if (decoder != null) { in getDecoder()
156 return MediaCodec.createByCodecName(decoder); in getDecoder()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DImageReaderTest.java420 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance( in testAllOutputYUVResolutions() local
425 Bitmap fullSizeJpegBmap = decoder.decodeRegion(jpegPatch, opt); in testAllOutputYUVResolutions()
/cts/tests/expectations/
Dknownfailures.txt196 …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