Searched refs:planes (Results 1 – 10 of 10) sorted by relevance
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 172 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/ |
D | CodecUtils.java | 42 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()
|
D | ImageReaderDecoderTest.java | 725 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()
|
D | EncodeDecodeTest.java | 1128 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()
|
D | DecoderTest.java | 1770 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/ |
D | test_param_noise_reduction.py | 62 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/ |
D | CameraTestUtils.java | 812 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 …]
|
D | ImageReaderTest.java | 510 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/ |
D | dng_noise_model.py | 134 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/ |
D | VideoEncoderDecoderTest.java | 1203 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()
|