Home
last modified time | relevance | path

Searched refs:format_idx (Results 1 – 7 of 7) sorted by relevance

/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_bufferallocation.cpp74 bool afbc_format_fallback(uint32_t * const format_idx, const uint64_t usage, bool force);
153 const uint32_t format_idx, in get_alloc_type() argument
158 alloc_type->is_multi_plane = formats[format_idx].npln > 1; in get_alloc_type()
168 if ((formats[format_idx].is_yuv == true) && (format_ext & MALI_GRALLOC_INTFMT_AFBC_YUV_TRANSFORM)) in get_alloc_type()
171 … format_name(formats[format_idx].id), formats[format_idx].id, format_name(format_ext), format_ext); in get_alloc_type()
189 if (formats[format_idx].npln > 1 && in get_alloc_type()
204 if (formats[format_idx].npln > 1) in get_alloc_type()
226 if (formats[format_idx].npln == 1 && in get_alloc_type()
1080 int32_t format_idx = get_format_index(base_format); in mali_gralloc_derive_format_and_size() local
1081 if (format_idx == -1) in mali_gralloc_derive_format_and_size()
[all …]
Dmali_gralloc_bufferaccess.cpp208 const int32_t format_idx = get_format_index(hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_lock() local
209 if (format_idx == -1) in mali_gralloc_lock()
Dformat_info.cpp314 int32_t format_idx; in get_format_index() local
315 for (format_idx = 0; format_idx < (int32_t)num_formats; format_idx++) in get_format_index()
317 if (formats[format_idx].id == base_format) in get_format_index()
322 if (format_idx >= (int32_t)num_formats) in get_format_index()
328 return format_idx; in get_format_index()
334 int32_t format_idx; in get_ip_format_index() local
335 for (format_idx = 0; format_idx < (int32_t)num_ip_formats; format_idx++) in get_ip_format_index()
337 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index()
342 if (format_idx >= (int32_t)num_ip_formats) in get_ip_format_index()
348 return format_idx; in get_ip_format_index()
[all …]
Dmali_gralloc_bufferallocation.h110 const uint32_t format_idx,
Dmali_gralloc_formats.cpp823 const int format_idx = get_format_index(base_format); in get_afbc_format()
826 if (format_idx != -1) in get_afbc_format()
828 if (formats[format_idx].yuv_transform == true) in get_afbc_format()
/hardware/google/gchips/gralloc4/src/allocator/
Dmali_gralloc_ion.cpp458 int32_t format_idx = get_format_index(base_format); in mali_gralloc_ion_allocate() local
459 if (format_idx == -1) in mali_gralloc_ion_allocate()
470 formats[format_idx].bpp_afbc[i], in mali_gralloc_ion_allocate()
/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.cpp405 …const int format_idx = get_format_index(gralloc_buffer->alloc_format & MALI_GRALLOC_INTFMT_FMT_MAS… in validateBufferSize() local
406 if (format_idx == -1) in validateBufferSize()
413 for (int i = 0; i < formats[format_idx].npln; i++) in validateBufferSize()