/cts/tests/tests/media/src/android/media/cts/ |
D | YUVImage.java | 109 YUVPlane(int w, int h, int rowStride, int pixelStride, in YUVPlane() argument 111 mRowStride = rowStride; in YUVPlane() 115 int length = (h - 1) * rowStride + (w - 1) * pixelStride + 1; in YUVPlane()
|
D | ImageReaderDecoderTest.java | 762 int rowStride, pixelStride; in getDataFromImage() local 782 rowStride = planes[i].getRowStride(); in getDataFromImage() 787 Log.v(TAG, "rowStride " + rowStride); in getDataFromImage() 794 buffer.position(rowStride * (crop.top >> shift) + pixelStride * (crop.left >> shift)); in getDataFromImage() 795 assertTrue("rowStride " + rowStride + " should be >= width " + w , rowStride >= w); in getDataFromImage() 816 buffer.position(buffer.position() + rowStride - length); in getDataFromImage()
|
D | DecoderTest.java | 3213 int width, height, rowStride, pixelStride, x, y; 3214 rowStride = planes[i].getRowStride(); 3230 System.arraycopy(bb, y * width, b, y * rowStride + offs, width); 3235 int lineOffset = offs + y * rowStride; 3245 buf.position(pos + y * rowStride); 3250 byte[] lb = new byte[rowStride]; 3253 buf.position(pos + y * rowStride);
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelChecker.java | 43 int rowStride = plane.getRowStride(); in validatePlane() local 62 buffer.position(rowStride * row + boundsToCheck.left * PIXEL_STRIDE); in validatePlane()
|
D | RectChecker.java | 63 int rowStride = plane.getRowStride(); in validatePlaneForTarget() local 84 buffer.position(rowStride * row + startX); in validatePlaneForTarget()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 260 final int rowStride = plane.getRowStride(); in scanImage() local 261 final int rowPadding = rowStride - pixelStride * width; in scanImage() 264 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 313 int width, height, rowStride, pixelStride, x, y; in checksum() local 314 rowStride = planes[i].getRowStride(); in checksum() 330 System.arraycopy(bb, y * width, b, y * rowStride + offs, width); in checksum() 335 int lineOffset = offs + y * rowStride; in checksum() 345 buf.position(pos + y * rowStride); in checksum() 350 byte[] lb = new byte[rowStride]; in checksum() 353 buf.position(pos + y * rowStride); in checksum() 1179 int rowStride = planes[i].getRowStride(); in fillImage() local 1188 if (width == rowStride && width == tileWidth && height == tileHeight) { in fillImage() 1196 buf.position((z + y) * rowStride + x); in fillImage() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 247 int rowStride = planes[i].getRowStride(); in getDataFromImage() local 253 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage() 264 buffer.position(buffer.position() + rowStride - length); in getDataFromImage() 273 int readSize = rowStride; in getDataFromImage()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 422 EXPECT_TRUE(planes.planes[0].rowStride >= 16); in TEST() 426 EXPECT_TRUE(planes.planes[1].rowStride >= 8); in TEST() 430 EXPECT_TRUE(planes.planes[2].rowStride >= 8); in TEST() 470 EXPECT_TRUE(planes.planes[0].rowStride >= 64); in TEST()
|
D | AHardwareBufferGLTest.cpp | 627 ptrdiff_t y_offset = golden.y * planes[0].rowStride in CheckCpuGoldenPixelsYuv() 629 ptrdiff_t u_offset = (golden.y / 2) * planes[1].rowStride in CheckCpuGoldenPixelsYuv() 631 ptrdiff_t v_offset = (golden.y / 2) * planes[2].rowStride in CheckCpuGoldenPixelsYuv() 793 ptrdiff_t y_offset = golden.y * planes[0].rowStride in WriteGoldenPixelsYuv() 795 ptrdiff_t u_offset = (golden.y / 2) * planes[1].rowStride in WriteGoldenPixelsYuv() 797 ptrdiff_t v_offset = (golden.y / 2) * planes[2].rowStride in WriteGoldenPixelsYuv()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 431 final int rowStride = plane.getRowStride(); in scanImage() local 432 final int rowPadding = rowStride - pixelStride * width; in scanImage() 435 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 90 assertTrue((ActivityTestBase.TEST_WIDTH * 4) <= plane.rowStride) in <lambda>() 105 val result = CaptureResult(pixels, 0, plane.rowStride / plane.pixelStride, in <lambda>() 178 assertTrue((TEST_WIDTH * 4) <= plane.rowStride) in testBasicDrawCpuConsumer() 460 assertTrue((TEST_WIDTH * 4) <= plane.rowStride) in testLotsOfBuffers()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1278 int width, height, rowStride, pixelStride, x, y, top, left; in getImageMD5Checksum() local 1279 rowStride = planes[i].getRowStride(); in getImageMD5Checksum() 1299 System.arraycopy(bb, y * width, b, (top + y) * rowStride + offs, width); in getImageMD5Checksum() 1304 int lineOffset = offs + (top + y) * rowStride; in getImageMD5Checksum() 1314 buf.position(pos + left + (top + y) * rowStride); in getImageMD5Checksum() 1319 byte[] lb = new byte[rowStride]; in getImageMD5Checksum() 1322 buf.position(pos + left * pixelStride + (top + y) * rowStride); in getImageMD5Checksum()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1253 int rowStride, pixelStride; in getDataFromImage() local 1290 rowStride = planes[i].getRowStride(); in getDataFromImage() 1295 Log.v(TAG, "rowStride " + rowStride); in getDataFromImage() 1302 assertTrue("rowStride " + rowStride + " should be >= width " + w , rowStride >= w); in getDataFromImage() 1323 buffer.position(buffer.position() + rowStride - length); in getDataFromImage()
|