Home
last modified time | relevance | path

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

/hardware/google/gchips/gralloc3/src/
Dmali_gralloc_bufferallocation.cpp49 bool afbc_format_fallback(uint32_t * const format_idx, const uint64_t usage, bool force);
129 const uint32_t format_idx, in get_alloc_type() argument
134 alloc_type->is_multi_plane = formats[format_idx].npln > 1; in get_alloc_type()
144 if ((formats[format_idx].is_yuv == true) && (format_ext & MALI_GRALLOC_INTFMT_AFBC_YUV_TRANSFORM)) in get_alloc_type()
147 … format_name(formats[format_idx].id), formats[format_idx].id, format_name(format_ext), format_ext); in get_alloc_type()
165 if (formats[format_idx].npln > 1 && in get_alloc_type()
180 if (formats[format_idx].npln > 1) in get_alloc_type()
202 if (formats[format_idx].npln == 1 && in get_alloc_type()
711 static int set_dataspace(private_handle_t * const hnd, uint64_t usage, int32_t format_idx) in set_dataspace() argument
739 if (formats[format_idx].is_yuv) in set_dataspace()
[all …]
Dmali_gralloc_bufferaccess.cpp313 const int32_t format_idx = get_format_index(hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_lock() local
314 if (format_idx == -1) in mali_gralloc_lock()
320 if (formats[format_idx].is_yuv == true) in mali_gralloc_lock()
322 switch (formats[format_idx].id) in mali_gralloc_lock()
410 const int32_t format_idx = get_format_index(base_format); in mali_gralloc_lock_ycbcr() local
411 if (format_idx == -1) in mali_gralloc_lock_ycbcr()
417 if (formats[format_idx].is_yuv != true) in mali_gralloc_lock_ycbcr()
555 const int32_t format_idx = get_format_index(base_format); in mali_gralloc_get_num_flex_planes() local
556 if (format_idx == -1) in mali_gralloc_get_num_flex_planes()
562 if (formats[format_idx].flex != true) in mali_gralloc_get_num_flex_planes()
[all …]
Dmali_gralloc_bufferallocation.h98 const uint32_t format_idx,
Dformat_info.cpp328 int32_t format_idx; in get_format_index() local
329 for (format_idx = 0; format_idx < (int32_t)num_formats; format_idx++) in get_format_index()
331 if (formats[format_idx].id == base_format) in get_format_index()
336 if (format_idx >= (int32_t)num_formats) in get_format_index()
342 return format_idx; in get_format_index()
348 int32_t format_idx; in get_ip_format_index() local
349 for (format_idx = 0; format_idx < (int32_t)num_ip_formats; format_idx++) in get_ip_format_index()
351 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index()
356 if (format_idx >= (int32_t)num_ip_formats) in get_ip_format_index()
362 return format_idx; in get_ip_format_index()
Dmali_gralloc_formats.cpp990 const int format_idx = get_format_index(base_format); in get_afbc_format() local
991 if (format_idx != -1) in get_afbc_format()
993 if (formats[format_idx].yuv_transform == true) in get_afbc_format()
/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_bufferallocation.cpp66 bool afbc_format_fallback(uint32_t * const format_idx, const uint64_t usage, bool force);
145 const uint32_t format_idx, in get_alloc_type() argument
150 alloc_type->is_multi_plane = formats[format_idx].npln > 1; in get_alloc_type()
160 if ((formats[format_idx].is_yuv == true) && (format_ext & MALI_GRALLOC_INTFMT_AFBC_YUV_TRANSFORM)) in get_alloc_type()
163 … format_name(formats[format_idx].id), formats[format_idx].id, format_name(format_ext), format_ext); in get_alloc_type()
181 if (formats[format_idx].npln > 1 && in get_alloc_type()
196 if (formats[format_idx].npln > 1) in get_alloc_type()
218 if (formats[format_idx].npln == 1 && in get_alloc_type()
982 int32_t format_idx = get_format_index(bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_derive_format_and_size() local
983 if (format_idx == -1) in mali_gralloc_derive_format_and_size()
[all …]
Dformat_info.cpp310 int32_t format_idx; in get_format_index() local
311 for (format_idx = 0; format_idx < (int32_t)num_formats; format_idx++) in get_format_index()
313 if (formats[format_idx].id == base_format) in get_format_index()
318 if (format_idx >= (int32_t)num_formats) in get_format_index()
324 return format_idx; in get_format_index()
330 int32_t format_idx; in get_ip_format_index() local
331 for (format_idx = 0; format_idx < (int32_t)num_ip_formats; format_idx++) in get_ip_format_index()
333 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index()
338 if (format_idx >= (int32_t)num_ip_formats) in get_ip_format_index()
344 return format_idx; in get_ip_format_index()
[all …]
Dmali_gralloc_bufferaccess.cpp228 const int32_t format_idx = get_format_index(hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK); in mali_gralloc_lock() local
229 if (format_idx == -1) in mali_gralloc_lock()
Dmali_gralloc_bufferallocation.h112 const uint32_t format_idx,
Dmali_gralloc_formats.cpp812 const int format_idx = get_format_index(base_format); in get_afbc_format()
815 if (format_idx != -1) in get_afbc_format()
817 if (formats[format_idx].yuv_transform == true) in get_afbc_format()
/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.cpp473 …const int format_idx = get_format_index(gralloc_buffer->alloc_format & MALI_GRALLOC_INTFMT_FMT_MAS… in validateBufferSize() local
474 if (format_idx == -1) in validateBufferSize()
481 for (int i = 0; i < formats[format_idx].npln; i++) in validateBufferSize()