Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DPixelFormatTest.java44 assertEquals(4, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
48 assertEquals(4, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
52 assertEquals(3, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
56 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
60 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
64 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
68 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
72 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
76 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
80 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp331 int32_t bytesPerPixel = std::numeric_limits<int32_t>::min(); in TEST() local
335 …int err = AHardwareBuffer_lockAndGetInfo(NULL, 0, -1, NULL, NULL, &bytesPerPixel, &bytesPerStride); in TEST()
343 …_MASK | AHARDWAREBUFFER_USAGE_CPU_READ_MASK), -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST()
346 …uffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST()
348 if (bytesPerPixel == -1 || bytesPerStride == -1) { in TEST()
352 EXPECT_LE(0, bytesPerPixel); in TEST()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java247 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
251 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage()
256 if (pixelStride == bytesPerPixel) { in getDataFromImage()
258 int length = w * bytesPerPixel; in getDataFromImage()
/cts/tests/tests/graphics/jni/
DVulkanTestHelpers.h86 VkFormat format, uint32_t bytesPerPixel);
DVulkanTestHelpers.cpp446 VkFormat format, uint32_t bytesPerPixel) in VkImageRenderer() argument
448 mResultBufferSize(width * height * bytesPerPixel) {} in VkImageRenderer()
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java187 int bytesPerPixel = bitmap.getRowBytes() / bitmap.getWidth(); in createFromUncompressedETC1() local
191 bytesPerPixel, in createFromUncompressedETC1()
/cts/tests/tests/media/src/android/media/cts/
DImageReaderDecoderTest.java795 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
797 if (pixelStride == bytesPerPixel) { in getDataFromImage()
799 length = w * bytesPerPixel; in getDataFromImage()
806 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1077 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
1079 if (pixelStride == bytesPerPixel) { in getDataFromImage()
1081 length = w * bytesPerPixel; in getDataFromImage()
1088 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()