Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java172 Plane[] planes = image.getPlanes(); in getDataFromImage() local
182 ByteBuffer buffer = planes[0].getBuffer(); in getDataFromImage()
190 int maxRowSize = planes[0].getRowStride(); in getDataFromImage()
191 for (int i = 0; i < planes.length; i++) { in getDataFromImage()
192 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage()
193 maxRowSize = planes[i].getRowStride(); in getDataFromImage()
197 for (int i = 0; i < planes.length; i++) { in getDataFromImage()
198 ByteBuffer buffer = planes[i].getBuffer(); in getDataFromImage()
199 int rowStride = planes[i].getRowStride(); in getDataFromImage()
200 int pixelStride = planes[i].getPixelStride(); in getDataFromImage()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java42 Image.Plane[] planes = mImage.getPlanes(); in ImageWrapper() local
44 mPlanes = new Plane[planes.length]; in ImageWrapper()
45 for (int i = 0; i < planes.length; i++) { in ImageWrapper()
46 mPlanes[i] = new PlaneWrapper(planes[i]); in ImageWrapper()
DImageReaderDecoderTest.java725 Plane[] planes = image.getPlanes(); in checkAndroidImageFormat() local
730 assertEquals("YUV420 format Images should have 3 planes", 3, planes.length); in checkAndroidImageFormat()
761 Plane[] planes = image.getPlanes(); in getDataFromImage() local
762 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage()
771 byte[] rowData = new byte[planes[0].getRowStride()]; in getDataFromImage()
772 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage()
773 for (int i = 0; i < planes.length; i++) { in getDataFromImage()
775 buffer = planes[i].getBuffer(); in getDataFromImage()
777 rowStride = planes[i].getRowStride(); in getDataFromImage()
778 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
DEncodeDecodeTest.java1128 Image.Plane[] planes = image.getPlanes(); in checkFrame() local
1129 if (planes.length == 3 && image.getFormat() == ImageFormat.YUV_420_888) { in checkFrame()
1130 …testY = planes[0].getBuffer().get(y * planes[0].getRowStride() + x * planes[0].getPixelStride()) &… in checkFrame()
1131 …testU = planes[1].getBuffer().get((y/2) * planes[1].getRowStride() + (x/2) * planes[1].getPixelStr… in checkFrame()
1132 …testV = planes[2].getBuffer().get((y/2) * planes[2].getRowStride() + (x/2) * planes[2].getPixelStr… in checkFrame()
DDecoderTest.java1770 Image.Plane[] planes = image.getPlanes(); in checksum() local
1771 for (int i = 0; i < planes.length; ++i) { in checksum()
1772 ByteBuffer buf = planes[i].getBuffer(); in checksum()
1775 rowStride = planes[i].getRowStride(); in checksum()
1776 pixelStride = planes[i].getPixelStride(); in checksum()
/cts/apps/CameraITS/tests/scene1/
Dtest_param_noise_reduction.py62 planes = its.image.convert_capture_to_planes(cap)
64 img = planes[j]
87 planes = its.image.convert_capture_to_planes(cap)
89 img = planes[j]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraTestUtils.java812 Plane[] planes = image.getPlanes(); in getDataFromImage() local
813 assertTrue("Fail to get image planes", planes != null && planes.length > 0); in getDataFromImage()
822 buffer = planes[0].getBuffer(); in getDataFromImage()
832 int maxRowSize = planes[0].getRowStride(); in getDataFromImage()
833 for (int i = 0; i < planes.length; i++) { in getDataFromImage()
834 if (maxRowSize < planes[i].getRowStride()) { in getDataFromImage()
835 maxRowSize = planes[i].getRowStride(); in getDataFromImage()
839 if(VERBOSE) Log.v(TAG, "get data from " + planes.length + " planes"); in getDataFromImage()
840 for (int i = 0; i < planes.length; i++) { in getDataFromImage()
841 buffer = planes[i].getBuffer(); in getDataFromImage()
[all …]
DImageReaderTest.java510 Image.Plane[] planes = yuvImage.getPlanes(); in convertPixelYuvToRgba() local
512 Image.Plane yPlane = planes[0]; in convertPixelYuvToRgba()
513 Image.Plane cbPlane = planes[1]; in convertPixelYuvToRgba()
514 Image.Plane crPlane = planes[2]; in convertPixelYuvToRgba()
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py134 planes = its.image.convert_capture_to_planes(cap, props)
137 for (pidx, p) in enumerate(planes):
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java1203 Plane[] planes = image.getPlanes(); in getPixelValuesFromImage() local
1204 assertTrue(planes.length == 3); in getPixelValuesFromImage()
1206 result.mY = getPixelFromPlane(planes[0], x, y); in getPixelValuesFromImage()
1207 result.mU = getPixelFromPlane(planes[1], x / 2, y / 2); in getPixelValuesFromImage()
1208 result.mV = getPixelFromPlane(planes[2], x / 2, y / 2); in getPixelValuesFromImage()