Lines Matching refs:bufDescriptor
895 buffer_descriptor_t *bufDescriptor = (buffer_descriptor_t *)(descriptors[i]); in mali_gralloc_buffer_allocate() local
900 bufDescriptor->internalWidth = bufDescriptor->width; in mali_gralloc_buffer_allocate()
901 bufDescriptor->internalHeight = bufDescriptor->height; in mali_gralloc_buffer_allocate()
902 usage = bufDescriptor->producer_usage | bufDescriptor->consumer_usage; in mali_gralloc_buffer_allocate()
904 bufDescriptor->internal_format = mali_gralloc_select_format( in mali_gralloc_buffer_allocate()
905 …bufDescriptor->hal_format, bufDescriptor->format_type, usage, bufDescriptor->width * bufDescriptor… in mali_gralloc_buffer_allocate()
907 if (bufDescriptor->internal_format == 0) in mali_gralloc_buffer_allocate()
910 bufDescriptor->hal_format, usage); in mali_gralloc_buffer_allocate()
915 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_buffer_allocate()
917 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in mali_gralloc_buffer_allocate()
919 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate()
923 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in mali_gralloc_buffer_allocate()
927 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_SPLITBLK) in mali_gralloc_buffer_allocate()
937 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate()
947 uint64_t base_format = bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_buffer_allocate()
954 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 4, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
955 &bufDescriptor->byte_stride, &bufDescriptor->size, alloc_type); in mali_gralloc_buffer_allocate()
959 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 3, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
960 &bufDescriptor->byte_stride, &bufDescriptor->size, alloc_type); in mali_gralloc_buffer_allocate()
964 …get_rgb_stride_and_size(bufDescriptor->width, bufDescriptor->height, 2, &bufDescriptor->pixel_stri… in mali_gralloc_buffer_allocate()
965 &bufDescriptor->byte_stride, &bufDescriptor->size, alloc_type); in mali_gralloc_buffer_allocate()
983 …if (!get_yv12_stride_and_size(bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_s… in mali_gralloc_buffer_allocate()
984 &bufDescriptor->byte_stride, &bufDescriptor->size, alloc_type, in mali_gralloc_buffer_allocate()
985 &bufDescriptor->internalHeight, yv12_align)) in mali_gralloc_buffer_allocate()
997 !get_yuv422_8bit_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
998 &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
999 &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1016 get_camera_formats_stride_and_size(bufDescriptor->width, bufDescriptor->height, base_format, in mali_gralloc_buffer_allocate()
1017 &bufDescriptor->pixel_stride, &bufDescriptor->size); in mali_gralloc_buffer_allocate()
1019 bufDescriptor->byte_stride = bufDescriptor->pixel_stride; in mali_gralloc_buffer_allocate()
1028 bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_stride, in mali_gralloc_buffer_allocate()
1029 … &bufDescriptor->byte_stride, &bufDescriptor->size, alloc_type, &bufDescriptor->internalHeight)) in mali_gralloc_buffer_allocate()
1036 if (!get_yuv_y0l2_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1037 &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1038 &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1050 !get_yuv_pX10_stride_and_size(bufDescriptor->width, bufDescriptor->height, 2, in mali_gralloc_buffer_allocate()
1051 &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1052 &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1063 !get_yuv_pX10_stride_and_size(bufDescriptor->width, bufDescriptor->height, 1, in mali_gralloc_buffer_allocate()
1064 &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1065 &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1077 if (!get_yuv422_10bit_afbc_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1078 … &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1079 &bufDescriptor->size, alloc_type)) in mali_gralloc_buffer_allocate()
1086 if (!get_yuv_y210_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1087 &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1088 &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1100 …!get_yuv_y410_stride_and_size(bufDescriptor->width, bufDescriptor->height, &bufDescriptor->pixel_s… in mali_gralloc_buffer_allocate()
1101 &bufDescriptor->byte_stride, &bufDescriptor->size)) in mali_gralloc_buffer_allocate()
1115 if (!get_afbc_yuv422_8bit_stride_and_size(bufDescriptor->width, bufDescriptor->height, in mali_gralloc_buffer_allocate()
1116 … &bufDescriptor->pixel_stride, &bufDescriptor->byte_stride, in mali_gralloc_buffer_allocate()
1117 &bufDescriptor->size, alloc_type)) in mali_gralloc_buffer_allocate()
1150 buffer_descriptor_t *bufDescriptor = (buffer_descriptor_t *)descriptors[i]; in mali_gralloc_buffer_allocate() local
1153 usage = bufDescriptor->consumer_usage | bufDescriptor->producer_usage; in mali_gralloc_buffer_allocate()
1186 …if ((bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK) == MALI_GRALLOC_FORMAT_INTERNA… in mali_gralloc_buffer_allocate()