Home
last modified time | relevance | path

Searched refs:bytes_per_pixel (Results 1 – 10 of 10) sorted by relevance

/device/google/cuttlefish_common/common/vsoc/lib/
Dscreen_region_view.h53 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/
Dgralloc.cpp83 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/
Dgralloc.cpp59 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()
Dgralloc_vsoc_priv.h305 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()
Dframebuffer.cpp139 screen_view->line_length() / screen_view->bytes_per_pixel(); in fb_device_open()
/device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/
Dbase_composer.cpp162 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
Dbase_composer.h41 int32_t bytes_per_pixel();
Dvsoc_composer.cpp376 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/
Dgraphics.h56 static const uint32_t bytes_per_pixel = (FORMAT >> PixelFormatConst::SubformatSize) + 1; member
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
Dvsoc_composer.cpp379 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()