Searched defs:decoder (Results 1 - 10 of 10) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
H A DBitmapRegionDecoderTest.java147 BitmapRegionDecoder decoder =
149 assertEquals(WIDTHS[i], decoder.getWidth());
150 assertEquals(HEIGHTS[i], decoder.getHeight());
167 BitmapRegionDecoder decoder = BitmapRegionDecoder
169 assertEquals(WIDTHS[i], decoder.getWidth());
170 assertEquals(HEIGHTS[i], decoder.getHeight());
212 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1, false);
217 compareRegionByRegion(decoder, opts, MSE_MARGIN_WEB_P_CONFIG_RGB_565,
220 compareRegionByRegion(decoder, opts, MSE_MARGIN, wholeImage);
240 BitmapRegionDecoder decoder
583 compareRegionByRegion(BitmapRegionDecoder decoder, Options opts, int mseMargin, Bitmap wholeImage) argument
[all...]
/cts/tests/tests/media/src/android/media/cts/
H A DEncodeVirtualDisplayTest.java205 * Prepares the encoder, decoder, and virtual display.
209 MediaCodec decoder = null;
239 // We also need a decoder to check the output of the encoder.
240 decoder = MediaCodec.createDecoderByType(MIME_TYPE);
243 decoder.configure(decoderFormat, outputSurface.getSurface(), null, 0);
244 decoder.start();
251 doTestEncodeVirtual(encoder, decoder, outputSurface);
265 if (decoder != null) {
266 decoder.stop();
267 decoder
275 doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, OutputSurface outputSurface) argument
[all...]
H A DDecodeEditEncodeTest.java389 MediaCodec decoder = null;
418 decoder = MediaCodec.createDecoderByType(MIME_TYPE);
421 decoder.configure(inputFormat, outputSurface.getSurface(), null, 0);
422 decoder.start();
424 editVideoData(inputData, decoder, outputSurface, inputSurface, encoder, outputData);
426 if (VERBOSE) Log.d(TAG, "shutting down encoder, decoder");
437 if (decoder != null) {
438 decoder.stop();
439 decoder.release();
449 private void editVideoData(VideoChunks inputData, MediaCodec decoder, argument
645 checkVideoData(VideoChunks inputData, MediaCodec decoder, OutputSurface surface) argument
[all...]
H A DEncodeDecodeTest.java43 * We copy the data from the encoder's output buffers to the decoder's input buffers, running
45 * which we must carefully forward to the decoder.
47 * An alternative approach would be to save the output of the decoder as an mpeg4 video
101 * Tests streaming of AVC video through the encoder and decoder. Data is encoded from
119 * Tests streaming of VP8 video through the encoder and decoder. Data is encoded from
137 * Tests streaming of AVC video through the encoder and decoder. Data is encoded from
162 * Tests streaming of VP8 video through the encoder and decoder. Data is encoded from
212 * Tests streaming of AVC video through the encoder and decoder. Data is provided through
233 * Tests streaming of AVC video through the encoder and decoder. Data is provided through
254 * Tests streaming of VP8 video through the encoder and decoder
611 doEncodeDecodeVideoFromBuffer(MediaCodec encoder, int encoderColorFormat, MediaCodec decoder, boolean toSurface) argument
905 doEncodeDecodeVideoFromSurfaceToSurface(MediaCodecWrapper encoder, InputSurfaceInterface inputSurface, MediaCodec decoder, OutputSurface outputSurface) argument
[all...]
H A DMediaSyncTest.java149 public void onTaggedAudioBufferIndex(Decoder decoder, int index) { argument
151 if (decoder == mDecoderAudio) {
157 public void onEos(Decoder decoder) { argument
159 if (decoder == mDecoderAudio) {
166 if (decoder == mDecoderVideo) {
644 // get decoder.
649 Log.i(LOG_TAG, "No decoder found for mimeType= " + mimeType);
H A DImageReaderDecoderTest.java66 * test. For decoder test, hw and sw decoders are tested,
253 MediaCodec decoder = null;
288 // Create decoder
289 decoder = MediaCodec.createByCodecName(mName);
290 assertNotNull("couldn't create decoder" + mName, decoder);
293 decoder, extractor, mediaFormat,
296 decoder.stop();
304 if (decoder != null) {
305 decoder
465 decodeFramesToImage( MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, int width, int height, int imageFormat, int mode, boolean checkSwirl) argument
[all...]
H A DDecodeAccuracyTestBase.java150 private MediaCodec decoder; field in class:DecodeAccuracyTestBase.SimplePlayer
171 * @param surface is the surface view of decoder output.
206 * The function sets up the extractor and video decoder with proper format.
207 * This must be called before doing starting up the decoder.
299 final ByteBuffer[] inputBufferArray = decoder.getInputBuffers();
300 final int inputBufferIndex = decoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US);
305 inputBuffer = decoder.getInputBuffer(inputBufferIndex);
309 decoder.queueInputBuffer(
320 * For video decoder, renders to surface if provided.
321 * For audio decoder, get
[all...]
H A DVideoEncoderTest.java93 private void play(MediaCodec decoder, Surface surface) { argument
94 decoder.reset();
97 decoder.setCallback(new MediaCodec.Callback() {
134 decoder.configure(mFormat, surface, null /* crypto */, 0 /* flags */);
135 decoder.start();
143 decoder.stop();
250 Log.i(TAG, "decoder for " + mDecFormat + " is " + videoDecName);
327 if (DEBUG) Log.v(TAG, "decoder received input #" + ix);
336 // queue decoder input EOS
337 if (DEBUG) Log.v(TAG, "queuing decoder EO
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
H A DRVCVXCheckAnalyzer.java935 private MediaCodec decoder=null; field in class:RVCVXCheckAnalyzer.VideoDecoderForOpenCV
970 * Test if video decoder is in valid states ready to output video.
986 Log.e(TAG, "Interrupted when waiting for video decoder setup ready");
996 Log.e(TAG, "Interrupted when waiting for video decoder thread to stop");
999 decoder.stop();
1001 Log.e(TAG, "Video decoder is not in a state that can be stopped");
1008 if (decoder!=null) {
1009 decoder.release();
1010 decoder = null;
1042 decoder
[all...]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
H A DMediaUtils.java262 String decoder = sMCL.findDecoderForFormat(format);
263 if (decoder != null) {
265 return MediaCodec.createByCodecName(decoder);
282 Log.i(TAG, "no decoder for " + format);
364 Log.i(TAG, "no decoder for " + format);
408 return check(hasCodecsForResource(context, resourceId), "no decoder found");
419 return check(hasCodecForResource(context, resourceId, track), "no decoder found");
469 return check(hasCodecsForPath(context, path), "no decoder found");
490 "no " + domain + (encoder ? " encoder" : " decoder") + " found");
512 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder")
1046 verifyDecoder( MediaCodec decoder, MediaExtractor ex, List<String> frameMD5Sums) argument
[all...]

Completed in 417 milliseconds