Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java73 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRNBEncoders() local
84 formats.push(format); in testAMRNBEncoders()
87 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_AMR_NB, formats); in testAMRNBEncoders()
91 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRWBEncoders() local
102 formats.push(format); in testAMRWBEncoders()
105 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_AMR_WB, formats); in testAMRWBEncoders()
109 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testOpusEncoders() local
120 formats.push(format); in testOpusEncoders()
123 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_OPUS, formats); in testOpusEncoders()
127 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAACEncoders() local
[all …]
DVideoDecoderPerfTest.java339 MediaFormat[] formats = new MediaFormat[resources.length]; in getVideoTrackFormats() local
341 formats[i] = MediaUtils.getTrackFormatForResource(mContext, resources[i], "video/"); in getVideoTrackFormats()
343 return formats; in getVideoTrackFormats()
347 MediaFormat[] formats = getVideoTrackFormats(resources); in count() local
348 MediaUtils.verifyNumCodecs(numGoog, false /* isEncoder */, true /* isGoog */, formats); in count()
349 MediaUtils.verifyNumCodecs(numOther, false /* isEncoder */, false /* isGoog */, formats); in count()
353 MediaFormat[] formats = getVideoTrackFormats(resources); in perf() local
354 String[] decoders = MediaUtils.getDecoderNames(isGoog, formats); in perf()
357 MediaUtils.skipTest("No " + kind + " decoders for " + Arrays.toString(formats)); in perf()
360 Log.i(TAG, "No more " + kind + " decoders for " + Arrays.toString(formats)); in perf()
[all …]
/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/apps/CameraITS/pymodules/its/
Ddevice.py599 formats = [c['format'] if 'format' in c else 'yuv'
601 formats = [s if s != 'jpg' else 'jpeg' for s in formats]
787 formats = [c["format"] if "format" in c else "yuv"
789 formats = [s if s != "jpg" else "jpeg" for s in formats]
793 formats = ['yuv']
858 raw_formats += 1 if "dng" in formats else 0
859 raw_formats += 1 if "raw" in formats else 0
860 raw_formats += 1 if "raw10" in formats else 0
861 raw_formats += 1 if "raw12" in formats else 0
862 raw_formats += 1 if "rawStats" in formats else 0
[all …]
/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java209 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames() argument
223 for (MediaFormat format : formats) { in getCodecNames()
242 public static String[] getDecoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getDecoderNames() argument
243 return getCodecNames(false /* isEncoder */, isGoog, formats); in getDecoderNames()
246 public static String[] getDecoderNames(MediaFormat... formats) { in getDecoderNames() argument
247 return getCodecNames(false /* isEncoder */, null /* isGoog */, formats); in getDecoderNames()
251 public static String[] getEncoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getEncoderNames() argument
252 return getCodecNames(true /* isEncoder */, isGoog, formats); in getEncoderNames()
255 public static String[] getEncoderNames(MediaFormat... formats) { in getEncoderNames() argument
256 return getCodecNames(true /* isEncoder */, null /* isGoog */, formats); in getEncoderNames()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DPerformanceTest.java318 private void testSingleCaptureForFormat(int[] formats, String formatDescription, in testSingleCaptureForFormat() argument
343 for (int format : formats) { in testSingleCaptureForFormat()
373 SimpleImageListener[] imageListeners = new SimpleImageListener[formats.length]; in testSingleCaptureForFormat()
374 Size[] imageSizes = new Size[formats.length]; in testSingleCaptureForFormat()
375 for (int j = 0; j < formats.length; j++) { in testSingleCaptureForFormat()
379 formats[j], in testSingleCaptureForFormat()
385 mTestRule.getOrderedPreviewSizes().get(0), imageSizes, formats, in testSingleCaptureForFormat()
413 double [] imageTimes = new double[formats.length]; in testSingleCaptureForFormat()
414 for (int j = 0; j < formats.length; j++) { in testSingleCaptureForFormat()
1202 Size previewSz, Size[] captureSizes, int[] formats, CaptureCallback resultListener, in prepareStillCaptureAndStartPreview() argument
[all …]
DExtendedCameraCharacteristicsTest.java770 Set<Integer> formats = lowLatencyConfig.getOutputFormats(); in verifyRecommendedLowLatencyConfiguration() local
771 for (Integer format : formats) { in verifyRecommendedLowLatencyConfiguration()
/cts/tests/media/jni/
DNativeCodecDecoderTest.cpp544 std::vector<AMediaFormat*> formats; in testSimpleDecodeQueueCSD() local
545 formats.push_back(mInpDecFormat); in testSimpleDecodeQueueCSD()
548 formats.push_back(mInpDecDupFormat); in testSimpleDecodeQueueCSD()
566 for (int i = 0; i < formats.size() && isPass; i++) { in testSimpleDecodeQueueCSD()
567 auto fmt = formats[i]; in testSimpleDecodeQueueCSD()
/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/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp286 std::vector<VkSurfaceFormatKHR> formats(formatCount); in init() local
288 &formatCount, formats.data())); in init()
292 if (formats[formatIndex].format == VK_FORMAT_R8G8B8A8_UNORM) { in init()
298 mFormat = formats[formatIndex].format; in init()
327 .imageColorSpace = formats[formatIndex].colorSpace, in init()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderTest.java707 ArrayList<MediaFormat> formats = new ArrayList<>(); in testSimpleDecodeQueueCSD() local
708 formats.add(format); in testSimpleDecodeQueueCSD()
709 formats.add(new MediaFormat(format)); in testSimpleDecodeQueueCSD()
729 for (MediaFormat fmt : formats) { in testSimpleDecodeQueueCSD()
DCodecTestBase.java737 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
751 if (formats != null) { in selectCodecs()
752 for (MediaFormat format : formats) { in selectCodecs()
/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.java2519 int[] formats = getAvailableFormats(StaticMetadata.StreamDirection.Output); in isHeicSupported() local
2520 return CameraTestUtils.contains(formats, ImageFormat.HEIC); in isHeicSupported()
2527 int[] formats = getAvailableFormats(StaticMetadata.StreamDirection.Output); in isDepthJpegSupported() local
2528 return CameraTestUtils.contains(formats, ImageFormat.DEPTH_JPEG); in isDepthJpegSupported()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DVulkanDeviceInfo.java653 JSONArray formats = device.getJSONArray(KEY_FORMATS); in emitDevices() local
657 for (int formatIdx = 0; formatIdx < formats.length(); formatIdx++) { in emitDevices()
658 JSONArray formatPair = formats.getJSONArray(formatIdx); in emitDevices()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java16 package com.android.cts.verifier.camera.formats;
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile95 # Set the output format. Available formats are text, parseable, colorized, msvs
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java2517 Object[] formats = new Object[] { in parametersForNdkCompress() local
2543 return crossProduct(formats, colorSpaces, configs); in parametersForNdkCompress()