Home
last modified time | relevance | path

Searched refs:alloc_format (Results 1 – 14 of 14) sorted by relevance

/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_formats.cpp409 void mali_gralloc_adjust_dimensions(const uint64_t alloc_format, in mali_gralloc_adjust_dimensions() argument
423 (alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC)) in mali_gralloc_adjust_dimensions()
425 const int32_t idx = get_format_index(alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_adjust_dimensions()
431 *height += (alloc_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) ? 16 : 32; in mali_gralloc_adjust_dimensions()
439 if (alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in mali_gralloc_adjust_dimensions()
448 __FUNCTION__, format_name(alloc_format), alloc_format, describe_usage(usage).c_str(), in mali_gralloc_adjust_dimensions()
678 static uint64_t validate_afbc_format(uint64_t alloc_format, in validate_afbc_format() argument
682 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in validate_afbc_format()
689 if (alloc_format & MALI_GRALLOC_INTFMT_AFBC_DOUBLE_BODY) in validate_afbc_format()
694 alloc_format &= ~MALI_GRALLOC_INTFMT_AFBC_WIDEBLK; in validate_afbc_format()
[all …]
Dmali_gralloc_bufferaccess.cpp150 if ((hnd->alloc_format & MALI_GRALLOC_INTFMT_EXT_MASK) != 0) in validate_lock_input_parameters()
153 "Internal Format:0x%" PRIx64, hnd->alloc_format); in validate_lock_input_parameters()
208 const int32_t format_idx = get_format_index(hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_lock()
212 format_name(hnd->alloc_format), hnd->alloc_format, hnd); in mali_gralloc_lock()
Dmali_gralloc_bufferallocation.cpp247 void init_afbc(uint8_t *buf, const uint64_t alloc_format, in init_afbc() argument
252 const bool is_tiled = ((alloc_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in init_afbc()
276 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc()
852 int format = MALI_GRALLOC_INTFMT_FMT_MASK & bufDescriptor->alloc_format; in prepare_descriptor_exynos_formats()
965 … MALI_GRALLOC_LOGE("invalid yuv format (%s %" PRIx64 ")", format_name(bufDescriptor->alloc_format), in prepare_descriptor_exynos_formats()
966 bufDescriptor->alloc_format); in prepare_descriptor_exynos_formats()
977 format_name(bufDescriptor->alloc_format), in prepare_descriptor_exynos_formats()
978 bufDescriptor->alloc_format); in prepare_descriptor_exynos_formats()
998 format_name(bufDescriptor->alloc_format), in prepare_descriptor_exynos_formats()
999 bufDescriptor->alloc_format, in prepare_descriptor_exynos_formats()
[all …]
Dmali_gralloc_bufferdescriptor.h55 uint64_t alloc_format; member
71 alloc_format(0), in buffer_descriptor_t()
105 pixel_stride, alloc_format, fd_count, in dump()
/hardware/google/gchips/gralloc4/src/
Dmali_gralloc_buffer4.h229 uint64_t alloc_format DEFAULT_INITIALIZER(0);
279 alloc_format = _alloc_format; in private_handle_t()
412 req_format, alloc_format, in dump()
418 alloc_format, in dump()
426 return (int)(alloc_format & 0x00000000ffffffffULL); in get_alloc_format()
Dmali_gralloc_buffer.h229 uint64_t alloc_format DEFAULT_INITIALIZER(0);
279 alloc_format = _alloc_format; in private_handle_t()
412 req_format, alloc_format, in dump()
418 alloc_format, in dump()
426 return (int)(alloc_format & 0x00000000ffffffffULL); in get_alloc_format()
/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.cpp397 if (gralloc_buffer->alloc_format != grallocDescriptor.alloc_format) in validateBufferSize()
400 PRIx64 ")", format_name(gralloc_buffer->alloc_format), gralloc_buffer->alloc_format, in validateBufferSize()
401 format_name(grallocDescriptor.alloc_format), grallocDescriptor.alloc_format); in validateBufferSize()
405 …const int format_idx = get_format_index(gralloc_buffer->alloc_format & MALI_GRALLOC_INTFMT_FMT_MAS… in validateBufferSize()
DMapperMetadata.cpp293 uint32_t base_format = handle->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in get_plane_layouts()
319 format_name(base_format), handle->alloc_format); in get_plane_layouts()
358 if (handle->alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in get_plane_layouts()
464 if (handle->alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in get_metadata()
480 int format_index = get_format_index(handle->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in get_metadata()
765 descriptor.hal_format, descriptor.alloc_format, in getFromBufferDescriptorInfo()
822 if (partial_handle.alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in getFromBufferDescriptorInfo()
838 int format_index = get_format_index(partial_handle.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in getFromBufferDescriptorInfo()
865 get_format_dataspace(partial_handle.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK, in getFromBufferDescriptorInfo()
DAllocator.cpp144 const uint32_t base_format = bufferDescriptor.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in allocate()
/hardware/google/gchips/gralloc4/interfaces/libs/drmutils/src/
Ddrmutils.cpp98 const uint64_t unmasked_format = hnd->alloc_format; in drm_fourcc_from_handle()
119 const uint64_t internal_format = hnd->alloc_format; in drm_modifier_from_handle()
/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/
Dvendor_graphicbuffer_meta.cpp141 if (gralloc_hnd->alloc_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in is_afbc()
168 return static_cast<uint32_t>(gralloc_hnd->alloc_format); in get_format()
178 return static_cast<uint64_t>(gralloc_hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in get_internal_format()
361 internal_format = gralloc_hnd->alloc_format; in init()
/hardware/google/gchips/libvendorgraphicbuffer/gralloc5/
Dvendor_graphicbuffer_meta.cpp179 if (gralloc_hnd->alloc_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) { in is_afbc()
205 return static_cast<uint32_t>(gralloc_hnd->alloc_format); in get_format()
214 return static_cast<uint64_t>(gralloc_hnd->alloc_format & in get_internal_format()
371 internal_format = gralloc_hnd->alloc_format; in init()
/hardware/google/gchips/gralloc4/src/allocator/
Dmali_gralloc_ion.cpp383 bufDescriptor->hal_format, bufDescriptor->alloc_format, in mali_gralloc_ion_allocate()
431 if ((bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_ion_allocate()
457 const uint32_t base_format = bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_ion_allocate()
468 bufDescriptor->alloc_format, in mali_gralloc_ion_allocate()
/hardware/google/gchips/gralloc4/src/stable-c/
DGrallocMapper.cpp126 if (hnd->alloc_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in getStandardMetadataHelper()
135 int format_index = get_format_index(hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in getStandardMetadataHelper()