Home
last modified time | relevance | path

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

/device/linaro/hikey/gralloc960/
Dmali_gralloc_bufferallocation.cpp112 stride = GRALLOC_ALIGN(stride, 64); in get_rgb_stride_and_size()
132 int h_aligned = GRALLOC_ALIGN(height, AFBC_NORMAL_HEIGHT_ALIGN); in get_rgb_stride_and_size()
138 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_rgb_stride_and_size()
139 h_aligned = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_rgb_stride_and_size()
144 w_aligned = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size()
145 h_aligned = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
150 w_aligned = GRALLOC_ALIGN(width, 64); in get_rgb_stride_and_size()
154 w_aligned = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_rgb_stride_and_size()
155 h_aligned = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
159 w_aligned = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_rgb_stride_and_size()
[all …]
Dgralloc_helper.h42 #define GRALLOC_ALIGN(value, base) (((value) + ((base)-1)) & ~((base)-1)) macro
Dmali_gralloc_bufferaccess.cpp105 int adjusted_height = GRALLOC_ALIGN(hnd->height, 2); in mali_gralloc_lock_ycbcr()
138 c_stride = GRALLOC_ALIGN(hnd->byte_stride / 2, 16); in mali_gralloc_lock_ycbcr()
287 int adjusted_height = GRALLOC_ALIGN(hnd->height, 2); in mali_gralloc_lock_flex_async()
357 c_stride = GRALLOC_ALIGN(hnd->byte_stride / 2, 16); in mali_gralloc_lock_flex_async()
Dframebuffer_device.cpp462 const size_t alignedFramebufferSize = GRALLOC_ALIGN(m->finfo.line_length, 64) * m->info.yres; in fb_alloc_framebuffer_locked()
474 *byte_stride = GRALLOC_ALIGN(m->finfo.line_length, 64); in fb_alloc_framebuffer_locked()
514 *byte_stride = GRALLOC_ALIGN(m->finfo.line_length, 64); in fb_alloc_framebuffer_locked()
/device/linaro/hikey/gralloc/
Dalloc_device.cpp467 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc()
468 size = GRALLOC_ALIGN(h, 16) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc()
479 stride = GRALLOC_ALIGN(w, (h % 8 == 0) ? GRALLOC_ALIGN_BASE_16 : in alloc_device_alloc()
481 size = GRALLOC_ALIGN(h, 2) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc()
487 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc()
488 size = GRALLOC_ALIGN(h, 16) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc()
492 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc()
541 size_t bpr = GRALLOC_ALIGN(w * bpp, 64); in alloc_device_alloc()
604 hnd->byte_stride = GRALLOC_ALIGN(w*bpp,64); in alloc_device_alloc()
Dgralloc_module.cpp360 ystride = cstride = GRALLOC_ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
371 ystride = GRALLOC_ALIGN(hnd->width, (hnd->height % 8 == 0) ? GRALLOC_ALIGN_BASE_16 : in gralloc_lock_ycbcr()
373 cstride = GRALLOC_ALIGN(ystride / 2, 16); in gralloc_lock_ycbcr()
376 ycbcr->cr = (void *)((unsigned char *)hnd->base + ystride * GRALLOC_ALIGN(hnd->height, 2)); in gralloc_lock_ycbcr()
377 …ycbcr->cb = (void *)((unsigned char *)hnd->base + ystride * GRALLOC_ALIGN(hnd->height, 2) + cstrid… in gralloc_lock_ycbcr()
386 ystride = cstride = GRALLOC_ALIGN(hnd->width, 16); in gralloc_lock_ycbcr()
Dalloc_device.h34 #define GRALLOC_ALIGN( value, base ) (((value) + ((base) - 1)) & ~((base) - 1)) macro