Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp412 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 …]
DAHardwareBufferGLTest.cpp626 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/
DItsUtils.java197 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/
DHardwareRendererTests.kt85 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/
DCodecUtils.java51 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()
DImageReaderDecoderTest.java728 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()
DEncodeDecodeTest.java1213 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()
DDecoderTest.java2960 Image.Plane[] planes = image.getPlanes();
2961 for (int i = 0; i < planes.length; ++i) {
2962 ByteBuffer buf = planes[i].getBuffer();
2965 rowStride = planes[i].getRowStride();
2966 pixelStride = planes[i].getPixelStride();
/cts/apps/CameraITS/tests/scene1/
Dtest_dng_noise_model.py78 planes = its.image.convert_capture_to_planes(cap, props)
100 plane = ((planes[i] * white_level - black_level) /
Dtest_raw_exposure.py107 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/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1030 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-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1174 Image.Plane[] planes = image.getPlanes(); in getImageMD5Checksum() local
1175 for (int i = 0; i < planes.length; ++i) { in getImageMD5Checksum()
1176 ByteBuffer buf = planes[i].getBuffer(); in getImageMD5Checksum()
1179 rowStride = planes[i].getRowStride(); in getImageMD5Checksum()
1180 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
/cts/apps/CameraITS/tools/
Ddng_noise_model.py147 planes = its.image.convert_capture_to_planes(cap, props)
155 for (pidx, p) in enumerate(planes):
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java1167 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/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java755 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/
DVideoEncoderDecoderTest.java1450 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()