Lines Matching refs:bufDescriptor

640                             const buffer_descriptor_t * const bufDescriptor)  in validate_format()  argument
677 bufDescriptor->height != 1) in validate_format()
890 static int prepare_descriptor_exynos_formats(buffer_descriptor_t *bufDescriptor) in prepare_descriptor_exynos_formats() argument
897 int w = bufDescriptor->width; in prepare_descriptor_exynos_formats()
898 int h = bufDescriptor->height; in prepare_descriptor_exynos_formats()
899 uint64_t usage = bufDescriptor->producer_usage | bufDescriptor->consumer_usage; in prepare_descriptor_exynos_formats()
910 bufDescriptor->producer_usage |= GRALLOC1_CONSUMER_USAGE_VIDEO_PRIVATE_DATA; in prepare_descriptor_exynos_formats()
911 bufDescriptor->consumer_usage |= GRALLOC1_CONSUMER_USAGE_VIDEO_PRIVATE_DATA; in prepare_descriptor_exynos_formats()
915 switch ((uint32_t)bufDescriptor->internal_format) in prepare_descriptor_exynos_formats()
946 switch ((uint32_t)bufDescriptor->internal_format) in prepare_descriptor_exynos_formats()
977 switch ((uint32_t)bufDescriptor->internal_format) in prepare_descriptor_exynos_formats()
1006 switch ((uint32_t)bufDescriptor->internal_format) in prepare_descriptor_exynos_formats()
1135 AERR("invalid yuv format %x\n", (uint32_t)bufDescriptor->internal_format); in prepare_descriptor_exynos_formats()
1139 switch ((uint32_t)bufDescriptor->internal_format) in prepare_descriptor_exynos_formats()
1154 bufDescriptor->alloc_video_private_data = 1; in prepare_descriptor_exynos_formats()
1158 bufDescriptor->alloc_video_private_data = 1; in prepare_descriptor_exynos_formats()
1176 bufDescriptor->sizes[i] = size; in prepare_descriptor_exynos_formats()
1178 bufDescriptor->plane_info[i].alloc_width = stride; in prepare_descriptor_exynos_formats()
1179 bufDescriptor->plane_info[i].alloc_height = alloc_height; in prepare_descriptor_exynos_formats()
1180 bufDescriptor->plane_info[i].byte_stride = byte_stride; in prepare_descriptor_exynos_formats()
1181 bufDescriptor->plane_info[i].offset = 0; in prepare_descriptor_exynos_formats()
1184 bufDescriptor->fd_count = fd_count; in prepare_descriptor_exynos_formats()
1191 buffer_descriptor_t * const bufDescriptor) in mali_gralloc_derive_format_and_size() argument
1197 int alloc_width = bufDescriptor->width; in mali_gralloc_derive_format_and_size()
1198 int alloc_height = bufDescriptor->height; in mali_gralloc_derive_format_and_size()
1199 uint64_t usage = bufDescriptor->producer_usage | bufDescriptor->consumer_usage; in mali_gralloc_derive_format_and_size()
1205 bufDescriptor->alloc_format = mali_gralloc_select_format(bufDescriptor->hal_format, in mali_gralloc_derive_format_and_size()
1206 bufDescriptor->format_type, in mali_gralloc_derive_format_and_size()
1208bufDescriptor->width * bufDescriptor->height, in mali_gralloc_derive_format_and_size()
1209 &bufDescriptor->internal_format); in mali_gralloc_derive_format_and_size()
1210 if (bufDescriptor->alloc_format == MALI_GRALLOC_FORMAT_INTERNAL_UNDEFINED) in mali_gralloc_derive_format_and_size()
1213 bufDescriptor->hal_format, usage); in mali_gralloc_derive_format_and_size()
1217 (bufDescriptor->alloc_format & 0x0000000100000000ULL) && in mali_gralloc_derive_format_and_size()
1218 (bufDescriptor->alloc_format & 0x0000000e00000000ULL)) in mali_gralloc_derive_format_and_size()
1234 int32_t format_idx = get_format_index(bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_derive_format_and_size()
1240 format_name(bufDescriptor->alloc_format), bufDescriptor->alloc_format, format_idx); in mali_gralloc_derive_format_and_size()
1245 if (!get_alloc_type(bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_EXT_MASK, in mali_gralloc_derive_format_and_size()
1251 if (!validate_format(&formats[format_idx], alloc_type, bufDescriptor)) in mali_gralloc_derive_format_and_size()
1256 if (is_exynos_format((uint32_t)bufDescriptor->alloc_format)) in mali_gralloc_derive_format_and_size()
1258 prepare_descriptor_exynos_formats(bufDescriptor); in mali_gralloc_derive_format_and_size()
1268 mali_gralloc_adjust_dimensions(bufDescriptor->alloc_format, in mali_gralloc_derive_format_and_size()
1280 &bufDescriptor->size, in mali_gralloc_derive_format_and_size()
1281 bufDescriptor->plane_info); in mali_gralloc_derive_format_and_size()
1285 bufDescriptor->plane_count = formats[format_idx].npln; in mali_gralloc_derive_format_and_size()
1287 switch ((uint32_t)bufDescriptor->alloc_format) in mali_gralloc_derive_format_and_size()
1293 if (bufDescriptor->width % 16 != 0) { in mali_gralloc_derive_format_and_size()
1298 bufDescriptor->pixel_stride = bufDescriptor->width * 5 / 4; in mali_gralloc_derive_format_and_size()
1301 bufDescriptor->pixel_stride = bufDescriptor->plane_info[0].alloc_width; in mali_gralloc_derive_format_and_size()
1312 if (bufDescriptor->layer_count > 1) in mali_gralloc_derive_format_and_size()
1314 if (bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_derive_format_and_size()
1316 if (bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in mali_gralloc_derive_format_and_size()
1318 bufDescriptor->size = GRALLOC_ALIGN(bufDescriptor->size, 4096); in mali_gralloc_derive_format_and_size()
1322 bufDescriptor->size = GRALLOC_ALIGN(bufDescriptor->size, 128); in mali_gralloc_derive_format_and_size()
1326 bufDescriptor->size *= bufDescriptor->layer_count; in mali_gralloc_derive_format_and_size()
1330 bufDescriptor->size += EXT_SIZE; in mali_gralloc_derive_format_and_size()
1333 if (bufDescriptor->width % MSCL_ALIGN) in mali_gralloc_derive_format_and_size()
1335 bufDescriptor->size += MSCL_EXT_SIZE; in mali_gralloc_derive_format_and_size()
1339 …ALOGV("size after padding = %zu %zu %zu", bufDescriptor->sizes[0], bufDescriptor->sizes[1], bufD… in mali_gralloc_derive_format_and_size()
1354 buffer_descriptor_t * const bufDescriptor = (buffer_descriptor_t *)(descriptors[i]); in mali_gralloc_buffer_allocate() local
1356 err = mali_gralloc_derive_format_and_size(m, bufDescriptor); in mali_gralloc_buffer_allocate()
1377 buffer_descriptor_t * const bufDescriptor = (buffer_descriptor_t *)descriptors[i]; in mali_gralloc_buffer_allocate() local
1379 uint64_t usage = bufDescriptor->consumer_usage | bufDescriptor->producer_usage; in mali_gralloc_buffer_allocate()
1395 …const int32_t format_idx = get_format_index(bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_… in mali_gralloc_buffer_allocate()