Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java166 int width, height, rowStride, pixelStride, x, y; in getImageMD5Checksum() local
168 pixelStride = planes[i].getPixelStride(); in getImageMD5Checksum()
181 if (pixelStride == 1) { in getImageMD5Checksum()
190 bb[y * width + x] = b[lineOffset + x * pixelStride]; in getImageMD5Checksum()
196 if (pixelStride == 1) { in getImageMD5Checksum()
208 buf.get(lb, 0, pixelStride * (width - 1) + 1); in getImageMD5Checksum()
210 bb[y * width + x] = lb[x * pixelStride]; in getImageMD5Checksum()
DYUVImage.java109 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()
DImageReaderDecoderTest.java757 int rowStride, pixelStride; in getDataFromImage() local
778 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
779 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
781 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
789 buffer.position(rowStride * (crop.top >> shift) + pixelStride * (crop.left >> shift)); in getDataFromImage()
794 if (pixelStride == bytesPerPixel) { in getDataFromImage()
803 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
806 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
DDecoderTest.java2477 int width, height, rowStride, pixelStride, x, y;
2479 pixelStride = planes[i].getPixelStride();
2492 if (pixelStride == 1) {
2501 bb[y * width + x] = b[lineOffset + x * pixelStride];
2507 if (pixelStride == 1) {
2519 buf.get(lb, 0, pixelStride * (width - 1) + 1);
2521 bb[y * width + x] = lb[x * pixelStride];
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java217 int pixelStride = planes[i].getPixelStride(); in getDataFromImage() local
221 format, i, width, height, rowStride, pixelStride)); in getDataFromImage()
226 if (pixelStride == bytesPerPixel) { in getDataFromImage()
246 if (pixelStride >= 1) { in getDataFromImage()
248 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java240 final int pixelStride = plane.getPixelStride(); in scanImage() local
242 final int rowPadding = rowStride - pixelStride * width; in scanImage()
245 + ", pixelStride=" + pixelStride + ", rowStride=" + rowStride); in scanImage()
268 offset += pixelStride; in scanImage()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java385 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/tests/camera/src/android/hardware/camera2/cts/
DCameraTestUtils.java909 int rowStride, pixelStride; in getDataFromImage() local
946 pixelStride = planes[i].getPixelStride(); in getDataFromImage()
947 assertTrue("pixel stride " + pixelStride + " is invalid", pixelStride > 0); in getDataFromImage()
949 Log.v(TAG, "pixelStride " + pixelStride); in getDataFromImage()
961 if (pixelStride == bytesPerPixel) { in getDataFromImage()
970 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
973 data[offset++] = rowData[col * pixelStride]; in getDataFromImage()