Searched refs:GRALLOC_ALIGN (Results 1 – 7 of 7) sorted by relevance
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_bufferallocation.cpp | 112 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 …]
|
D | gralloc_helper.h | 42 #define GRALLOC_ALIGN(value, base) (((value) + ((base)-1)) & ~((base)-1)) macro
|
D | mali_gralloc_bufferaccess.cpp | 105 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()
|
D | framebuffer_device.cpp | 462 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/ |
D | alloc_device.cpp | 467 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()
|
D | gralloc_module.cpp | 360 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()
|
D | alloc_device.h | 34 #define GRALLOC_ALIGN( value, base ) (((value) + ((base) - 1)) & ~((base) - 1)) macro
|