/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 | 779 int rowStride, pixelStride; in getDataFromImage() local 800 pixelStride = planes[i].getPixelStride(); in getDataFromImage() 801 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage() 803 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage() 811 buffer.position(rowStride * (crop.top >> shift) + pixelStride * (crop.left >> shift)); in getDataFromImage() 816 if (pixelStride == bytesPerPixel) { in getDataFromImage() 825 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage() 828 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | ProjectionOffscreenActivity.java | 259 final int pixelStride = plane.getPixelStride(); in scanImage() local 261 final int rowPadding = rowStride - pixelStride * width; in scanImage() 264 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage() 287 offset += pixelStride; in scanImage()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 339 int width, height, rowStride, pixelStride, x, y, top, left; in dumpYUV420PToFile() local 341 pixelStride = planes[i].getPixelStride(); in dumpYUV420PToFile() 357 if (pixelStride == 1) { in dumpYUV420PToFile() 366 bb[y * width + x] = b[lineOffset + x * pixelStride]; in dumpYUV420PToFile() 372 if (pixelStride == 1) { in dumpYUV420PToFile() 386 buf.get(lb, 0, pixelStride * (width - 1) + 1); in dumpYUV420PToFile() 388 bb[y * width + x] = lb[x * pixelStride]; in dumpYUV420PToFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 248 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() local 253 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage() 258 if (pixelStride == bytesPerPixel) { in getDataFromImage() 278 if (pixelStride >= 1) { in getDataFromImage() 280 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 499 final int pixelStride = plane.getPixelStride(); in scanImage() local 501 final int rowPadding = rowStride - pixelStride * width; in scanImage() 504 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage() 530 offset += pixelStride; in scanImage()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1344 int width, height, rowStride, pixelStride, x, y, top, left; in getImageMD5Checksum() local 1346 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum() 1362 int offs = buf.arrayOffset() + left * pixelStride; in getImageMD5Checksum() 1363 if (pixelStride == 1) { in getImageMD5Checksum() 1372 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum() 1378 if (pixelStride == 1) { in getImageMD5Checksum() 1388 buf.position(pos + left * pixelStride + (top + y) * rowStride); in getImageMD5Checksum() 1390 buf.get(lb, 0, pixelStride * (width - 1) + 1); in getImageMD5Checksum() 1392 bb[y * width + x] = lb[x * pixelStride]; in getImageMD5Checksum()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 426 EXPECT_EQ(1U, planes.planes[0].pixelStride); in TEST() 430 EXPECT_THAT(planes.planes[1].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 434 EXPECT_THAT(planes.planes[2].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST() 475 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/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 348 int width, height, rowStride, pixelStride, x, y, left, top; in checksum() local 350 pixelStride = planes[i].getPixelStride(); in checksum() 368 if (pixelStride == 1) { in checksum() 377 bb[y * width + x] = b[lineOffset + x * pixelStride]; in checksum() 384 if (pixelStride == 1) { in checksum() 396 buf.get(lb, 0, pixelStride * (width - 1) + 1); in checksum() 398 bb[y * width + x] = lb[x * pixelStride]; in checksum() 1493 int pixelStride = planes[i].getPixelStride(); in fillImage() local 1500 if (pixelStride == 1) { in fillImage() 1524 buf.position(lineOffset + (x + w) * pixelStride); in fillImage()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | CodecTestBase.java | 537 int pixelStride = planes[i].getPixelStride(); in fillImage() local 544 if (pixelStride == 1) { in fillImage() 568 buf.position(lineOffset + (x + w) * pixelStride); in fillImage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1523 int rowStride, pixelStride; in getDataFromImage() local 1593 pixelStride = planes[i].getPixelStride(); in getDataFromImage() 1594 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage() 1596 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage() 1608 if (pixelStride == bytesPerPixel) { in getDataFromImage() 1617 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage() 1620 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
|