Lines Matching refs:height

103 static void get_rgb_stride_and_size(int width, int height, int pixel_size, int *pixel_stride, int *…  in get_rgb_stride_and_size()  argument
116 *size = stride *height; in get_rgb_stride_and_size()
132 int h_aligned = GRALLOC_ALIGN(height, AFBC_NORMAL_HEIGHT_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()
145 h_aligned = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
155 h_aligned = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_ALIGN); in get_rgb_stride_and_size()
197 static bool get_afbc_yuv420_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv420_8bit_stride_and_size() argument
203 *internalHeight = height; 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()
233 height = GRALLOC_ALIGN(*internalHeight, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_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()
249 height = GRALLOC_ALIGN(*internalHeight, AFBC_NORMAL_HEIGHT_ALIGN); in get_afbc_yuv420_8bit_stride_and_size()
257 int nblocks = width / AFBC_PIXELS_PER_BLOCK * height / AFBC_PIXELS_PER_BLOCK; in get_afbc_yuv420_8bit_stride_and_size()
259 *size = (yuv420_afbc_luma_stride + yuv420_afbc_chroma_stride) * height + in get_afbc_yuv420_8bit_stride_and_size()
289 static bool get_yv12_stride_and_size(int width, int height, int *pixel_stride, int *byte_stride, si… in get_yv12_stride_and_size() argument
296 return get_afbc_yuv420_8bit_stride_and_size(width, height, pixel_stride, byte_stride, size, type, in get_yv12_stride_and_size()
302 height = GRALLOC_ALIGN(height, 2); in get_yv12_stride_and_size()
310 *size = height *(luma_stride + chroma_stride); in get_yv12_stride_and_size()
336 static bool get_yuv422_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byte_str… in get_yuv422_8bit_stride_and_size() argument
348 *size = local_byte_stride *height; in get_yuv422_8bit_stride_and_size()
375 static bool get_afbc_yuv422_8bit_stride_and_size(int width, int height, int *pixel_stride, int *byt… in get_afbc_yuv422_8bit_stride_and_size() argument
389 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_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()
406 height = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_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()
418 int nblocks = width / AFBC_PIXELS_PER_BLOCK * height / AFBC_PIXELS_PER_BLOCK; in get_afbc_yuv422_8bit_stride_and_size()
420 *size = yuv422_afbc_luma_stride *height * 2 + in get_afbc_yuv422_8bit_stride_and_size()
454 static bool get_yuv_pX10_stride_and_size(int width, int height, int vss, int *pixel_stride, int *by… in get_yuv_pX10_stride_and_size() argument
470 height = GRALLOC_ALIGN(height, 2); 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()
479 *size = luma_byte_stride *height + chroma_size; in get_yuv_pX10_stride_and_size()
510 static bool get_yuv_y210_stride_and_size(int width, int height, int *pixel_stride, int *byte_stride… in get_yuv_y210_stride_and_size() argument
523 *size = y210_byte_stride *height; in get_yuv_y210_stride_and_size()
557 static bool get_yuv_y0l2_stride_and_size(int width, int height, int *pixel_stride, int *byte_stride… in get_yuv_y0l2_stride_and_size() argument
563 height = GRALLOC_ALIGN(height, 2); in get_yuv_y0l2_stride_and_size()
570 *size = y0l2_byte_stride *height / 2; /* byte stride covers 2 vert pixels */ in get_yuv_y0l2_stride_and_size()
601 static bool get_yuv_y410_stride_and_size(int width, int height, int *pixel_stride, int *byte_stride… in get_yuv_y410_stride_and_size() argument
611 *size = y410_byte_stride *height; in get_yuv_y410_stride_and_size()
645 static bool get_yuv420_10bit_afbc_stride_and_size(int width, int height, int *pixel_stride, int *by… in get_yuv420_10bit_afbc_stride_and_size() argument
656 *internalHeight = height; 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()
680 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_TILED_HEADERS_WIDEBLK_HEIGHT_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()
696 height = GRALLOC_ALIGN(*internalHeight / 2, AFBC_NORMAL_HEIGHT_ALIGN); in get_yuv420_10bit_afbc_stride_and_size()
705 *size = yuv420_afbc_byte_stride *height + in get_yuv420_10bit_afbc_stride_and_size()
738 static bool get_yuv422_10bit_afbc_stride_and_size(int width, int height, int *pixel_stride, int *by… in get_yuv422_10bit_afbc_stride_and_size() argument
757 height = GRALLOC_ALIGN(height, AFBC_TILED_HEADERS_BASIC_HEIGHT_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()
774 height = GRALLOC_ALIGN(height, AFBC_WIDEBLK_HEIGHT_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()
787 int nblocks = width / AFBC_PIXELS_PER_BLOCK * height / AFBC_PIXELS_PER_BLOCK; in get_yuv422_10bit_afbc_stride_and_size()
789 *size = yuv422_afbc_byte_stride *height * 2 + in get_yuv422_10bit_afbc_stride_and_size()
901 bufDescriptor->internalHeight = bufDescriptor->height; in mali_gralloc_buffer_allocate()
905 …ptor->hal_format, bufDescriptor->format_type, usage, bufDescriptor->width * bufDescriptor->height); in mali_gralloc_buffer_allocate()
954 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 4, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
959 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 3, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
964 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 2, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
983 …if (!get_yv12_stride_and_size(bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_s… in mali_gralloc_buffer_allocate()
997 !get_yuv422_8bit_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1016 get_camera_formats_stride_and_size(bufDescriptor->width, bufDescriptor->height, base_format, in mali_gralloc_buffer_allocate()
1028 bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_stride, in mali_gralloc_buffer_allocate()
1036 if (!get_yuv_y0l2_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1050 !get_yuv_pX10_stride_and_size(bufDescriptor->width, bufDescriptor->height, 2, in mali_gralloc_buffer_allocate()
1063 !get_yuv_pX10_stride_and_size(bufDescriptor->width, bufDescriptor->height, 1, in mali_gralloc_buffer_allocate()
1077 if (!get_yuv422_10bit_afbc_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1086 if (!get_yuv_y210_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1100 …!get_yuv_y410_stride_and_size(bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_s… in mali_gralloc_buffer_allocate()
1115 if (!get_afbc_yuv422_8bit_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()