/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CtsUtilsTest.java | 48 drawGradient(src.planes[0], w, h); in testCopyYuv() 49 drawGradient(src.planes[1], w/2, h/2); in testCopyYuv() 50 drawGradient(src.planes[2], w/2, h/2); in testCopyYuv() 54 checkPlane("Y", w, h, src.planes[0], dst.planes[0]); in testCopyYuv() 55 checkPlane("U", w/2, h/2, src.planes[1], dst.planes[1]); in testCopyYuv() 56 checkPlane("V", w/2, h/2, src.planes[2], dst.planes[2]); in testCopyYuv() 66 drawGradient(src.planes[0], w, h); in testCopyPad0to0() 69 checkPlane("RAW", w, h, src.planes[0], dst.planes[0]); in testCopyPad0to0() 79 drawGradient(src.planes[0], w, h); in testCopyPad3to3() 82 checkPlane("RAW", w, h, src.planes[0], dst.planes[0]); in testCopyPad3to3() [all …]
|
D | ImageReaderTest.java | 1430 Image.Plane[] planes = yuvImage.getPlanes(); in convertPixelYuvToRgba() local 1432 Image.Plane yPlane = planes[0]; in convertPixelYuvToRgba() 1433 Image.Plane cbPlane = planes[1]; in convertPixelYuvToRgba() 1434 Image.Plane crPlane = planes[2]; in convertPixelYuvToRgba()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 423 AHardwareBuffer_Planes planes; in TEST() local 425 &planes); in TEST() 429 EXPECT_EQ(3U, planes.planeCount); in TEST() 431 EXPECT_TRUE(planes.planes[0].data != NULL); in TEST() 432 EXPECT_EQ(1U, planes.planes[0].pixelStride); in TEST() 433 EXPECT_TRUE(planes.planes[0].rowStride >= 16); in TEST() 435 EXPECT_TRUE(planes.planes[1].data != NULL); in TEST() 436 EXPECT_THAT(planes.planes[1].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 437 EXPECT_TRUE(planes.planes[1].rowStride >= 8); in TEST() 439 EXPECT_TRUE(planes.planes[2].data != NULL); in TEST() [all …]
|
D | AHardwareBufferGLTest.cpp | 632 AHardwareBuffer_Plane* planes = planes_info.planes; in CheckCpuGoldenPixelsYuv() local 633 ptrdiff_t y_offset = golden.y * planes[0].rowStride in CheckCpuGoldenPixelsYuv() 634 + golden.x * planes[0].pixelStride; in CheckCpuGoldenPixelsYuv() 635 ptrdiff_t u_offset = (golden.y / 2) * planes[1].rowStride in CheckCpuGoldenPixelsYuv() 636 + (golden.x / 2) * planes[1].pixelStride; in CheckCpuGoldenPixelsYuv() 637 ptrdiff_t v_offset = (golden.y / 2) * planes[2].rowStride in CheckCpuGoldenPixelsYuv() 638 + (golden.x / 2) * planes[2].pixelStride; in CheckCpuGoldenPixelsYuv() 641 *(reinterpret_cast<uint8_t*>(planes[0].data) + y_offset), in CheckCpuGoldenPixelsYuv() 642 *(reinterpret_cast<uint8_t*>(planes[1].data) + u_offset), in CheckCpuGoldenPixelsYuv() 643 *(reinterpret_cast<uint8_t*>(planes[2].data) + v_offset), in CheckCpuGoldenPixelsYuv() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 85 val planes = image.planes in <lambda>() constant 86 assertNotNull(planes) in <lambda>() 87 assertEquals(1, planes.size) in <lambda>() 88 val plane = planes[0] in <lambda>() 173 val planes = image.planes in testBasicDrawCpuConsumer() constant 174 assertNotNull(planes) in testBasicDrawCpuConsumer() 175 assertEquals(1, planes.size) in testBasicDrawCpuConsumer() 176 val plane = planes[0] in testBasicDrawCpuConsumer() 455 val planes = image.planes in testLotsOfBuffers() constant 456 assertNotNull(planes) in testLotsOfBuffers() [all …]
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraUtils.java | 169 final Image.Plane[] planes = image.getPlanes(); in yuv420ImageHasColor() local 174 int y = toUnsignedInt(planes[0].getBuffer().get( in yuv420ImageHasColor() 175 j * planes[0].getRowStride() + i * planes[0].getPixelStride())); in yuv420ImageHasColor() 176 int u = toUnsignedInt(planes[1].getBuffer().get( in yuv420ImageHasColor() 177 jChroma * planes[1].getRowStride() + iChroma * planes[1].getPixelStride())); in yuv420ImageHasColor() 178 int v = toUnsignedInt(planes[2].getBuffer().get( in yuv420ImageHasColor() 179 jChroma * planes[2].getRowStride() + iChroma * planes[2].getPixelStride())); in yuv420ImageHasColor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 227 Plane[] planes = image.getPlanes(); in getDataFromImage() local 237 ByteBuffer buffer = planes[0].getBuffer(); in getDataFromImage() 266 int maxRowSize = planes[0].getRowStride(); in getDataFromImage() 267 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 268 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage() 269 maxRowSize = planes[i].getRowStride(); in getDataFromImage() 273 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 274 ByteBuffer buffer = planes[i].getBuffer(); in getDataFromImage() 275 int rowStride = planes[i].getRowStride(); in getDataFromImage() 276 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() [all …]
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | DecodeStreamToYuv.java | 185 Image.Plane[] planes = image.getPlanes(); in getImage() local 186 for (int i = 0; i < planes.length; ++i) { in getImage() 187 ByteBuffer buf = planes[i].getBuffer(); in getImage() 189 rowStride = planes[i].getRowStride(); in getImage() 190 pixelStride = planes[i].getPixelStride(); in getImage()
|
D | CodecEncoderTestBase.java | 367 Image.Plane[] planes = image.getPlanes(); in fillImage() local 369 for (int i = 0; i < planes.length; ++i) { in fillImage() 370 ByteBuffer buf = planes[i].getBuffer(); in fillImage() 375 int rowStride = planes[i].getRowStride(); in fillImage() 376 int pixelStride = planes[i].getPixelStride(); in fillImage()
|
D | OutputManager.java | 253 Image.Plane[] planes = image.getPlanes(); in checksum() local 254 for (int i = 0; i < planes.length; ++i) { in checksum() 255 ByteBuffer buf = planes[i].getBuffer(); in checksum() 257 rowStride = planes[i].getRowStride(); in checksum() 258 pixelStride = planes[i].getPixelStride(); in checksum()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | CodecUtils.java | 46 Image.Plane[] planes = mImage.getPlanes(); in ImageWrapper() local 48 mPlanes = new Plane[planes.length]; in ImageWrapper() 49 for (int i = 0; i < planes.length; i++) { in ImageWrapper() 50 mPlanes[i] = new PlaneWrapper(planes[i]); in ImageWrapper()
|
/cts/tests/input/src/android/input/cts/ |
D | VirtualDisplayActivityScenarioRule.kt | 187 val buffer = image.planes[0].getBuffer() in getScreenshot() 188 val pixelStrideBytes: Int = image.planes[0].getPixelStride() in getScreenshot() 189 val rowStrideBytes: Int = image.planes[0].getRowStride() in getScreenshot()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | ImageReaderDecoderTest.java | 692 Plane[] planes = image.getPlanes(); in checkAndroidImageFormat() local 698 assertEquals("YUV420 format Images should have 3 planes", 3, planes.length); in checkAndroidImageFormat() 729 Plane[] planes = image.getPlanes(); in getDataFromImage() local 730 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage() 739 byte[] rowData = new byte[planes[0].getRowStride()]; in getDataFromImage() 740 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage() 741 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 743 buffer = planes[i].getBuffer(); in getDataFromImage() 745 rowStride = planes[i].getRowStride(); in getDataFromImage() 746 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
|
D | DecoderTest.java | 3137 Image.Plane[] planes = image.getPlanes(); 3138 for (int i = 0; i < planes.length; ++i) { 3139 ByteBuffer buf = planes[i].getBuffer(); 3142 rowStride = planes[i].getRowStride(); 3143 pixelStride = planes[i].getPixelStride();
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | EncodeDecodeTest.java | 1111 Image.Plane[] planes = image.getPlanes(); in checkFrame() local 1112 if (planes.length == 3 && image.getFormat() == ImageFormat.YUV_420_888) { in checkFrame() 1113 …testY = planes[0].getBuffer().get(y * planes[0].getRowStride() + x * planes[0].getPixelStride()) &… in checkFrame() 1114 …testU = planes[1].getBuffer().get((y/2) * planes[1].getRowStride() + (x/2) * planes[1].getPixelStr… in checkFrame() 1115 …testV = planes[2].getBuffer().get((y/2) * planes[2].getRowStride() + (x/2) * planes[2].getPixelStr… in checkFrame()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_dng_noise_model.py | 96 planes = image_processing_utils.convert_capture_to_planes(cap, props) 121 planes[i], _PATCH_X, _PATCH_Y, _PATCH_W, _PATCH_H)
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 341 Image.Plane[] planes = image.getPlanes(); in dumpYUV420PToFile() local 342 for (int i = 0; i < planes.length; ++i) { in dumpYUV420PToFile() 343 ByteBuffer buf = planes[i].getBuffer(); in dumpYUV420PToFile() 346 rowStride = planes[i].getRowStride(); in dumpYUV420PToFile() 347 pixelStride = planes[i].getPixelStride(); in dumpYUV420PToFile()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | CodecTestBase.java | 785 Image.Plane[] planes = image.getPlanes(); in fillImage() local 787 for (int i = 0; i < planes.length; ++i) { in fillImage() 788 ByteBuffer buf = planes[i].getBuffer(); in fillImage() 793 int rowStride = planes[i].getRowStride(); in fillImage() 794 int pixelStride = planes[i].getPixelStride(); in fillImage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1812 Plane[] planes = image.getPlanes(); in getDataFromImage() local 1813 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage() 1824 buffer = planes[0].getBuffer(); in getDataFromImage() 1835 assertTrue("Unexpected number of planes, expected " + 3 + " actual " + planes.length, in getDataFromImage() 1836 planes.length == 3); in getDataFromImage() 1838 buffer = planes[i].getBuffer(); in getDataFromImage() 1841 rowStride = planes[i].getRowStride(); in getDataFromImage() 1865 int maxRowSize = planes[0].getRowStride(); in getDataFromImage() 1866 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 1867 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage() [all …]
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 1160 Plane[] planes = image.getPlanes(); in getPixelValuesFromImage() local 1161 assertTrue(planes.length == 3); in getPixelValuesFromImage() 1163 result.mY = getPixelFromPlane(planes[0], x, y); in getPixelValuesFromImage() 1164 result.mU = getPixelFromPlane(planes[1], x / 2, y / 2); in getPixelValuesFromImage() 1165 result.mV = getPixelFromPlane(planes[2], x / 2, y / 2); in getPixelValuesFromImage()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1366 Image.Plane[] planes = image.getPlanes(); in getImageMD5Checksum() local 1367 for (int i = 0; i < planes.length; ++i) { in getImageMD5Checksum() 1368 ByteBuffer buf = planes[i].getBuffer(); in getImageMD5Checksum() 1371 rowStride = planes[i].getRowStride(); in getImageMD5Checksum() 1372 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlTest.java | 2136 Image.Plane[] planes = image.getPlanes(); in testDefaultDataSpaceForRGBBufferIssRGB() local 2137 assertEquals(1, planes.length); in testDefaultDataSpaceForRGBBufferIssRGB() 2138 Image.Plane plane = planes[0]; in testDefaultDataSpaceForRGBBufferIssRGB() 2218 Image.Plane[] planes = image.getPlanes(); in testDefaultDataSpaceForYUVBufferIssRGB() local 2219 assertEquals(3, planes.length); in testDefaultDataSpaceForYUVBufferIssRGB() 2220 for (int i = 0; i < planes.length; i++) { in testDefaultDataSpaceForYUVBufferIssRGB() 2221 Image.Plane plane = planes[i]; in testDefaultDataSpaceForYUVBufferIssRGB()
|