Searched refs:__ALIGN_UP (Results 1 – 6 of 6) sorted by relevance
/hardware/google/gchips/gralloc4/src/core/ |
D | mfc_macros_local.h | 25 #ifndef __ALIGN_UP 26 #define __ALIGN_UP(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) macro 34 #define SBWC_Y_VSTRIDE_BLOCKS(h) ((__ALIGN_UP((h), 16) + 3) / 4) 35 #define SBWC_CBCR_VSTRIDE_BLOCKS(h) (((__ALIGN_UP((h), 16) / 2) + 3) / 4) 37 #define SBWC_8B_Y_SIZE(w, h) ((SBWC_8B_STRIDE(w) * ((__ALIGN_UP((h), 16) + 3) / 4)) + 64) 38 #define SBWC_8B_Y_HEADER_SIZE(w, h) __ALIGN_UP(((SBWC_HEADER_STRIDE(w) * ((__ALIGN_UP((h), 16) + … 39 #define SBWC_8B_CBCR_SIZE(w, h) ((SBWC_8B_STRIDE(w) * (((__ALIGN_UP((h), 16) / 2) + 3) / 4)) + 6… 40 #define SBWC_8B_CBCR_HEADER_SIZE(w, h) ((SBWC_HEADER_STRIDE(w) * (((__ALIGN_UP((h), 16) / 2) + 3) … 42 #define SBWC_10B_Y_SIZE(w, h) ((SBWC_10B_STRIDE(w) * ((__ALIGN_UP((h), 16) + 3) / 4)) + 64) 43 #define SBWC_10B_Y_HEADER_SIZE(w, h) __ALIGN_UP((((__ALIGN_UP((w), 32) * __ALIGN_UP((h), 16) * 2) … [all …]
|
D | exynos_format_allocation.h | 64 plane[0].alloc_height = __ALIGN_UP(h, 16); in setup_sbwc_420_sp() 69 plane[1].alloc_height = __ALIGN_UP(h, 16) / 2; in setup_sbwc_420_sp() 91 plane[0].alloc_height = __ALIGN_UP(h, 16); in setup_sbwc_420_sp_10bit() 96 plane[1].alloc_height = __ALIGN_UP(h, 16) / 2; in setup_sbwc_420_sp_10bit() 117 plane[0].alloc_height = __ALIGN_UP(height, 8); in setup_sbwc_420_sp_lossy() 123 plane[1].alloc_height = __ALIGN_UP(height, 8) / 2; in setup_sbwc_420_sp_lossy() 145 plane[0].alloc_height = __ALIGN_UP(height, 8); in setup_sbwc_420_sp_10bit_lossy() 151 plane[1].alloc_height = __ALIGN_UP(height, 8) / 2; in setup_sbwc_420_sp_10bit_lossy()
|
/hardware/google/gchips/gralloc3/src/ |
D | local_mfc_macros.h | 23 #ifndef __ALIGN_UP 24 #define __ALIGN_UP(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) macro 32 #define SBWC_Y_VSTRIDE_BLOCKS(h) ((__ALIGN_UP((h), 16) + 3) / 4) 33 #define SBWC_CBCR_VSTRIDE_BLOCKS(h) (((__ALIGN_UP((h), 16) / 2) + 3) / 4) 35 #define SBWC_8B_Y_SIZE(w, h) ((SBWC_8B_STRIDE(w) * ((__ALIGN_UP((h), 16) + 3) / 4)) + 64) 36 #define SBWC_8B_Y_HEADER_SIZE(w, h) __ALIGN_UP(((SBWC_HEADER_STRIDE(w) * ((__ALIGN_UP((h), 16) + … 37 #define SBWC_8B_CBCR_SIZE(w, h) ((SBWC_8B_STRIDE(w) * (((__ALIGN_UP((h), 16) / 2) + 3) / 4)) + 6… 38 #define SBWC_8B_CBCR_HEADER_SIZE(w, h) ((SBWC_HEADER_STRIDE(w) * (((__ALIGN_UP((h), 16) / 2) + 3) … 40 #define SBWC_10B_Y_SIZE(w, h) ((SBWC_10B_STRIDE(w) * ((__ALIGN_UP((h), 16) + 3) / 4)) + 64) 41 #define SBWC_10B_Y_HEADER_SIZE(w, h) __ALIGN_UP((((__ALIGN_UP((w), 32) * __ALIGN_UP((h), 16) * 2) … [all …]
|
D | mali_gralloc_bufferallocation.cpp | 924 luma_vstride = __ALIGN_UP(h, 8); in prepare_descriptor_exynos_formats() 935 luma_vstride = __ALIGN_UP(h, 8); in prepare_descriptor_exynos_formats() 965 luma_vstride = __ALIGN_UP(h, 8); in prepare_descriptor_exynos_formats() 999 luma_vstride = __ALIGN_UP(h, 8); in prepare_descriptor_exynos_formats()
|
/hardware/google/graphics/common/libhwc2.1/libhwchelper/ |
D | ExynosHWCHelper.cpp | 652 return 2 * __ALIGN_UP(width, 64) * __ALIGN_UP(height, 8); in getExynosBufferYLength() 654 return __ALIGN_UP(width, 64) * __ALIGN_UP(height, 8); in getExynosBufferYLength() 700 return __ALIGN_UP(width, 64) * __ALIGN_UP(height, 8); in getExynosBufferCbCrLength() 702 return __ALIGN_UP(width, 64) * __ALIGN_UP(height, 8) / 2; in getExynosBufferCbCrLength()
|
D | ExynosHWCHelper.h | 43 #define P010M_Y_SIZE(w,h) (__ALIGN_UP((w), 16) * 2 * __ALIGN_UP((h), 16) + 256) 46 #define P010M_CBCR_SIZE(w,h) ((__ALIGN_UP((w), 16) * 2 * __ALIGN_UP((h), 16) / 2) + 256)
|