Home
last modified time | relevance | path

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

12

/hardware/interfaces/graphics/composer/aidl/vts/
DRenderEngineVts.cpp79 int32_t bytesPerPixel = -1; in checkColorBuffer() local
82 &bufferData, &bytesPerPixel, &bytesPerStride)); in checkColorBuffer()
83 const uint32_t stride = (bytesPerPixel > 0 && bytesPerStride > 0) in checkColorBuffer()
84 ? static_cast<uint32_t>(bytesPerStride / bytesPerPixel) in checkColorBuffer()
96 int32_t bytesPerPixel = -1; in checkColorBuffer() local
99 &renderedBufferData, &bytesPerPixel, &bytesPerStride)); in checkColorBuffer()
100 const uint32_t renderedStride = (bytesPerPixel > 0 && bytesPerStride > 0) in checkColorBuffer()
101 ? static_cast<uint32_t>(bytesPerStride / bytesPerPixel) in checkColorBuffer()
106 &bytesPerPixel, &bytesPerStride)); in checkColorBuffer()
107 const uint32_t bufferStride = (bytesPerPixel > 0 && bytesPerStride > 0) in checkColorBuffer()
[all …]
DReadbackVts.cpp125 int32_t bytesPerPixel = GetBytesPerPixel(pixelFormat); in fillBuffer() local
126 ASSERT_NE(-1, bytesPerPixel); in fillBuffer()
132 int offset = (row * static_cast<int32_t>(stride) + col) * bytesPerPixel; in fillBuffer()
138 if (bytesPerPixel == 4) { in fillBuffer()
180 const int32_t bytesPerPixel = ReadbackHelper::GetBytesPerPixel(pixelFormat); in compareColorBuffers() local
181 ASSERT_NE(-1, bytesPerPixel); in compareColorBuffers()
185 int offset = (row * static_cast<int32_t>(stride) + col) * bytesPerPixel; in compareColorBuffers()
198 const int32_t bytesPerPixel = ReadbackHelper::GetBytesPerPixel(pixelFormat); in compareColorBuffers() local
199 ASSERT_NE(-1, bytesPerPixel); in compareColorBuffers()
202 int offset = (row * static_cast<int32_t>(stride) + col) * bytesPerPixel; in compareColorBuffers()
[all …]
/hardware/libhardware/modules/gralloc/
Dgralloc.cpp210 int bytesPerPixel = 0; in gralloc_alloc() local
213 bytesPerPixel = 8; in gralloc_alloc()
218 bytesPerPixel = 4; in gralloc_alloc()
221 bytesPerPixel = 3; in gralloc_alloc()
225 bytesPerPixel = 2; in gralloc_alloc()
228 bytesPerPixel = 1; in gralloc_alloc()
239 size_t size = align(height, tileHeight) * stride * bytesPerPixel + 4; in gralloc_alloc()
/hardware/google/gfxstream/host/tests/
DGLSnapshotTestDispatch.cpp136 GLuint width, height, bytesPerPixel; in testDraw() local
139 bytesPerPixel = glUtilsPixelBitSize(GL_RGBA, GL_UNSIGNED_BYTE) / 8; in testDraw()
141 prePixels.resize(width * height * bytesPerPixel); in testDraw()
165 postPixels.resize(width * height * bytesPerPixel); in testDraw()
169 EXPECT_TRUE(ImageMatches(width, height, bytesPerPixel, width, in testDraw()
DX11TestingSupport.cpp41 void* createNativePixmap(int width, int height, int bytesPerPixel) { in createNativePixmap() argument
44 auto res = XCreatePixmap(x->display, x->window, width, height, bytesPerPixel * 8); in createNativePixmap()
DX11TestingSupport.h18 void* createNativePixmap(int width, int height, int bytesPerPixel);
/hardware/google/gfxstream/host/gl/
DColorBufferGl.cpp113 int* bytesPerPixel, in sGetFormatParameters() argument
128 *bytesPerPixel = 3; in sGetFormatParameters()
134 *bytesPerPixel = 2; in sGetFormatParameters()
143 *bytesPerPixel = 4; in sGetFormatParameters()
149 *bytesPerPixel = 4; in sGetFormatParameters()
155 *bytesPerPixel = 4; in sGetFormatParameters()
161 *bytesPerPixel = 6; in sGetFormatParameters()
167 *bytesPerPixel = 8; in sGetFormatParameters()
173 *bytesPerPixel = 1; in sGetFormatParameters()
180 *bytesPerPixel = 4; in sGetFormatParameters()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp114 int32_t bytesPerPixel = GetBytesPerPixel(pixelFormat); in fillBuffer() local
115 ASSERT_NE(-1, bytesPerPixel); in fillBuffer()
121 int offset = (row * stride + col) * bytesPerPixel; in fillBuffer()
127 if (bytesPerPixel == 4) { in fillBuffer()
174 const int32_t bytesPerPixel = ReadbackHelper::GetBytesPerPixel(pixelFormat); in compareColorBuffers() local
175 ASSERT_NE(-1, bytesPerPixel); in compareColorBuffers()
179 int offset = (row * stride + col) * bytesPerPixel; in compareColorBuffers()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_adreno_info.cpp137 int bytesPerPixel = 0; in AlignCompressedRGB() local
144 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_adreno_info.cpp136 int bytesPerPixel = 0; in AlignCompressedRGB() local
143 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp286 int32_t bytesPerPixel = -1; in TEST_P() local
290 &bytesPerPixel, &bytesPerStride))); in TEST_P()
293 EXPECT_GT(bytesPerPixel, -1); in TEST_P()
307 bytesPerPixel = -1; in TEST_P()
313 &bytesPerPixel, &bytesPerStride))); in TEST_P()
321 EXPECT_GT(bytesPerPixel, -1); in TEST_P()
/hardware/qcom/display/msm8909/gralloc/
Dgr_adreno_info.cpp146 int bytesPerPixel = 0; in AlignCompressedRGB() local
153 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_adreno_info.cpp146 int bytesPerPixel = 0; in AlignCompressedRGB() local
153 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/qcom/sm8150/display/gralloc/
Dgr_adreno_info.cpp152 int bytesPerPixel = 0; in AlignCompressedRGB() local
159 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/google/camera/devices/EmulatedCamera/hwl/
DBase.h40 size_t bytesPerPixel = 1; member
DEmulatedSensor.cpp1698 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()
1700 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()
1704 yuv_layout.bytesPerPixel); in CaptureYUV420()
1707 px_y += yuv_layout.bytesPerPixel; in CaptureYUV420()
1716 if (yuv_layout.bytesPerPixel == 1) { in CaptureYUV420()
1719 } else if (yuv_layout.bytesPerPixel == 2) { in CaptureYUV420()
1724 yuv_layout.bytesPerPixel); in CaptureYUV420()
1783 size_t bytes_per_pixel = output.planes.bytesPerPixel; in ProcessYUV420()
1835 .bytesPerPixel = bytes_per_pixel}; in ProcessYUV420()
/hardware/qcom/sm7250/display/gralloc/
Dgr_adreno_info.cpp153 int bytesPerPixel = 0; in AlignCompressedRGB() local
159 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
/hardware/google/aemu/host-common/include/host-common/
Ddisplay_agent.h251 void (*getFrameBuffer)(int* w, int* h, int* lineSize, int* bytesPerPixel,
/hardware/interfaces/graphics/mapper/3.0/
DIMapper.hal199 * On success, bytesPerPixel must contain the number of bytes per pixel in
200 * the buffer. If the bytesPerPixel is unknown or variable, a value of -1
223 * @return bytesPerPixel the number of bytes per pixel in the buffer
232 int32_t bytesPerPixel,
/hardware/qcom/display/msm8226/libgralloc/
Dalloc_controller.cpp240 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
247 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()
/hardware/qcom/display/msm8084/libgralloc/
Dalloc_controller.cpp246 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
253 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()
/hardware/qcom/display/msm8994/libgralloc/
Dalloc_controller.cpp249 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
256 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()
/hardware/qcom/display/msm8996/libgralloc/
Dalloc_controller.cpp305 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
312 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()
/hardware/qcom/display/msm8909/libgralloc/
Dalloc_controller.cpp320 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
327 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dalloc_controller.cpp320 int bytesPerPixel = 0; in getAlignedWidthAndHeight() local
327 &aligned_w, &aligned_h, &bytesPerPixel); in getAlignedWidthAndHeight()

12