Searched refs:bytes_per_pixel (Results 1 – 10 of 10) sorted by relevance
/device/google/cuttlefish_common/common/vsoc/lib/ |
D | screen_region_view.h | 53 uint32_t bytes_per_pixel() const { in bytes_per_pixel() function 54 return vsoc::PixelFormatProperties<kFbPixelFormat>::bytes_per_pixel; in bytes_per_pixel() 57 int line_length() const { return align(x_res() * bytes_per_pixel()); } in line_length() 60 return (align(x_res() * bytes_per_pixel()) * y_res()) + kSwiftShaderPadding; in buffer_size()
|
/device/google/cuttlefish_common/guest/hals/gralloc/ |
D | gralloc.cpp | 83 int bytes_per_pixel = formatToBytesPerPixel(format); in formatToBytesPerFrame() local 93 return bytes_per_pixel * w * h; in formatToBytesPerFrame() 109 return bytes_per_pixel * w16 * h16 + kSwiftShaderPadding; in formatToBytesPerFrame() 182 int bytes_per_pixel = formatToBytesPerPixel(format); in gralloc_alloc() local 191 bytes_per_line = align(bytes_per_pixel * w, 16); in gralloc_alloc() 193 bytes_per_line = align(bytes_per_pixel * w, 8); in gralloc_alloc() 203 stride_in_pixels = bytes_per_line / bytes_per_pixel; in gralloc_alloc()
|
/device/google/cuttlefish_common/guest/hals/gralloc/legacy/ |
D | gralloc.cpp | 59 int bytes_per_pixel = formatToBytesPerPixel(format); in gralloc_alloc_buffer() local 67 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w, 16); in gralloc_alloc_buffer() 69 bytes_per_line = ScreenRegionView::align(bytes_per_pixel * w); in gralloc_alloc_buffer() 83 stride_in_pixels = bytes_per_line / bytes_per_pixel; in gralloc_alloc_buffer()
|
D | gralloc_vsoc_priv.h | 305 int bytes_per_pixel = formatToBytesPerPixel(format); in formatToBytesPerFrame() local 316 return bytes_per_pixel * w * h; in formatToBytesPerFrame() 336 return bytes_per_pixel * w16 * h16 + in formatToBytesPerFrame()
|
D | framebuffer.cpp | 139 screen_view->line_length() / screen_view->bytes_per_pixel(); in fb_device_open()
|
/device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/ |
D | base_composer.cpp | 162 return cvd::AlignToPowerOf2(x_res() * bytes_per_pixel(), 4); in line_length() 164 int32_t FrameBuffer::bytes_per_pixel() { return 4; } in bytes_per_pixel() function in cvd::FrameBuffer
|
D | base_composer.h | 41 int32_t bytes_per_pixel();
|
D | vsoc_composer.cpp | 376 cvd::AlignToPowerOf2(y_res * frame_buffer_.bytes_per_pixel(), 4); in CompositeLayer() 381 x_res * frame_buffer_.bytes_per_pixel(), 4)); in CompositeLayer() 403 src_width * frame_buffer_.bytes_per_pixel(), 4); in CompositeLayer() 443 dst_buffer_spec.width * frame_buffer_.bytes_per_pixel(); in CompositeLayer()
|
/device/google/cuttlefish_common/common/vsoc/shm/ |
D | graphics.h | 56 static const uint32_t bytes_per_pixel = (FORMAT >> PixelFormatConst::SubformatSize) + 1; member
|
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/ |
D | vsoc_composer.cpp | 379 ScreenRegionView::align(y_res * screen_view->bytes_per_pixel(), 16); in CompositeLayer() 384 x_res * screen_view->bytes_per_pixel(), 16)); in CompositeLayer() 406 src_width * screen_view->bytes_per_pixel(), 16); in CompositeLayer() 446 dst_buffer_spec.width * screen_view->bytes_per_pixel(); in CompositeLayer()
|