Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java80 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRNBEncoders() local
91 formats.push(format); in testAMRNBEncoders()
94 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_AMR_NB, formats); in testAMRNBEncoders()
98 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRWBEncoders() local
109 formats.push(format); in testAMRWBEncoders()
112 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_AMR_WB, formats); in testAMRWBEncoders()
117 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testOpusEncoders() local
129 formats.push(format); in testOpusEncoders()
133 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_OPUS, formats); in testOpusEncoders()
137 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAACEncoders() local
[all …]
DVideoDecoderPerfTest.java302 MediaFormat[] formats = new MediaFormat[resources.length]; in getVideoTrackFormats() local
305 formats[i] = MediaUtils.getTrackFormatForResource(mInpPrefix + resources[i], "video/"); in getVideoTrackFormats()
307 return formats; in getVideoTrackFormats()
311 MediaFormat[] formats = getVideoTrackFormats(resources); in count() local
312 MediaUtils.verifyNumCodecs(numGoog, false /* isEncoder */, true /* isGoog */, formats); in count()
313 MediaUtils.verifyNumCodecs(numOther, false /* isEncoder */, false /* isGoog */, formats); in count()
317 MediaFormat[] formats = getVideoTrackFormats(resources); in perf() local
318 String[] decoders = MediaUtils.getDecoderNames(isGoog, formats); in perf()
321 MediaUtils.skipTest("No " + kind + " decoders for " + Arrays.toString(formats)); in perf()
324 Log.i(TAG, "No more " + kind + " decoders for " + Arrays.toString(formats)); in perf()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DAdaptivePlaybackTest.java175 ArrayList<MediaFormat> formats = new ArrayList<>(); in testAdaptivePlayback() local
177 formats.add(setUpSource(file)); in testAdaptivePlayback()
180 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testAdaptivePlayback()
185 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, in testAdaptivePlayback()
192 formats.clear(); in testAdaptivePlayback()
205 formats.add(createInputList(setUpSource(file), buffer, list, buffOffset, ptsOffset)); in testAdaptivePlayback()
213 MediaFormat format = formats.get(0); in testAdaptivePlayback()
DCodecDecoderPauseTest.java78 ArrayList<MediaFormat> formats = new ArrayList<>(); in testPause() local
79 formats.add(setUpSource(mTestFile)); in testPause()
81 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testPause()
86 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, null, false).isEmpty()) { in testPause()
DEncodeDecodeAccuracyTest.java416 ArrayList<MediaFormat> formats = new ArrayList<>(); in decodeElementaryStream() local
417 formats.add(format); in decodeElementaryStream()
419 CodecDecoderTestBase.selectCodecs(mMime, formats, null, false); in decodeElementaryStream()
444 ArrayList<MediaFormat> formats = new ArrayList<>(); in testEncodeDecodeAccuracyRGB() local
445 formats.add(setUpEncoderFormat()); in testEncodeDecodeAccuracyRGB()
466 configureCodec(formats.get(0), isAsync); in testEncodeDecodeAccuracyRGB()
DDecoderColorAspectsTest.java246 ArrayList<MediaFormat> formats = new ArrayList<>(); in testColorAspects() local
247 formats.add(format); in testColorAspects()
248 Assume.assumeTrue(areFormatsSupported(mCodecName, mMime, formats)); in testColorAspects()
DCodecDecoderValidationTest.java469 ArrayList<MediaFormat> formats = new ArrayList<>(); in testDecodeAndValidate() local
471 formats.add(setUpSource(file)); in testDecodeAndValidate()
474 if (!areFormatsSupported(mCodecName, mMime, formats)) { in testDecodeAndValidate()
479 if (mSupport != CODEC_OPTIONAL && selectCodecs(mMime, formats, null, false).isEmpty()) { in testDecodeAndValidate()
DCodecDecoderTest.java642 ArrayList<MediaFormat> formats = new ArrayList<>(); in testSimpleDecodeQueueCSD() local
643 formats.add(format); in testSimpleDecodeQueueCSD()
644 formats.add(new MediaFormat(format)); in testSimpleDecodeQueueCSD()
659 for (int i = 0; i < formats.size(); i++) { in testSimpleDecodeQueueCSD()
660 MediaFormat fmt = formats.get(i); in testSimpleDecodeQueueCSD()
DCodecTestBase.java632 static boolean areFormatsSupported(String name, String mime, ArrayList<MediaFormat> formats) in areFormatsSupported() argument
638 if (formats != null) { in areFormatsSupported()
639 for (int i = 0; i < formats.size() && isSupported; i++) { in areFormatsSupported()
640 isSupported = codecCapabilities.isFormatSupported(formats.get(i)); in areFormatsSupported()
974 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
988 if (formats != null) { in selectCodecs()
989 for (MediaFormat format : formats) { in selectCodecs()
DEncoderProfileLevelTest.java739 ArrayList<MediaFormat> formats = new ArrayList<>(); in testValidateProfileLevel() local
740 formats.add(format); in testValidateProfileLevel()
744 selectCodecs(mMime, formats, null, false).isEmpty()); in testValidateProfileLevel()
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java133 XmlSerializer formats = Xml.newSerializer(); in run() local
134 formats.setOutput(out, UTF_8); in run()
135 formats.startDocument(UTF_8, true); in run()
136 formats.startTag(null, MediaBitstreams.DYNAMIC_CONFIG); in run()
141 formats.startTag(null, MediaBitstreams.DYNAMIC_CONFIG_ENTRY); in run()
142 formats.attribute(null, MediaBitstreams.DYNAMIC_CONFIG_KEY, path); in run()
143 formats.startTag(null, MediaBitstreams.DYNAMIC_CONFIG_VALUE); in run()
147 formats.text(formatStr); in run()
162 formats.text(formatStringBuilder.toString()); in run()
165 formats.endTag(null, MediaBitstreams.DYNAMIC_CONFIG_VALUE); in run()
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DPlaybackFrameDrop.java116 ArrayList<MediaFormat> formats = new ArrayList<>(); in setUpSourceFiles() local
118 formats.add(setUpSource(file)); in setUpSourceFiles()
131 formats.add(createInputList(setUpSource(file), mBuffer, mBufferInfos, buffOffset, in setUpSourceFiles()
138 return formats; in setUpSourceFiles()
142 ArrayList<MediaFormat> formats = setUpSourceFiles(); in getFrameDropCount() local
144 configureCodec(formats.get(0), mIsAsync, false, false); in getFrameDropCount()
DFrameDropTestBase.java152 ArrayList<MediaFormat> formats = new ArrayList<>(); in prepareArgumentsList() local
153 formats.add(format); in prepareArgumentsList()
155 selectHardwareCodecs(mime, formats, features, false); in prepareArgumentsList()
DCodecTestBase.java335 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
337 return selectCodecs(mime, formats, features, isEncoder, SELECT_ALL); in selectCodecs()
340 static ArrayList<String> selectHardwareCodecs(String mime, ArrayList<MediaFormat> formats, in selectHardwareCodecs() argument
342 return selectCodecs(mime, formats, features, isEncoder, SELECT_HARDWARE); in selectHardwareCodecs()
345 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
363 if (formats != null) { in selectCodecs()
364 for (MediaFormat format : formats) { in selectCodecs()
/cts/tests/tests/nativehardware/src/android/hardware/nativehardware/cts/
DHardwareBufferVrTest.java39 final int formats[] = { in testLayeredBuffersForVr() local
45 for (final int format : formats) { in testLayeredBuffersForVr()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java144 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
146 return selectCodecs(mime, formats, features, isEncoder, SELECT_ALL); in selectCodecs()
149 static ArrayList<String> selectHardwareCodecs(String mime, ArrayList<MediaFormat> formats, in selectHardwareCodecs() argument
151 return selectCodecs(mime, formats, features, isEncoder, SELECT_HARDWARE); in selectHardwareCodecs()
154 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
172 if (formats != null) { in selectCodecs()
173 for (MediaFormat format : formats) { in selectCodecs()
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/
DMediaPreparerAppTest.java126 List<MediaFormat> formats = new ArrayList<MediaFormat>(); in stringsToFormats() local
129 formats.add(parseTrackFormat(trackFormatString)); in stringsToFormats()
132 return formats; in stringsToFormats()
/cts/apps/CameraITS/utils/
Dits_session_utils.py629 formats = [
632 formats = [s if s != 'jpg' else 'jpeg' for s in formats]
636 formats = ['yuv']
722 raw_formats += 1 if 'dng' in formats else 0
723 raw_formats += 1 if 'raw' in formats else 0
724 raw_formats += 1 if 'raw10' in formats else 0
725 raw_formats += 1 if 'raw12' in formats else 0
726 raw_formats += 1 if 'rawStats' in formats else 0
744 ','.join(formats))
791 for j, fmt in enumerate(formats):
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java211 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames() argument
225 for (MediaFormat format : formats) { in getCodecNames()
244 public static String[] getDecoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getDecoderNames() argument
245 return getCodecNames(false /* isEncoder */, isGoog, formats); in getDecoderNames()
248 public static String[] getDecoderNames(MediaFormat... formats) { in getDecoderNames() argument
249 return getCodecNames(false /* isEncoder */, null /* isGoog */, formats); in getDecoderNames()
253 public static String[] getEncoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getEncoderNames() argument
254 return getCodecNames(true /* isEncoder */, isGoog, formats); in getEncoderNames()
257 public static String[] getEncoderNames(MediaFormat... formats) { in getEncoderNames() argument
258 return getCodecNames(true /* isEncoder */, null /* isGoog */, formats); in getEncoderNames()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java584 Size previewSz, Size[] captureSizes, int[] formats, CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument
589 if ((captureSizes == null) || (formats == null) || (imageListeners == null) && in prepareStillCaptureAndStartPreview()
590 (captureSizes.length != formats.length) || in prepareStillCaptureAndStartPreview()
591 (formats.length != imageListeners.length)) { in prepareStillCaptureAndStartPreview()
607 readers[i] = makeImageReader(captureSizes[i], formats[i], maxNumImages, in prepareStillCaptureAndStartPreview()
/cts/tests/media/jni/
DNativeCodecDecoderTest.cpp573 std::vector<AMediaFormat*> formats; in testSimpleDecodeQueueCSD() local
574 formats.push_back(mInpDecFormat); in testSimpleDecodeQueueCSD()
577 formats.push_back(mInpDecDupFormat); in testSimpleDecodeQueueCSD()
595 for (int i = 0; i < formats.size() && isPass; i++) { in testSimpleDecodeQueueCSD()
596 auto fmt = formats[i]; in testSimpleDecodeQueueCSD()
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp280 std::vector<VkSurfaceFormatKHR> formats(formatCount); in init() local
282 &formatCount, formats.data())); in init()
286 if (formats[formatIndex].format == VK_FORMAT_R8G8B8A8_UNORM) { in init()
292 mFormat = formats[formatIndex].format; in init()
321 .imageColorSpace = formats[formatIndex].colorSpace, in init()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiResolutionReprocessCaptureTest.java787 int[] formats = input ? configs.getInputFormats() : in getMultiResReprocessInfo() local
789 if (!CameraTestUtils.contains(formats, format)) { in getMultiResReprocessInfo()
792 + Arrays.toString(formats)); in getMultiResReprocessInfo()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp190 const int formats[] = { in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray() local
200 for (auto format : formats) { in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestEglImageArray()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java2613 int[] formats = getAvailableFormats(StaticMetadata.StreamDirection.Output); in isHeicSupported() local
2614 return CameraTestUtils.contains(formats, ImageFormat.HEIC); in isHeicSupported()
2621 int[] formats = getAvailableFormats(StaticMetadata.StreamDirection.Output); in isDepthJpegSupported() local
2622 return CameraTestUtils.contains(formats, ImageFormat.DEPTH_JPEG); in isDepthJpegSupported()

12