Home
last modified time | relevance | path

Searched refs:gralloc_buffer (Results 1 – 3 of 3) sorted by relevance

/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.cpp445 private_handle_t *gralloc_buffer = (private_handle_t *)bufferHandle; in validateBufferSize() local
448 for (int i = 0; i < gralloc_buffer->fd_count; i++) in validateBufferSize()
450 if (gralloc_buffer->alloc_sizes[i] < grallocDescriptor.alloc_sizes[i]) in validateBufferSize()
453 i, gralloc_buffer->alloc_sizes[i], grallocDescriptor.alloc_sizes[i]); in validateBufferSize()
458 if (in_stride != 0 && (uint32_t)gralloc_buffer->stride != in_stride) in validateBufferSize()
461 in_stride, gralloc_buffer->stride); in validateBufferSize()
465 if (gralloc_buffer->alloc_format != grallocDescriptor.alloc_format) in validateBufferSize()
468 PRIx64 ")", format_name(gralloc_buffer->alloc_format), gralloc_buffer->alloc_format, in validateBufferSize()
473 …const int format_idx = get_format_index(gralloc_buffer->alloc_format & MALI_GRALLOC_INTFMT_FMT_MAS… in validateBufferSize()
483 if (gralloc_buffer->plane_info[i].byte_stride != grallocDescriptor.plane_info[i].byte_stride) in validateBufferSize()
[all …]
/hardware/google/gchips/gralloc3/src/
DGrallocMapper.cpp713 private_handle_t *gralloc_buffer = (private_handle_t *)bufferHandle; in validateBufferSize() local
716 if ((size_t)gralloc_buffer->size < grallocDescriptor.size) in validateBufferSize()
719 gralloc_buffer->size, grallocDescriptor.size); in validateBufferSize()
723 if ((uint32_t)gralloc_buffer->stride != in_stride) in validateBufferSize()
726 in_stride, gralloc_buffer->stride); in validateBufferSize()
730 if (gralloc_buffer->internal_format != grallocDescriptor.internal_format) in validateBufferSize()
733 PRIx64, gralloc_buffer->internal_format, grallocDescriptor.internal_format); in validateBufferSize()
737 if ((uint32_t)gralloc_buffer->width != grallocDescriptor.width) in validateBufferSize()
740 gralloc_buffer->width, grallocDescriptor.width); in validateBufferSize()
744 if ((uint32_t)gralloc_buffer->height != grallocDescriptor.height) in validateBufferSize()
[all …]
Dmali_gralloc_public_interface.cpp532 private_handle_t *gralloc_buffer = (private_handle_t *)buffer; in mali_gralloc1_validate_buffer_size() local
537 if ((size_t)gralloc_buffer->size < grallocDescriptor.size) in mali_gralloc1_validate_buffer_size()
540 gralloc_buffer->size, grallocDescriptor.size); in mali_gralloc1_validate_buffer_size()
544 if ((uint32_t)gralloc_buffer->stride != stride) in mali_gralloc1_validate_buffer_size()
547 stride, gralloc_buffer->stride); in mali_gralloc1_validate_buffer_size()