Searched refs:bytesPerPixel (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PixelFormatTest.java | 44 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/ |
D | AHardwareBufferTest.cpp | 331 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/ |
D | ItsUtils.java | 247 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/media/src/android/media/cts/ |
D | ImageReaderDecoderTest.java | 795 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/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 187 int bytesPerPixel = bitmap.getRowBytes() / bitmap.getWidth(); in createFromUncompressedETC1() local 191 bytesPerPixel, in createFromUncompressedETC1()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanTestHelpers.h | 86 VkFormat format, uint32_t bytesPerPixel);
|
D | VulkanTestHelpers.cpp | 446 VkFormat format, uint32_t bytesPerPixel) in VkImageRenderer() argument 448 mResultBufferSize(width * height * bytesPerPixel) {} in VkImageRenderer()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1077 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()
|