Home
last modified time | relevance | path

Searched refs:yuv (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java110 byte[] yuv = new byte[width * height * 2]; in testYuvImage()
116 new YuvImage(yuv, FORMATS[i], width, height, null); in testYuvImage()
145 image = new YuvImage(yuv, FORMATS[i], width, height, null); in testYuvImage()
157 image = new YuvImage(yuv, FORMATS[0], width, height, null, null); in testYuvImage()
242 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData()
246 YuvImage image = new YuvImage(yuv, ImageFormat.NV21, width, height, strides); in testGetYuvData()
247 assertEquals(yuv, image.getYuvData()); in testGetYuvData()
509 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage()
519 image = new YuvImage(yuv, format, width, height, strides, colorSpace); in generateYuvImage()
521 image = new YuvImage(yuv, format, width, height, strides); in generateYuvImage()
[all …]
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoDecodeEditEncodeTest.java678 private double computeVariance(RawResource yuv) throws IOException { in computeVariance() argument
679 Preconditions.assertTestFileExists(yuv.mFileName); in computeVariance()
680 assertEquals("has support for 8 bit clips only", 1, yuv.mBytesPerSample); in computeVariance()
683 try (RandomAccessFile refStream = new RandomAccessFile(new File(yuv.mFileName), "r")) { in computeVariance()
684 int ySize = yuv.mWidth * yuv.mHeight; in computeVariance()
693 Pair<Double, Integer> var = computeFrameVariance(yuv.mWidth, yuv.mHeight, luma); in computeVariance()
741 RawResource yuv = yuvRes.getDecodedYuv(); in testVideoEdit() local
742 mTmpFiles.add(yuv.mFileName); in testVideoEdit()
743 double varA = computeVariance(yuv); in testVideoEdit()
746 yuv = yuvRes.getDecodedYuv(); in testVideoEdit()
[all …]
DVideoEncoderValidationTestBase.java109 DecodeStreamToYuv yuv = new DecodeStreamToYuv(res.mMediaType, res.mResFile, in decodeStreamsToYuv() local
111 streamYuvMap.put(res.uniqueLabel(), yuv.getDecodedYuv()); in decodeStreamsToYuv()
/cts/apps/CameraITS/
D.gitignore4 *.yuv
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTestBase.java387 private static byte[] YUV420ToNV(int width, int height, byte[] yuv) { in YUV420ToNV() argument
388 byte[] nv = new byte[yuv.length]; in YUV420ToNV()
390 System.arraycopy(yuv, 0, nv, 0, width * height); in YUV420ToNV()
397 nv[nv_offset++] = yuv[u_offset++]; in YUV420ToNV()
398 nv[nv_offset++] = yuv[v_offset++]; in YUV420ToNV()
409 byte[] yuv = new byte[width * height * 3 / 2]; in NV12ToYUV420()
413 System.arraycopy(nv12, i * stride, yuv, i * width, width); in NV12ToYUV420()
423 yuv[u_offset++] = nv12[nv_offset++]; in NV12ToYUV420()
424 yuv[v_offset++] = nv12[nv_offset++]; in NV12ToYUV420()
427 return yuv; in NV12ToYUV420()
[all …]
/cts/tests/media/
DREADME.md10 VideoEncoderParamTest uses stefan_sif_yuv420p_30fps.yuv. This is downloaded from [link](https://med…
/cts/apps/CameraITS/utils/
Dimage_processing_utils.py464 yuv = numpy.dstack([y, u.reshape(w * h), v.reshape(w * h)])
466 flt.reshape(w * h * 3)[:] = yuv.reshape(h * w * 3)[:]
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlTest.java2210 byte[] yuv = parameters.getColor(); in testDefaultDataSpaceForYUVBufferIssRGB()
2228 buffer.put(rowOffset + col * plane.getPixelStride(), yuv[i]); in testDefaultDataSpaceForYUVBufferIssRGB()