Lines Matching refs:GRALLOC_ALIGN
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()
163 stride = GRALLOC_ALIGN(stride, 64); in get_rgb_stride_and_size()
180 GRALLOC_ALIGN(nblocks * AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY, buffer_byte_alignment); in get_rgb_stride_and_size()
226 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
227 height = GRALLOC_ALIGN(*internalHeight, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
232 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
233 height = GRALLOC_ALIGN(*internalHeight, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
243 width = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
244 height = GRALLOC_ALIGN(*internalHeight, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
248 width = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
249 height = GRALLOC_ALIGN(*internalHeight, AFBC_NORMAL_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
253 …yuv420_afbc_chroma_stride = GRALLOC_ALIGN(yuv420_afbc_luma_stride / 2, 16); /* Horizontal downsamp… in get_afbc_yuv420_8bit_stride_and_size()
260 GRALLOC_ALIGN(nblocks * AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY, buffer_byte_alignment); in get_afbc_yuv420_8bit_stride_and_size()
302 height = GRALLOC_ALIGN(height, 2); in get_yv12_stride_and_size()
304 luma_stride = GRALLOC_ALIGN(width, stride_alignment); in get_yv12_stride_and_size()
308 int chroma_stride = GRALLOC_ALIGN(luma_stride / 2, stride_alignment); in get_yv12_stride_and_size()
343 local_pixel_stride = GRALLOC_ALIGN(width, YUV_MALI_PLANE_ALIGN); in get_yuv422_8bit_stride_and_size()
344 local_byte_stride = GRALLOC_ALIGN(width * 2, YUV_MALI_PLANE_ALIGN); /* 4 bytes per 2 pixels */ in get_yuv422_8bit_stride_and_size()
388 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
389 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
394 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
395 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
405 width = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
406 height = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
410 width = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
411 height = GRALLOC_ALIGN(height, AFBC_NORMAL_HEIGHT_ALIGN); in get_afbc_yuv422_8bit_stride_and_size()
421 GRALLOC_ALIGN(nblocks * AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY, buffer_byte_alignment); in get_afbc_yuv422_8bit_stride_and_size()
470 height = GRALLOC_ALIGN(height, 2); in get_yuv_pX10_stride_and_size()
473 luma_pixel_stride = GRALLOC_ALIGN(width, YUV_MALI_PLANE_ALIGN); in get_yuv_pX10_stride_and_size()
474 luma_byte_stride = GRALLOC_ALIGN(width * 2, YUV_MALI_PLANE_ALIGN); in get_yuv_pX10_stride_and_size()
478 int chroma_size = GRALLOC_ALIGN(width * 2, YUV_MALI_PLANE_ALIGN) * (height / vss); in get_yuv_pX10_stride_and_size()
517 y210_pixel_stride = GRALLOC_ALIGN(width, YUV_MALI_PLANE_ALIGN); in get_yuv_y210_stride_and_size()
519 y210_byte_stride = GRALLOC_ALIGN(width * 4, YUV_MALI_PLANE_ALIGN); in get_yuv_y210_stride_and_size()
563 height = GRALLOC_ALIGN(height, 2); in get_yuv_y0l2_stride_and_size()
565 y0l2_pixel_stride = GRALLOC_ALIGN(width, YUV_MALI_PLANE_ALIGN); in get_yuv_y0l2_stride_and_size()
566 …y0l2_byte_stride = GRALLOC_ALIGN(width * 4, YUV_MALI_PLANE_ALIGN); /* 2 horiz pixels per 8 byte cl… in get_yuv_y0l2_stride_and_size()
605 y410_pixel_stride = GRALLOC_ALIGN(width, YUV_MALI_PLANE_ALIGN); in get_yuv_y410_stride_and_size()
606 y410_byte_stride = GRALLOC_ALIGN(width * 4, YUV_MALI_PLANE_ALIGN); in get_yuv_y410_stride_and_size()
673 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
674 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
679 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
680 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
690 width = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
691 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
695 width = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
696 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_NORMAL_HEIGHT_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
699 yuv420_afbc_pixel_stride = GRALLOC_ALIGN(width, 16); in get_yuv420_10bit_afbc_stride_and_size()
700 …yuv420_afbc_byte_stride = GRALLOC_ALIGN(width * 4, 16); /* 64-bit packed and horizontally downsamp… in get_yuv420_10bit_afbc_stride_and_size()
706 GRALLOC_ALIGN(nblocks * AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY, buffer_byte_alignment); in get_yuv420_10bit_afbc_stride_and_size()
756 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_BASIC_WIDTH_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
757 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
762 width = GRALLOC_ALIGN(width, AFBC_TILED_HEADERS_WIDEBLK_WIDTH_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
763 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
773 width = GRALLOC_ALIGN(width, AFBC_WIDEBLK_WIDTH_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
774 height = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
778 width = GRALLOC_ALIGN(width, AFBC_NORMAL_WIDTH_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
779 height = GRALLOC_ALIGN(height, AFBC_NORMAL_HEIGHT_ALIGN); in get_yuv422_10bit_afbc_stride_and_size()
782 yuv422_afbc_pixel_stride = GRALLOC_ALIGN(width, 16); in get_yuv422_10bit_afbc_stride_and_size()
783 yuv422_afbc_byte_stride = GRALLOC_ALIGN(width * 2, 16); in get_yuv422_10bit_afbc_stride_and_size()
790 GRALLOC_ALIGN(nblocks * AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY, buffer_byte_alignment); in get_yuv422_10bit_afbc_stride_and_size()
829 stride = GRALLOC_ALIGN(stride, 16); /* Alignment mandated by Android */ in get_camera_formats_stride_and_size()