Home
last modified time | relevance | path

Searched refs:pixelStride (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/media/common/src/android/media/cts/
DYUVImage.java106 YUVPlane(int w, int h, int rowStride, int pixelStride, in YUVPlane() argument
109 mPixelStride = pixelStride; in YUVPlane()
112 int length = (h - 1) * rowStride + (w - 1) * pixelStride + 1; in YUVPlane()
/cts/tests/media/common/src/android/mediav2/common/cts/
DDecodeStreamToYuv.java188 int width, height, rowStride, pixelStride, x, y, left, top; in getImage() local
190 pixelStride = planes[i].getPixelStride(); in getImage()
192 assertEquals(bytesPerSample, pixelStride); in getImage()
203 int cropOffset = (left * pixelStride) + top * rowStride; in getImage()
209 if (pixelStride == bytesPerSample) { in getImage()
222 buf.get(lb, 0, pixelStride * (width - 1) + bytesPerSample); in getImage()
226 lb[x * pixelStride + bytePos]; in getImage()
DOutputManager.java256 int width, height, rowStride, pixelStride, left, top; in checksum() local
258 pixelStride = planes[i].getPixelStride(); in checksum()
260 assertEquals(bytesPerSample, pixelStride); in checksum()
271 int cropOffset = (left * pixelStride) + top * rowStride; in checksum()
278 if (pixelStride == bytesPerSample) { in checksum()
290 b[lineOffset + x * pixelStride + bytePos]; in checksum()
302 if (pixelStride == bytesPerSample) { in checksum()
319 dup.get(lb, 0, pixelStride * (width - 1) + bytesPerSample); in checksum()
323 lb[x * pixelStride + bytePos]; in checksum()
DCodecEncoderTestBase.java376 int pixelStride = planes[i].getPixelStride(); in fillImage() local
383 if (pixelStride == bytesPerSample) { in fillImage()
409 buf.position(lineOffset + (x + w) * pixelStride + bytePos); in fillImage()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DSsimHelper.java142 int pixelStride = lumaPlane.getPixelStride(); in extractLumaChannelBuffer() local
148 lumaChannelBuffer[y * width + x] = lumaByteBuffer.get(y * rowStride + x * pixelStride); in extractLumaChannelBuffer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java259 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/nativehardware/jni/
DAHardwareBufferTest.cpp432 EXPECT_EQ(1U, planes.planes[0].pixelStride); in TEST()
436 EXPECT_THAT(planes.planes[1].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST()
440 EXPECT_THAT(planes.planes[2].pixelStride, AnyOf(Eq(1U), Eq(2U))); in TEST()
483 EXPECT_THAT(planes.planes[0].pixelStride, Eq(bytesPerPixel)); in TEST()
487 EXPECT_THAT(planes.planes[1].pixelStride, Eq(bytesPerPixel * /*interleaved=*/2)); in TEST()
491 EXPECT_THAT(planes.planes[2].pixelStride, Eq(bytesPerPixel * /*interleaved=*/2)); in TEST()
531 EXPECT_EQ(4U, planes.planes[0].pixelStride); in TEST()
DAHardwareBufferGLTest.cpp634 + golden.x * planes[0].pixelStride; in CheckCpuGoldenPixelsYuv()
636 + (golden.x / 2) * planes[1].pixelStride; in CheckCpuGoldenPixelsYuv()
638 + (golden.x / 2) * planes[2].pixelStride; in CheckCpuGoldenPixelsYuv()
800 + golden.x * planes[0].pixelStride; in WriteGoldenPixelsYuv()
802 + (golden.x / 2) * planes[1].pixelStride; in WriteGoldenPixelsYuv()
804 + (golden.x / 2) * planes[2].pixelStride; in WriteGoldenPixelsYuv()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java345 int width, height, rowStride, pixelStride, x, y, top, left; in dumpYUV420PToFile() local
347 pixelStride = planes[i].getPixelStride(); in dumpYUV420PToFile()
363 if (pixelStride == 1) { in dumpYUV420PToFile()
372 bb[y * width + x] = b[lineOffset + x * pixelStride]; in dumpYUV420PToFile()
378 if (pixelStride == 1) { in dumpYUV420PToFile()
392 buf.get(lb, 0, pixelStride * (width - 1) + 1); in dumpYUV420PToFile()
394 bb[y * width + x] = lb[x * pixelStride]; in dumpYUV420PToFile()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DImageReaderDecoderTest.java725 int rowStride, pixelStride; in getDataFromImage() local
746 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
747 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
749 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
757 buffer.position(rowStride * (crop.top >> shift) + pixelStride * (crop.left >> shift)); in getDataFromImage()
764 if (pixelStride == bytesPerPixel) { in getDataFromImage()
773 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
777 data[offset++] = rowData[col * pixelStride + bytePos]; in getDataFromImage()
DDecoderTest.java3141 int width, height, rowStride, pixelStride, x, y;
3143 pixelStride = planes[i].getPixelStride();
3156 if (pixelStride == 1) {
3165 bb[y * width + x] = b[lineOffset + x * pixelStride];
3171 if (pixelStride == 1) {
3183 buf.get(lb, 0, pixelStride * (width - 1) + 1);
3185 bb[y * width + x] = lb[x * pixelStride];
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java276 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() local
281 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage()
286 if (pixelStride == bytesPerPixel) { in getDataFromImage()
306 if (pixelStride >= 1) { in getDataFromImage()
308 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt89 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1370 int width, height, rowStride, pixelStride, x, y, top, left; in getImageMD5Checksum() local
1372 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
1388 int offs = buf.arrayOffset() + left * pixelStride; in getImageMD5Checksum()
1389 if (pixelStride == 1) { in getImageMD5Checksum()
1398 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum()
1404 if (pixelStride == 1) { in getImageMD5Checksum()
1414 buf.position(pos + left * pixelStride + (top + y) * rowStride); in getImageMD5Checksum()
1416 buf.get(lb, 0, pixelStride * (width - 1) + 1); in getImageMD5Checksum()
1418 bb[y * width + x] = lb[x * pixelStride]; in getImageMD5Checksum()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java698 final int pixelStride = plane.getPixelStride(); in scanImage() local
700 final int rowPadding = rowStride - pixelStride * width; in scanImage()
703 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
729 offset += pixelStride; in scanImage()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java794 int pixelStride = planes[i].getPixelStride(); in fillImage() local
801 if (pixelStride == 1) { in fillImage()
825 buf.position(lineOffset + (x + w) * pixelStride); in fillImage()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1808 int rowStride, pixelStride; in getDataFromImage() local
1878 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
1879 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
1881 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
1893 if (pixelStride == bytesPerPixel) { in getDataFromImage()
1902 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
1905 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()