Home
last modified time | relevance | path

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

/hardware/google/gchips/gralloc4/src/core/
Dexynos_format_allocation.h23 #define S2B_PLANE_SIZE(w, h) (GRALLOC_ALIGN((w) / 4, 16) * (GRALLOC_ALIGN(h, 16)))
60 plane[0].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp()
65 plane[1].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp()
87 plane[0].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp_10bit()
92 plane[1].alloc_width = GRALLOC_ALIGN(w, 32); in setup_sbwc_420_sp_10bit()
113 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy()
119 plane[1].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy()
141 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_10bit_lossy()
147 plane[1].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_10bit_lossy()
167 height = GRALLOC_ALIGN(height, 2); in setup_420_sp()
[all …]
Dmali_gralloc_bufferallocation.cpp98 *size = GRALLOC_ALIGN(*size, buffer_byte_alignment); in afbc_buffer_align()
292 const size_t sb_bytes = is_tiled? 0 : GRALLOC_ALIGN((bpp * AFBC_PIXELS_PER_BLOCK) / 8, 128); in init_afbc()
330 *width = GRALLOC_ALIGN(*width, format.align_w); in get_pixel_w_h()
331 *height = GRALLOC_ALIGN(*height, format.align_h); in get_pixel_w_h()
396 …*width = GRALLOC_ALIGN(*width, std::max({1u, pixel_align_w, static_cast<uint32_t>(format.tile_size… in get_pixel_w_h()
397 …*height = GRALLOC_ALIGN(*height, std::max({1u, pixel_align_h, static_cast<uint32_t>(format.tile_si… in get_pixel_w_h()
458 *byte_stride = GRALLOC_ALIGN(luma_stride, GRALLOC_ALIGN(stride_align, 16)); in update_yv12_stride()
460 *byte_stride = GRALLOC_ALIGN(luma_stride / 2, 16); in update_yv12_stride()
557 …plane_info[plane].byte_stride = GRALLOC_ALIGN(plane_info[plane].byte_stride * format.tile_size, st… in align_plane_stride()
728 const size_t sb_bytes = GRALLOC_ALIGN((format.bpp_afbc[plane] * sb.width * sb.height) / 8, 128); in calc_allocation_size()
[all …]
Dmali_gralloc_formats.cpp441 *width = GRALLOC_ALIGN(*width, 16); in mali_gralloc_adjust_dimensions()
442 *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