/cts/tests/tests/media/src/android/media/cts/ |
D | YUVImage.java | 109 YUVPlane(int w, int h, int rowStride, int pixelStride, in YUVPlane() argument 112 mPixelStride = pixelStride; in YUVPlane() 115 int length = (h - 1) * rowStride + (w - 1) * pixelStride + 1; in YUVPlane()
|
D | ImageReaderDecoderTest.java | 760 int rowStride, pixelStride; in getDataFromImage() local 781 pixelStride = planes[i].getPixelStride(); in getDataFromImage() 782 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage() 784 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage() 792 buffer.position(rowStride * (crop.top >> shift) + pixelStride * (crop.left >> shift)); in getDataFromImage() 797 if (pixelStride == bytesPerPixel) { in getDataFromImage() 806 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage() 809 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|
D | DecoderTest.java | 3048 int width, height, rowStride, pixelStride, x, y; 3050 pixelStride = planes[i].getPixelStride(); 3063 if (pixelStride == 1) { 3072 bb[y * width + x] = b[lineOffset + x * pixelStride]; 3078 if (pixelStride == 1) { 3090 buf.get(lb, 0, pixelStride * (width - 1) + 1); 3092 bb[y * width + x] = lb[x * pixelStride];
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 248 final int pixelStride = plane.getPixelStride(); in scanImage() local 250 final int rowPadding = rowStride - pixelStride * width; in scanImage() 253 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage() 276 offset += pixelStride; in scanImage()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 246 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() local 251 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage() 256 if (pixelStride == bytesPerPixel) { in getDataFromImage() 276 if (pixelStride >= 1) { in getDataFromImage() 278 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 385 final int pixelStride = plane.getPixelStride(); in scanImage() local 387 final int rowPadding = rowStride - pixelStride * width; in scanImage() 390 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage() 416 offset += pixelStride; in scanImage()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1171 int width, height, rowStride, pixelStride, x, y, top, left; in getImageMD5Checksum() local 1173 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum() 1189 int offs = buf.arrayOffset() + left * pixelStride; in getImageMD5Checksum() 1190 if (pixelStride == 1) { in getImageMD5Checksum() 1199 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum() 1205 if (pixelStride == 1) { in getImageMD5Checksum() 1215 buf.position(pos + left * pixelStride + (top + y) * rowStride); in getImageMD5Checksum() 1217 buf.get(lb, 0, pixelStride * (width - 1) + 1); in getImageMD5Checksum() 1219 bb[y * width + x] = lb[x * pixelStride]; in getImageMD5Checksum()
|
/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 1280 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum() 1296 int offs = buf.arrayOffset() + left * pixelStride; in getImageMD5Checksum() 1297 if (pixelStride == 1) { in getImageMD5Checksum() 1306 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum() 1312 if (pixelStride == 1) { in getImageMD5Checksum() 1322 buf.position(pos + left * pixelStride + (top + y) * rowStride); in getImageMD5Checksum() 1324 buf.get(lb, 0, pixelStride * (width - 1) + 1); in getImageMD5Checksum() 1326 bb[y * width + x] = lb[x * pixelStride]; in getImageMD5Checksum()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 313 int width, height, rowStride, pixelStride, x, y; in checksum() local 315 pixelStride = planes[i].getPixelStride(); in checksum() 328 if (pixelStride == 1) { in checksum() 337 bb[y * width + x] = b[lineOffset + x * pixelStride]; in checksum() 343 if (pixelStride == 1) { in checksum() 355 buf.get(lb, 0, pixelStride * (width - 1) + 1); in checksum() 357 bb[y * width + x] = lb[x * pixelStride]; in checksum() 1180 int pixelStride = planes[i].getPixelStride(); in fillImage() local 1187 if (pixelStride == 1) { in fillImage() 1211 buf.position(lineOffset + (x + w) * pixelStride); in fillImage()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 421 EXPECT_EQ(1U, planes.planes[0].pixelStride); in TEST() 425 EXPECT_THAT(planes.planes[1].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 429 EXPECT_THAT(planes.planes[2].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 469 EXPECT_EQ(4U, planes.planes[0].pixelStride); in TEST()
|
D | AHardwareBufferGLTest.cpp | 628 + golden.x * planes[0].pixelStride; in CheckCpuGoldenPixelsYuv() 630 + (golden.x / 2) * planes[1].pixelStride; in CheckCpuGoldenPixelsYuv() 632 + (golden.x / 2) * planes[2].pixelStride; in CheckCpuGoldenPixelsYuv() 794 + golden.x * planes[0].pixelStride; in WriteGoldenPixelsYuv() 796 + (golden.x / 2) * planes[1].pixelStride; in WriteGoldenPixelsYuv() 798 + (golden.x / 2) * planes[2].pixelStride; in WriteGoldenPixelsYuv()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 89 assertEquals(4, plane.pixelStride) in <lambda>() 105 val result = CaptureResult(pixels, 0, plane.rowStride / plane.pixelStride, in <lambda>() 177 assertEquals(4, plane.pixelStride) in testBasicDrawCpuConsumer() 459 assertEquals(4, plane.pixelStride) in testLotsOfBuffers()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1026 int rowStride, pixelStride; in getDataFromImage() local 1064 pixelStride = planes[i].getPixelStride(); in getDataFromImage() 1065 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage() 1067 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage() 1079 if (pixelStride == bytesPerPixel) { in getDataFromImage() 1088 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage() 1091 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|