Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTest.java361 MediaCodec encoder = null; in testCreateInputSurfaceErrors() local
371 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors()
376 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
381 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testCreateInputSurfaceErrors()
382 encoder.start(); in testCreateInputSurfaceErrors()
384 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
390 if (encoder != null) { in testCreateInputSurfaceErrors()
391 encoder.stop(); in testCreateInputSurfaceErrors()
392 encoder.release(); in testCreateInputSurfaceErrors()
411 MediaCodec encoder = null; in testSignalSurfaceEOS() local
[all …]
DDecodeEditEncodeTest.java191 MediaCodec encoder = null; in generateVideoFile() local
219 encoder = MediaCodec.createByCodecName(codecName); in generateVideoFile()
220 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in generateVideoFile()
221 inputSurface = new InputSurface(encoder.createInputSurface()); in generateVideoFile()
223 encoder.start(); in generateVideoFile()
225 generateVideoData(encoder, inputSurface, output); in generateVideoFile()
227 if (encoder != null) { in generateVideoFile()
229 encoder.stop(); in generateVideoFile()
230 encoder.release(); in generateVideoFile()
254 private void generateVideoData(MediaCodec encoder, InputSurface inputSurface, in generateVideoData() argument
[all …]
DEncodeDecodeTest.java403 MediaCodec encoder = null; in encodeDecodeVideoFromBuffer() local
429 encoder = MediaCodec.createByCodecName(codec); in encodeDecodeVideoFromBuffer()
431 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer()
442 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeDecodeVideoFromBuffer()
443 encoder.start(); in encodeDecodeVideoFromBuffer()
450 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
453 if (encoder != null) { in encodeDecodeVideoFromBuffer()
454 encoder.stop(); in encodeDecodeVideoFromBuffer()
455 encoder.release(); in encodeDecodeVideoFromBuffer()
473 MediaCodecWrapper encoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
[all …]
DEncodeVirtualDisplayTest.java208 MediaCodec encoder = null; in encodeVirtualDisplayTest() local
230 encoder = MediaCodec.createByCodecName(codec); in encodeVirtualDisplayTest()
231 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeVirtualDisplayTest()
232 Surface inputSurface = encoder.createInputSurface(); in encodeVirtualDisplayTest()
233 encoder.start(); in encodeVirtualDisplayTest()
251 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest()
261 if (encoder != null) { in encodeVirtualDisplayTest()
262 encoder.stop(); in encodeVirtualDisplayTest()
263 encoder.release(); in encodeVirtualDisplayTest()
275 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument
[all …]
DExtractDecodeEditEncodeMuxTest.java623 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createVideoEncoder() local
624 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createVideoEncoder()
626 surfaceReference.set(encoder.createInputSurface()); in createVideoEncoder()
627 encoder.start(); in createVideoEncoder()
628 return encoder; in createVideoEncoder()
652 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createAudioEncoder() local
653 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createAudioEncoder()
654 encoder.start(); in createAudioEncoder()
655 return encoder; in createAudioEncoder()
DVideoEncoderTest.java1745 for (Encoder encoder: encoders) { in extreme()
1746 if (encoder.testExtreme(x, y, flexYUV, near)) { in extreme()
1761 for (Encoder encoder: encoders) { in arbitrary()
1762 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary()
1786 for (Encoder encoder : encoders) { in specific()
1787 if (encoder.testSpecific(width, height, flexYUV)) { in specific()
1803 for (Encoder encoder : encoders) { in intraRefresh()
1804 if (encoder.testIntraRefresh(width, height)) { in intraRefresh()
1822 for (Encoder encoder : encoders) { in detailed()
1823 if (encoder.testSupport(width, height, frameRate, bitRate)) { in detailed()
[all …]
DEncodeVirtualDisplayWithCompositionTest.java1565 MediaCodec encoder = null; in isConcurrentEncodingDecodingSupported() local
1581 encoder = MediaCodec.createEncoderByType(MIME_TYPE);; in isConcurrentEncodingDecodingSupported()
1582 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in isConcurrentEncodingDecodingSupported()
1583 encodingSurface = encoder.createInputSurface(); in isConcurrentEncodingDecodingSupported()
1584 encoder.start(); in isConcurrentEncodingDecodingSupported()
1586 encoder.stop(); in isConcurrentEncodingDecodingSupported()
1596 if (encoder != null) { in isConcurrentEncodingDecodingSupported()
1597 encoder.release(); in isConcurrentEncodingDecodingSupported()
DMediaCodecCapabilitiesTest.java467 CodecCapabilities caps, String mime, boolean encoder, int width, int height) { in createReasonableVideoFormat() argument
470 if (encoder) { in createReasonableVideoFormat()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java493 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument
495 if (encoder != info.isEncoder()) { in hasCodecForDomain()
509 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument
510 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain()
511 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain()
514 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument
516 if (encoder != info.isEncoder()) { in hasCodecForMime()
530 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument
532 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes()
533 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java491 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument
493 if (encoder != info.isEncoder()) { in hasCodecForDomain()
507 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument
508 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain()
509 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain()
512 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument
514 if (encoder != info.isEncoder()) { in hasCodecForMime()
528 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument
530 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes()
531 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes()
[all …]
/cts/tools/cts-media/
Dget_achievable_rates.py247 for mime, encoder, goog in sorted(set(self.kind.values())):
249 if self.kind[codec] != (mime, encoder, goog):
253 xmlInfo[dev][(not encoder, goog, mime, codec)][size].append(p95)