/device/amlogic/yukawa/hal/gralloc/ |
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 | 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 | gralloc_helper.h | 42 #define GRALLOC_ALIGN(value, base) (((value) + ((base)-1)) & ~((base)-1)) macro
|
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/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 | 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 | gralloc_helper.h | 42 #define GRALLOC_ALIGN(value, base) (((value) + ((base)-1)) & ~((base)-1)) macro
|
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 | 502 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 503 size = GRALLOC_ALIGN(h, 16) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc() 514 stride = GRALLOC_ALIGN(w, (h % 8 == 0) ? GRALLOC_ALIGN_BASE_16 : in alloc_device_alloc() 516 size = GRALLOC_ALIGN(h, 2) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc() 522 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 523 size = GRALLOC_ALIGN(h, 16) * (stride + GRALLOC_ALIGN(stride / 2, 16)); in alloc_device_alloc() 527 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 576 size_t bpr = GRALLOC_ALIGN(w * bpp, 64); in alloc_device_alloc() 639 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
|
/device/linaro/dragonboard/gralloc/ |
D | gralloc_gbm.cpp | 486 #define GRALLOC_ALIGN(value, base) (((value) + ((base)-1)) & ~((base)-1)) macro 507 ystride = cstride = GRALLOC_ALIGN(hnd->width, 16); in gralloc_gbm_bo_lock_ycbcr() 517 cstride = GRALLOC_ALIGN(ystride / 2, 16); in gralloc_gbm_bo_lock_ycbcr()
|