Home
last modified time | relevance | path

Searched refs:codecInfo (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecResourceTest.java88 CodecInfo codecInfo = getFirstVideoHardwareDecoder(); in testCreateCodecForAnotherProcessWithoutPermissionsThrows() local
89 assumeTrue("No video hardware codec found.", codecInfo != null); in testCreateCodecForAnotherProcessWithoutPermissionsThrows()
94 MediaCodec mediaCodec = MediaCodec.createByCodecNameForClient(codecInfo.name, in testCreateCodecForAnotherProcessWithoutPermissionsThrows()
111 CodecInfo codecInfo = getFirstVideoHardwareDecoder(); in testLowerPriorityProcessFailsToReclaimResources() local
112 assumeTrue("No video hardware codec found.", codecInfo != null); in testLowerPriorityProcessFailsToReclaimResources()
114 codecInfo.maxSupportedInstances > 0); in testLowerPriorityProcessFailsToReclaimResources()
132 for (int i = 0; i <= codecInfo.maxSupportedInstances; ++i) { in testLowerPriorityProcessFailsToReclaimResources()
134 MediaCodec mediaCodec = MediaCodec.createByCodecNameForClient(codecInfo.name, in testLowerPriorityProcessFailsToReclaimResources()
137 mediaCodec.configure(codecInfo.mediaFormat, /* surface= */ null, in testLowerPriorityProcessFailsToReclaimResources()
153 + " same process", codecInfo.maxSupportedInstances, codecInfo.name), in testLowerPriorityProcessFailsToReclaimResources()
[all …]
DVideoEncodingStatisticsTest.java114 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in getCodecCapabilities()
115 if (isEncoder != codecInfo.isEncoder()) { in getCodecCapabilities()
118 if (encoderName.equals(codecInfo.getName())) { in getCodecCapabilities()
119 return codecInfo.getCapabilitiesForType(mime); in getCodecCapabilities()
DVideoCodecTestBase.java123 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in getVideoCodecProperties()
124 if (isEncoder != codecInfo.isEncoder()) { in getVideoCodecProperties()
127 Log.v(TAG, codecInfo.getName()); in getVideoCodecProperties()
129 for (String type : codecInfo.getSupportedTypes()) { in getVideoCodecProperties()
133 CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(type); in getVideoCodecProperties()
139 Log.v(TAG, "Found candidate codec " + codecInfo.getName()); in getVideoCodecProperties()
148 codecProperties = new CodecProperties(codecInfo.getName(), in getVideoCodecProperties()
153 if (codecInfo.isVendor()) { in getVideoCodecProperties()
174 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in getEncoderProperties()
175 if (!codecInfo.isEncoder() || !codecName.equals(codecInfo.getName())) { in getEncoderProperties()
[all …]
DMediaCodecTest.java264 MediaCodecInfo codecInfo = codec.getCodecInfo(); // obtaining the codec info now is fine. in verifyException() local
405 codecInfo = codec.getCodecInfo(); in verifyException()
587 MediaCodecInfo codecInfo = selectCodec(MIME_TYPE); in testCreateInputSurfaceErrors() local
588 int colorFormat = findNonSurfaceColorFormat(codecInfo, MIME_TYPE); in testCreateInputSurfaceErrors()
593 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors()
595 fail("failed to create codec " + codecInfo.getName()); in testCreateInputSurfaceErrors()
1983 private static int findNonSurfaceColorFormat(MediaCodecInfo codecInfo, String mimeType) { in findNonSurfaceColorFormat() argument
1984 MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(mimeType); in findNonSurfaceColorFormat()
1991 fail("couldn't find a good color format for " + codecInfo.getName() + " / " + MIME_TYPE); in findNonSurfaceColorFormat()
2073 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in testPCMEncoding()
[all …]
DExtractDecodeEditEncodeMuxTest.java1278 MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i); in selectCodec() local
1280 if (codecInfo.isAlias()) { in selectCodec()
1283 if (!codecInfo.isEncoder()) { in selectCodec()
1287 String[] types = codecInfo.getSupportedTypes(); in selectCodec()
1290 return codecInfo; in selectCodec()
DDecodeEditEncodeTest.java179 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in hasSupportForColorFormat()
180 if (isEncoder != codecInfo.isEncoder()) { in hasSupportForColorFormat()
183 if (!name.equals(codecInfo.getName())) { in hasSupportForColorFormat()
186 MediaCodecInfo.CodecCapabilities cap = codecInfo.getCapabilitiesForType(mediaType); in hasSupportForColorFormat()
DEncodeDecodeTest.java460 private static int selectColorFormat(MediaCodecInfo codecInfo, String mimeType) { in selectColorFormat() argument
461 MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(mimeType); in selectColorFormat()
468 fail("couldn't find a good color format for " + codecInfo.getName() + " / " + mimeType); in selectColorFormat()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestBase.java561 for (MediaCodecInfo codecInfo : MEDIA_CODEC_LIST_ALL.getCodecInfos()) { in isFeatureSupported()
562 if (name.equals(codecInfo.getName())) { in isFeatureSupported()
563 return codecInfo.getCapabilitiesForType(mediaType).isFeatureSupported(feature); in isFeatureSupported()
598 for (MediaCodecInfo codecInfo : MEDIA_CODEC_LIST_REGULAR.getCodecInfos()) { in isEncoderFeatureSupported()
599 if (!codecInfo.isEncoder()) { in isEncoderFeatureSupported()
602 for (String mediaType : codecInfo.getSupportedTypes()) { in isEncoderFeatureSupported()
603 CodecCapabilities caps = codecInfo.getCapabilitiesForType(mediaType); in isEncoderFeatureSupported()
630 for (MediaCodecInfo codecInfo : MEDIA_CODEC_LIST_REGULAR.getCodecInfos()) { in doesCodecSupportHDRProfile()
631 if (!codecName.equals(codecInfo.getName())) { in doesCodecSupportHDRProfile()
634 CodecCapabilities caps = codecInfo.getCapabilitiesForType(mediaType); in doesCodecSupportHDRProfile()
[all …]
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java179 for (MediaCodecInfo codecInfo : codecInfos) { in selectCodecs()
180 if (TestArgs.shouldSkipCodec(codecInfo.getName())) { in selectCodecs()
183 if (codecInfo.isEncoder() != isEncoder) continue; in selectCodecs()
184 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && codecInfo.isAlias()) continue; in selectCodecs()
185 if (selectCodecOption == SELECT_HARDWARE && !codecInfo.isHardwareAccelerated()) in selectCodecs()
187 else if (selectCodecOption == SELECT_SOFTWARE && !codecInfo.isSoftwareOnly()) in selectCodecs()
189 String[] types = codecInfo.getSupportedTypes(); in selectCodecs()
194 codecInfo.getCapabilitiesForType(type); in selectCodecs()
211 if (isOk) listOfCodecs.add(codecInfo.getName()); in selectCodecs()
DVideoCodecClaimsPerformanceTestBase.java92 MediaCodecInfo codecInfo = getCodecInfo(codecName); in deviceClaimsPerformanceSupported() local
94 codecName, mTestConfig), codecInfo); in deviceClaimsPerformanceSupported()
95 MediaCodecInfo.CodecCapabilities cap = codecInfo.getCapabilitiesForType(mMediaType); in deviceClaimsPerformanceSupported()
DCodecEncoderPerformanceTestBase.java88 for (MediaCodecInfo codecInfo : codecInfos) { in getMimesOfAvailableHardwareVideoEncoders()
89 if (!codecInfo.isEncoder() || !codecInfo.isHardwareAccelerated()) continue; in getMimesOfAvailableHardwareVideoEncoders()
90 String[] types = codecInfo.getSupportedTypes(); in getMimesOfAvailableHardwareVideoEncoders()
/cts/tests/media/src/android/mediav2/cts/
DCodecInfoTest.java101 public CodecInfoTest(String mediaType, String codecName, MediaCodecInfo codecInfo) { in CodecInfoTest() argument
104 mCodecInfo = codecInfo; in CodecInfoTest()
111 for (MediaCodecInfo codecInfo : codecList.getCodecInfos()) { in input()
112 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && codecInfo.isAlias()) { in input()
115 String codecName = codecInfo.getName(); in input()
120 String[] types = codecInfo.getSupportedTypes(); in input()
122 argsList.add(new Object[]{type, codecName, codecInfo}); in input()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderLowLatencyTest.java95 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in getCodecCapabilitiesForDecoder()
96 if (codecInfo.isEncoder()) { in getCodecCapabilitiesForDecoder()
99 if (codecName.equals(codecInfo.getName())) { in getCodecCapabilitiesForDecoder()
100 return codecInfo.getCapabilitiesForType(mime); in getCodecCapabilitiesForDecoder()
DDecoderConformanceTest.java183 MediaCodecInfo codecInfo = mDecoder.getCodecInfo(); in decodeTestVector() local
184 MediaCodecInfo.CodecCapabilities caps = codecInfo.getCapabilitiesForType(mime); in decodeTestVector()
DAdaptivePlaybackTest.java1299 String codecName, MediaCodecInfo codecInfo, Media media, int eosframe, TestSurface s)
1579 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) {
1580 if (codecInfo.isAlias()) {
1583 if (codecInfo.isEncoder()) {
1586 for (String type : codecInfo.getSupportedTypes()) {
1589 codecInfo,
1590 codecInfo.getCapabilitiesForType(mime),
DDecoderTest.java393 for (MediaCodecInfo codecInfo : codecInfoList) { in verifyChannelsAndRates()
394 MediaCodec codec = MediaCodec.createByCodecName(codecInfo.getName()); in verifyChannelsAndRates()
407 Log.d(TAG, "codec: " + codecInfo.getName() + in verifyChannelsAndRates()
428 for (MediaCodecInfo codecInfo : mediaCodecList.getCodecInfos()) { in getDecoderMediaCodecInfoList()
429 if (!codecInfo.isEncoder() && isMimeTypeSupported(codecInfo, mimeType)) { in getDecoderMediaCodecInfoList()
430 decoderInfos.add(codecInfo); in getDecoderMediaCodecInfoList()
436 private boolean isMimeTypeSupported(MediaCodecInfo codecInfo, String mimeType) { in isMimeTypeSupported() argument
437 for (String type : codecInfo.getSupportedTypes()) { in isMimeTypeSupported()
4391 MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);
4392 if (codecInfo.isAlias()) {
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java452 for (MediaCodecInfo codecInfo : codecInfos) { in selectCodecs()
453 if (codecInfo.isEncoder() != isEncoder) continue; in selectCodecs()
454 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && codecInfo.isAlias()) continue; in selectCodecs()
455 if (selectCodecOption == SELECT_HARDWARE && !codecInfo.isHardwareAccelerated()) in selectCodecs()
457 else if (selectCodecOption == SELECT_SOFTWARE && !codecInfo.isSoftwareOnly()) in selectCodecs()
459 String[] types = codecInfo.getSupportedTypes(); in selectCodecs()
464 codecInfo.getCapabilitiesForType(type); in selectCodecs()
481 if (isOk) listOfCodecs.add(codecInfo.getName()); in selectCodecs()
492 for (MediaCodecInfo codecInfo : codecInfos) { in getMediaTypesOfAvailableCodecs()
493 if (codecType == SELECT_HARDWARE && !codecInfo.isHardwareAccelerated()) { in getMediaTypesOfAvailableCodecs()
[all …]
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DEncoderTest.java336 MediaCodecInfo codecInfo = codec.getCodecInfo(); in testEncoder() local
337 MediaCodecInfo.CodecCapabilities caps = codecInfo.getCapabilitiesForType(mime); in testEncoder()
DVideoEncoderTest.java1257 for (MediaCodecInfo codecInfo : mcl.getCodecInfos()) { in getCodecCapabities()
1258 if (isEncoder != codecInfo.isEncoder()) { in getCodecCapabities()
1261 if (encoderName.equals(codecInfo.getName())) { in getCodecCapabities()
1262 return codecInfo.getCapabilitiesForType(mime); in getCodecCapabities()