Home
last modified time | relevance | path

Searched refs:GRALLOC_ALIGN (Results 1 – 9 of 9) sorted by relevance

/hardware/google/gchips/gralloc3/src/
Dgralloc_helper.h51 #define GRALLOC_ALIGN(value, base) ((((value) + (base) -1) / (base)) * (base)) macro
71 #define NV12N_S8B_CHROMA_SIZE(w, h, ext_size) (GRALLOC_ALIGN(((w) * (h)) + ext_size…
72 #define NV12N_S2B_SIZE(w, h) ((GRALLOC_ALIGN((w) / 4, 16) * (h)) +…
76 …V12M_S2B_LUMA_SIZE(w, h, ext_size) ((GRALLOC_ALIGN((w) / 4, 16) * (GRALLOC_ALIGN
77 …V12M_S2B_CHROMA_SIZE(w, h, ext_size) ((GRALLOC_ALIGN((w) / 4, 16) * (GRALLOC_ALIGN
79 #define NV12M_S2B_LUMA_SIZE(w, h, ext_size) ((GRALLOC_ALIGN((w) / 4, 16) * (h)) +…
80 #define NV12M_S2B_CHROMA_SIZE(w, h, ext_size) ((GRALLOC_ALIGN((w) / 4, 16) * (h / 2…
Dmali_gralloc_bufferallocation.cpp73 *size = GRALLOC_ALIGN(*size, buffer_byte_alignment); in afbc_buffer_align()
312 *width = GRALLOC_ALIGN(*width, format.align_w); in get_pixel_w_h()
313 *height = GRALLOC_ALIGN(*height, format.align_h); in get_pixel_w_h()
376 *width = GRALLOC_ALIGN(*width, max(1, pixel_align_w, format.tile_size, afbc_tile.width)); in get_pixel_w_h()
377 *height = GRALLOC_ALIGN(*height, max(1, pixel_align_h, format.tile_size, afbc_tile.height)); in get_pixel_w_h()
440 *byte_stride = GRALLOC_ALIGN(luma_stride, 2 * stride_align); in update_yv12_stride()
450 assert(*byte_stride == GRALLOC_ALIGN(*byte_stride, stride_align)); in update_yv12_stride()
532 plane_info[plane].byte_stride = GRALLOC_ALIGN(plane_info[plane].byte_stride, stride_align); in calc_allocation_size()
577 const int sb_bytes = GRALLOC_ALIGN((format.bpp_afbc[plane] * sb.width * sb.height) / 8, 128); in calc_allocation_size()
903 stride = GRALLOC_ALIGN(w, 16); in prepare_descriptor_exynos_formats()
[all …]
Dframebuffer_device.cpp483 const size_t alignedFramebufferSize = GRALLOC_ALIGN(m->finfo.line_length, 64) * m->info.yres; in fb_alloc_framebuffer_locked()
496 *byte_stride = GRALLOC_ALIGN(m->finfo.line_length, 64); in fb_alloc_framebuffer_locked()
539 *byte_stride = GRALLOC_ALIGN(m->finfo.line_length, 64); in fb_alloc_framebuffer_locked()
Dmali_gralloc_bufferaccess.cpp861 ycbcr.cstride = GRALLOC_ALIGN(ycbcr.ystride/2, 16); in get_flexlayout_exynos_formats_only()
884 ycbcr.cstride = GRALLOC_ALIGN(ycbcr.ystride/2, 16); in get_flexlayout_exynos_formats_only()
892 ycbcr.cstride = GRALLOC_ALIGN(ycbcr.ystride/2, 16); in get_flexlayout_exynos_formats_only()
Dmali_gralloc_formats.cpp605 *width = GRALLOC_ALIGN(*width, 16); in mali_gralloc_adjust_dimensions()
606 *height = GRALLOC_ALIGN(*height, 16); in mali_gralloc_adjust_dimensions()
/hardware/google/gchips/gralloc4/src/core/
Dexynos_format_allocation.h26 #define S2B_PLANE_SIZE(w, h) (GRALLOC_ALIGN((w) / 4, 16) * (GRALLOC_ALIGN(h, 16)))
63 plane[0].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp()
68 plane[1].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp()
90 plane[0].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp_10bit()
95 plane[1].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp_10bit()
116 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy()
122 plane[1].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy()
144 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_10bit_lossy()
150 plane[1].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_10bit_lossy()
170 height = GRALLOC_ALIGN(height, 2); in setup_420_sp()
[all …]
Dmali_gralloc_bufferallocation.cpp90 *size = GRALLOC_ALIGN(*size, buffer_byte_alignment); in afbc_buffer_align()
324 *width = GRALLOC_ALIGN(*width, format.align_w); in get_pixel_w_h()
325 *height = GRALLOC_ALIGN(*height, format.align_h); in get_pixel_w_h()
390 *width = GRALLOC_ALIGN(*width, max(1, pixel_align_w, format.tile_size)); in get_pixel_w_h()
391 *height = GRALLOC_ALIGN(*height, max(1, pixel_align_h, format.tile_size)); in get_pixel_w_h()
449 *byte_stride = GRALLOC_ALIGN(luma_stride, GRALLOC_ALIGN(stride_align, 32)); in update_yv12_stride()
459 assert(*byte_stride == GRALLOC_ALIGN(*byte_stride, GRALLOC_ALIGN(stride_align / 2, 16))); in update_yv12_stride()
489 …plane_info[plane].byte_stride = GRALLOC_ALIGN(plane_info[plane].byte_stride * format.tile_size, st… in align_plane_stride()
635 const int sb_bytes = GRALLOC_ALIGN((format.bpp_afbc[plane] * sb.width * sb.height) / 8, 128); in calc_allocation_size()
821 h = GRALLOC_ALIGN(h, 2); in prepare_descriptor_exynos_formats()
[all …]
Dmali_gralloc_formats.cpp430 *width = GRALLOC_ALIGN(*width, 16); in mali_gralloc_adjust_dimensions()
431 *height = GRALLOC_ALIGN(*height, 16); in mali_gralloc_adjust_dimensions()
/hardware/google/gchips/gralloc4/src/
Dgralloc_helper.h28 #define GRALLOC_ALIGN(value, base) ((((value) + (base) -1) / (base)) * (base)) macro