Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 – 10 of 10) 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/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp56 int32_t bytesPerPixel = 0; in Buffer() local
62 &bytesPerPixel, &bytesPerStride); in Buffer()
67 bytesPerPixel = 4; in Buffer()
68 bytesPerStride = width * bytesPerPixel; in Buffer()
82 if (bytesPerStride < width * bytesPerPixel) { in Buffer()
83 bytesPerStride *= bytesPerPixel; in Buffer()
89 for (int col = 0; col < width; col++, ptr += bytesPerPixel) { in Buffer()
Dandroid_graphics_cts_AImageDecoderTest.cpp380 static int bytesPerPixel(int32_t format) { in bytesPerPixel() function
409 ASSERT_EQ(bytesPerPixel(ANDROID_BITMAP_FORMAT_RGBA_F16) * width, stride); in testGetMinimumStride()
411 ASSERT_EQ(bytesPerPixel(ANDROID_BITMAP_FORMAT_RGBA_8888) * width, stride); in testGetMinimumStride()
419 ASSERT_EQ(bytesPerPixel(format) * width, stride); in testGetMinimumStride()
668 if ((stride - minStride) % bytesPerPixel(format) != 0) { in testDecodeStride()
711 const int bpp = bytesPerPixel(AImageDecoderHeaderInfo_getAndroidBitmapFormat(info)); in testSetTargetSize()
977 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop()
992 size_t expectedStride = bytesPerPixel(format) * newWidth; in testSetCrop()
1023 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop()
1039 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop()
[all …]
DVulkanTestHelpers.h86 VkFormat format, uint32_t bytesPerPixel);
DVulkanTestHelpers.cpp493 VkFormat format, uint32_t bytesPerPixel) in VkImageRenderer() argument
495 mResultBufferSize(width * height * bytesPerPixel) {} in VkImageRenderer()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp332 int32_t bytesPerPixel = std::numeric_limits<int32_t>::min(); in TEST() local
338 (void** _Nonnull)NULL, &bytesPerPixel, &bytesPerStride); in TEST()
346 …_MASK | AHARDWAREBUFFER_USAGE_CPU_READ_MASK), -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST()
349 …uffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST()
351 if (bytesPerPixel == -1 || bytesPerStride == -1) { in TEST()
355 EXPECT_LE(0, bytesPerPixel); in TEST()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java249 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
253 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage()
258 if (pixelStride == bytesPerPixel) { in getDataFromImage()
260 int length = w * bytesPerPixel; in getDataFromImage()
/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.java814 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
816 if (pixelStride == bytesPerPixel) { in getDataFromImage()
818 length = w * bytesPerPixel; in getDataFromImage()
825 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1583 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local
1585 if (pixelStride == bytesPerPixel) { in getDataFromImage()
1587 length = w * bytesPerPixel; in getDataFromImage()
1594 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()