/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 412 AHardwareBuffer_Planes planes; in TEST() local 414 &planes); in TEST() 418 EXPECT_EQ(3U, planes.planeCount); in TEST() 420 EXPECT_TRUE(planes.planes[0].data != NULL); in TEST() 421 EXPECT_EQ(1U, planes.planes[0].pixelStride); in TEST() 422 EXPECT_TRUE(planes.planes[0].rowStride >= 16); in TEST() 424 EXPECT_TRUE(planes.planes[1].data != NULL); in TEST() 425 EXPECT_THAT(planes.planes[1].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 426 EXPECT_TRUE(planes.planes[1].rowStride >= 8); in TEST() 428 EXPECT_TRUE(planes.planes[2].data != NULL); in TEST() [all …]
|
D | AHardwareBufferGLTest.cpp | 626 AHardwareBuffer_Plane* planes = planes_info.planes; in CheckCpuGoldenPixelsYuv() local 627 ptrdiff_t y_offset = golden.y * planes[0].rowStride in CheckCpuGoldenPixelsYuv() 628 + golden.x * planes[0].pixelStride; in CheckCpuGoldenPixelsYuv() 629 ptrdiff_t u_offset = (golden.y / 2) * planes[1].rowStride in CheckCpuGoldenPixelsYuv() 630 + (golden.x / 2) * planes[1].pixelStride; in CheckCpuGoldenPixelsYuv() 631 ptrdiff_t v_offset = (golden.y / 2) * planes[2].rowStride in CheckCpuGoldenPixelsYuv() 632 + (golden.x / 2) * planes[2].pixelStride; in CheckCpuGoldenPixelsYuv() 635 *(reinterpret_cast<uint8_t*>(planes[0].data) + y_offset), in CheckCpuGoldenPixelsYuv() 636 *(reinterpret_cast<uint8_t*>(planes[1].data) + u_offset), in CheckCpuGoldenPixelsYuv() 637 *(reinterpret_cast<uint8_t*>(planes[2].data) + v_offset), in CheckCpuGoldenPixelsYuv() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 197 Plane[] planes = image.getPlanes(); in getDataFromImage() local 207 ByteBuffer buffer = planes[0].getBuffer(); in getDataFromImage() 236 int maxRowSize = planes[0].getRowStride(); in getDataFromImage() 237 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 238 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage() 239 maxRowSize = planes[i].getRowStride(); in getDataFromImage() 243 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 244 ByteBuffer buffer = planes[i].getBuffer(); in getDataFromImage() 245 int rowStride = planes[i].getRowStride(); in getDataFromImage() 246 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() [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/media/src/android/media/cts/ |
D | CodecUtils.java | 51 Image.Plane[] planes = mImage.getPlanes(); in ImageWrapper() local 53 mPlanes = new Plane[planes.length]; in ImageWrapper() 54 for (int i = 0; i < planes.length; i++) { in ImageWrapper() 55 mPlanes[i] = new PlaneWrapper(planes[i]); in ImageWrapper()
|
D | ImageReaderDecoderTest.java | 728 Plane[] planes = image.getPlanes(); in checkAndroidImageFormat() local 733 assertEquals("YUV420 format Images should have 3 planes", 3, planes.length); in checkAndroidImageFormat() 764 Plane[] planes = image.getPlanes(); in getDataFromImage() local 765 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage() 774 byte[] rowData = new byte[planes[0].getRowStride()]; in getDataFromImage() 775 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage() 776 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 778 buffer = planes[i].getBuffer(); in getDataFromImage() 780 rowStride = planes[i].getRowStride(); in getDataFromImage() 781 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
|
D | EncodeDecodeTest.java | 1213 Image.Plane[] planes = image.getPlanes(); in checkFrame() local 1214 if (planes.length == 3 && image.getFormat() == ImageFormat.YUV_420_888) { in checkFrame() 1215 …testY = planes[0].getBuffer().get(y * planes[0].getRowStride() + x * planes[0].getPixelStride()) &… in checkFrame() 1216 …testU = planes[1].getBuffer().get((y/2) * planes[1].getRowStride() + (x/2) * planes[1].getPixelStr… in checkFrame() 1217 …testV = planes[2].getBuffer().get((y/2) * planes[2].getRowStride() + (x/2) * planes[2].getPixelStr… in checkFrame()
|
D | DecoderTest.java | 3044 Image.Plane[] planes = image.getPlanes(); 3045 for (int i = 0; i < planes.length; ++i) { 3046 ByteBuffer buf = planes[i].getBuffer(); 3049 rowStride = planes[i].getRowStride(); 3050 pixelStride = planes[i].getPixelStride();
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_dng_noise_model.py | 74 planes = its.image.convert_capture_to_planes(cap, props) 93 plane = its.image.get_image_patch(planes[i], 0.49, 0.49,
|
D | test_raw_exposure.py | 107 planes = its.image.convert_capture_to_planes(cap, props) 108 tiles = [its.image.get_image_patch(p, 0.445, 0.445, 0.11, 0.11) for p in planes]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 310 Image.Plane[] planes = image.getPlanes(); in checksum() local 311 for (int i = 0; i < planes.length; ++i) { in checksum() 312 ByteBuffer buf = planes[i].getBuffer(); in checksum() 314 rowStride = planes[i].getRowStride(); in checksum() 315 pixelStride = planes[i].getPixelStride(); in checksum() 1171 Image.Plane[] planes = image.getPlanes(); in fillImage() local 1173 for (int i = 0; i < planes.length; ++i) { in fillImage() 1174 ByteBuffer buf = planes[i].getBuffer(); in fillImage() 1179 int rowStride = planes[i].getRowStride(); in fillImage() 1180 int pixelStride = planes[i].getPixelStride(); in fillImage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1030 Plane[] planes = image.getPlanes(); in getDataFromImage() local 1031 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage() 1042 buffer = planes[0].getBuffer(); in getDataFromImage() 1052 int maxRowSize = planes[0].getRowStride(); in getDataFromImage() 1053 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 1054 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage() 1055 maxRowSize = planes[i].getRowStride(); in getDataFromImage() 1059 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage() 1060 for (int i = 0; i < planes.length; i++) { in getDataFromImage() 1061 buffer = planes[i].getBuffer(); in getDataFromImage() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1167 Image.Plane[] planes = image.getPlanes(); in getImageMD5Checksum() local 1168 for (int i = 0; i < planes.length; ++i) { in getImageMD5Checksum() 1169 ByteBuffer buf = planes[i].getBuffer(); in getImageMD5Checksum() 1172 rowStride = planes[i].getRowStride(); in getImageMD5Checksum() 1173 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1274 Image.Plane[] planes = image.getPlanes(); in getImageMD5Checksum() local 1275 for (int i = 0; i < planes.length; ++i) { in getImageMD5Checksum() 1276 ByteBuffer buf = planes[i].getBuffer(); in getImageMD5Checksum() 1279 rowStride = planes[i].getRowStride(); in getImageMD5Checksum() 1280 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
|
/cts/apps/CameraITS/tools/ |
D | dng_noise_model.py | 147 planes = its.image.convert_capture_to_planes(cap, props) 155 for (pidx, p) in enumerate(planes):
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageReaderTest.java | 755 Image.Plane[] planes = yuvImage.getPlanes(); in convertPixelYuvToRgba() local 757 Image.Plane yPlane = planes[0]; in convertPixelYuvToRgba() 758 Image.Plane cbPlane = planes[1]; in convertPixelYuvToRgba() 759 Image.Plane crPlane = planes[2]; in convertPixelYuvToRgba()
|
/cts/tests/video/src/android/video/cts/ |
D | VideoEncoderDecoderTest.java | 1450 Plane[] planes = image.getPlanes(); in getPixelValuesFromImage() local 1451 assertTrue(planes.length == 3); in getPixelValuesFromImage() 1453 result.mY = getPixelFromPlane(planes[0], x, y); in getPixelValuesFromImage() 1454 result.mU = getPixelFromPlane(planes[1], x / 2, y / 2); in getPixelValuesFromImage() 1455 result.mV = getPixelFromPlane(planes[2], x / 2, y / 2); in getPixelValuesFromImage()
|