Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTest.java545 MediaCodec encoder = null; in testCreateInputSurfaceErrors() local
555 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors()
560 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
565 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testCreateInputSurfaceErrors()
566 encoder.start(); in testCreateInputSurfaceErrors()
568 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
574 if (encoder != null) { in testCreateInputSurfaceErrors()
575 encoder.stop(); in testCreateInputSurfaceErrors()
576 encoder.release(); in testCreateInputSurfaceErrors()
595 MediaCodec encoder = null; in testSignalSurfaceEOS() local
[all …]
DDecodeEditEncodeTest.java203 MediaCodec encoder = null; in generateVideoFile() local
231 encoder = MediaCodec.createByCodecName(codecName); in generateVideoFile()
232 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in generateVideoFile()
233 inputSurface = new InputSurface(encoder.createInputSurface()); in generateVideoFile()
235 encoder.start(); in generateVideoFile()
237 generateVideoData(encoder, inputSurface, output); in generateVideoFile()
239 if (encoder != null) { in generateVideoFile()
241 encoder.stop(); in generateVideoFile()
242 encoder.release(); in generateVideoFile()
266 private void generateVideoData(MediaCodec encoder, InputSurface inputSurface, in generateVideoData() argument
[all …]
DEncodeDecodeTest.java408 MediaCodec encoder = null; in encodeDecodeVideoFromBuffer() local
434 encoder = MediaCodec.createByCodecName(codec); in encodeDecodeVideoFromBuffer()
436 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer()
447 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeDecodeVideoFromBuffer()
448 encoder.start(); in encodeDecodeVideoFromBuffer()
455 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer()
458 if (encoder != null) { in encodeDecodeVideoFromBuffer()
459 encoder.stop(); in encodeDecodeVideoFromBuffer()
460 encoder.release(); in encodeDecodeVideoFromBuffer()
478 MediaCodecWrapper encoder = null; in encodeDecodeVideoFromSurfaceToSurface() local
[all …]
DEncodeVirtualDisplayTest.java225 MediaCodec encoder = null; in encodeVirtualDisplayTest() local
250 encoder = MediaCodec.createByCodecName(codec); in encodeVirtualDisplayTest()
251 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeVirtualDisplayTest()
252 Surface inputSurface = encoder.createInputSurface(); in encodeVirtualDisplayTest()
253 encoder.start(); in encodeVirtualDisplayTest()
271 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest()
281 if (encoder != null) { in encodeVirtualDisplayTest()
282 encoder.stop(); in encodeVirtualDisplayTest()
283 encoder.release(); in encodeVirtualDisplayTest()
295 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument
[all …]
DExtractDecodeEditEncodeMuxTest.java631 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createVideoEncoder() local
632 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createVideoEncoder()
634 surfaceReference.set(encoder.createInputSurface()); in createVideoEncoder()
635 encoder.start(); in createVideoEncoder()
636 return encoder; in createVideoEncoder()
660 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createAudioEncoder() local
661 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createAudioEncoder()
662 encoder.start(); in createAudioEncoder()
663 return encoder; in createAudioEncoder()
DVideoEncoderTest.java1988 for (Encoder encoder: encoders) { in extreme()
1989 if (encoder.testExtreme(x, y, flexYUV, near)) { in extreme()
2004 for (Encoder encoder: encoders) { in arbitrary()
2005 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary()
2029 for (Encoder encoder : encoders) { in specific()
2030 if (encoder.testSpecific(width, height, flexYUV)) { in specific()
2046 for (Encoder encoder : encoders) { in intraRefresh()
2047 if (encoder.testIntraRefresh(width, height)) { in intraRefresh()
2065 for (Encoder encoder : encoders) { in detailed()
2066 if (encoder.testSupport(width, height, frameRate, bitRate)) { in detailed()
[all …]
DEncodeVirtualDisplayWithCompositionTestImpl.java1505 MediaCodec encoder = null; in isConcurrentEncodingDecodingSupported() local
1525 encoder = MediaCodec.createEncoderByType(mimeType); in isConcurrentEncodingDecodingSupported()
1526 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in isConcurrentEncodingDecodingSupported()
1527 encodingSurface = encoder.createInputSurface(); in isConcurrentEncodingDecodingSupported()
1528 encoder.start(); in isConcurrentEncodingDecodingSupported()
1530 encoder.stop(); in isConcurrentEncodingDecodingSupported()
1540 if (encoder != null) { in isConcurrentEncodingDecodingSupported()
1541 encoder.release(); in isConcurrentEncodingDecodingSupported()
DMediaCodecBlockModelTest.java903 boolean encoder, in runComponentWithLinearInput() argument
944 if (encoder) { in runComponentWithLinearInput()
994 private static boolean supportsCodec(String mimeType, boolean encoder) { in supportsCodec() argument
997 if (encoder != info.isEncoder()) { in supportsCodec()
DMediaCodecCapabilitiesTest.java469 CodecCapabilities caps, String mime, boolean encoder, int width, int height) { in createReasonableVideoFormat() argument
472 if (encoder) { in createReasonableVideoFormat()
/cts/tests/video/
DREADME.md3 1. Testing video encoder/decoder performance by running encoding/decoding without displaying the ra…
4 2. Testing key operating rate for Hardware video encoder/decoder.
/cts/tests/mediapc/src/android/mediapc/cts/
DMultiEncoderPerfTest.java62 for (String encoder : listOfEncoders) { in inputParams()
64 argsList.add(new Object[]{mime, encoder, isAsync}); in inputParams()
DMultiEncoderPairPerfTest.java65 for (String encoder : listOfEncoders) { in inputParams()
66 mimeTypeEncoderPairs.add(Pair.create(mime, encoder)); in inputParams()
DMultiTranscoderPerfTest.java78 for (String encoder : listOfEncoders) { in inputParams()
79 mimeTypeEncoderPairs.add(Pair.create(mime, encoder)); in inputParams()
DEncoderInitializationLatencyTest.java182 for (String encoder : listOfEncoders) { in inputParams()
183 argsList.add(new Object[] {mime, encoder}); in inputParams()
/cts/tests/video/src/android/video/cts/
DCodecEncoderPerformanceTest.java90 for (String encoder : listOfEncoders) { in input()
94 argsList.add(new Object[]{decoder, arg[0], encoderMime, encoder, in input()
/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderTest.java68 public CodecEncoderTest(String encoder, String mime, int[] bitrates, int[] encoderInfo1, in CodecEncoderTest() argument
70 super(encoder, mime, bitrates, encoderInfo1, encoderInfo2); in CodecEncoderTest()
303 private native boolean nativeTestSimpleEncode(String encoder, String file, String mime, in nativeTestSimpleEncode() argument
410 private native boolean nativeTestFlush(String encoder, String file, String mime, in nativeTestFlush() argument
549 private native boolean nativeTestReconfigure(String encoder, String file, String mime, in nativeTestReconfigure() argument
615 private native boolean nativeTestOnlyEos(String encoder, String mime, int[] list0, int[] list1, in nativeTestOnlyEos() argument
706 private native boolean nativeTestSetForceSyncFrame(String encoder, String file, String mime, in nativeTestSetForceSyncFrame() argument
803 private native boolean nativeTestAdaptiveBitRate(String encoder, String file, String mime, in nativeTestAdaptiveBitRate() argument
DCodecEncoderSurfaceTest.java89 public CodecEncoderSurfaceTest(String encoder, String mime, String testFile, int bitrate, in CodecEncoderSurfaceTest() argument
91 mCompName = encoder; in CodecEncoderSurfaceTest()
546 private native boolean nativeTestSimpleEncode(String encoder, String decoder, String mime, in nativeTestSimpleEncode() argument
DEncodeDecodeAccuracyTest.java110 public EncodeDecodeAccuracyTest(String encoder, String mime, int width, int height, in EncodeDecodeAccuracyTest() argument
113 mCompName = encoder; in EncodeDecodeAccuracyTest()
DCodecTestBase.java1408 CodecEncoderTestBase(String encoder, String mime, int[] bitrates, int[] encoderInfo1, in CodecEncoderTestBase() argument
1411 mCodecName = encoder; in CodecEncoderTestBase()
1435 static int findByteBufferColorFormat(String encoder, String mime) throws IOException { in findByteBufferColorFormat() argument
1436 MediaCodec codec = MediaCodec.createByCodecName(encoder); in findByteBufferColorFormat()
1690 void encodeToMemory(String file, String encoder, int frameLimit, MediaFormat format, in encodeToMemory() argument
1695 mCodec = MediaCodec.createByCodecName(encoder); in encodeToMemory()
DEncoderProfileLevelTest.java59 public EncoderProfileLevelTest(String encoder, String mime, int bitrate, int encoderInfo1, in EncoderProfileLevelTest() argument
61 super(encoder, mime, new int[]{bitrate}, new int[]{encoderInfo1}, new int[]{encoderInfo2}); in EncoderProfileLevelTest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java621 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument
623 if (encoder != info.isEncoder()) { in hasCodecForDomain()
637 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument
638 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain()
639 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain()
642 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument
644 if (encoder != info.isEncoder()) { in hasCodecForMime()
658 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument
660 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes()
661 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes()
[all …]
/cts/tests/media/jni/
DNativeCodecEncoderSurfaceTest.cpp80 bool testSimpleEncode(const char* encoder, const char* decoder, const char* srcPath,
499 bool CodecEncoderSurfaceTest::testSimpleEncode(const char* encoder, const char* decoder, in testSimpleEncode() argument
525 mEncoder = AMediaCodec_createCodecByName(encoder); in testSimpleEncode()
528 ALOGE("unable to create media codec by name %s or %s", encoder, decoder); in testSimpleEncode()
566 AMediaFormat_toString(mEncFormat), encoder, srcPath, (isAsync ? "async" : "sync")); in testSimpleEncode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthentication.java315 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local
317 encoder.encode(builder.build()); in createItemsRequest()
/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)
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java137 CborEncoder encoder = new CborEncoder(baos); in canonicalizeCbor() local
138 encoder.encode(dataItem); in canonicalizeCbor()
329 CborEncoder encoder = new CborEncoder(baos); in encodeCbor() local
331 encoder.encode(dataItems); in encodeCbor()
1272 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local
1274 encoder.encode(builder.build()); in createItemsRequest()