Home
last modified time | relevance | path

Searched refs:base_format (Results 1 – 13 of 13) sorted by relevance

/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_formats.cpp77 uint32_t base_format; member
880 is_subsampled_yuv(base_format)) in validate_afbc_format()
976 uint64_t alloc_format = base_format; in get_afbc_format()
1164 base_format); in get_supported_format()
1205 fmt_supported->base_format = base_format; in get_supported_format()
1377 fmt.base_format = formats[i].id; in get_best_format()
1379 format_name(fmt.base_format), fmt.base_format); in get_best_format()
1409 format_name(fmt.base_format), fmt.base_format, fmt.format_ext, fmt.f_flags); in get_best_format()
1499 base_format = formats[fmt_idx].id; in get_base_format_for_modifiers()
1505 base_format = formats[fmt_idx].id; in get_base_format_for_modifiers()
[all …]
H A Dmali_gralloc_formats.h214 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_format_unwrap() local
217 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_YV12_WRAP) in mali_gralloc_format_unwrap()
219 base_format = MALI_GRALLOC_FORMAT_INTERNAL_YV12; in mali_gralloc_format_unwrap()
221 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y8_WRAP) in mali_gralloc_format_unwrap()
223 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y8; in mali_gralloc_format_unwrap()
225 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y16_WRAP) in mali_gralloc_format_unwrap()
227 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y16; in mali_gralloc_format_unwrap()
230 return (modifiers | base_format); in mali_gralloc_format_unwrap()
363 bool is_subsampled_yuv(const uint32_t base_format);
379 bool is_exynos_format(uint32_t base_format);
H A Dformat_info.h94 extern int32_t get_format_index(const uint32_t base_format);
95 extern int32_t get_ip_format_index(const uint32_t base_format);
96 extern uint32_t get_internal_format(const uint32_t base_format, const bool map_to_internal);
99 extern const char *format_name(const uint32_t base_format);
H A Dmali_gralloc_bufferaccess.cpp401 const uint32_t base_format = hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_ycbcr() local
410 const int32_t format_idx = get_format_index(base_format); in mali_gralloc_lock_ycbcr()
438 switch (base_format) in mali_gralloc_lock_ycbcr()
546 const uint32_t base_format = hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_get_num_flex_planes() local
555 const int32_t format_idx = get_format_index(base_format); in mali_gralloc_get_num_flex_planes()
679 static int get_flexlayout_exynos_formats_only (int base_format, uint64_t usage, in get_flexlayout_exynos_formats_only() argument
688 switch (base_format) in get_flexlayout_exynos_formats_only()
947 switch (base_format) in get_flexlayout_exynos_formats_only()
1036 const int32_t format_idx = get_format_index(base_format); in mali_gralloc_lock_flex_async()
1054 if (is_exynos_format((uint32_t)base_format)) in mali_gralloc_lock_flex_async()
[all …]
H A Dformat_info.cpp326 int32_t get_format_index(const uint32_t base_format) in get_format_index() argument
331 if (formats[format_idx].id == base_format) in get_format_index()
346 int32_t get_ip_format_index(const uint32_t base_format) in get_ip_format_index() argument
351 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index()
358 ALOGE("ERROR: IP support not found for format: %" PRIx32, base_format); in get_ip_format_index()
382 uint32_t internal_format = base_format; in get_internal_format()
389 if (hal_to_internal_format[idx].hal_format == base_format) in get_internal_format()
557 const char *format_name(uint32_t base_format) { in format_name() argument
574 NameMap::const_iterator i = name_map.find(base_format); in format_name()
581 bool is_exynos_format(uint32_t base_format) in is_exynos_format() argument
[all …]
H A Dmali_gralloc_bufferallocation.cpp251 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc() local
264 const uint32_t layout = is_subsampled_yuv(base_format) && !is_multi_plane ? 1 : 0; in init_afbc()
266 …AFBC header layout %d for format (%s %" PRIx32 ")", layout, format_name(base_format), base_format); in init_afbc()
/aosp12/hardware/google/gchips/gralloc4/src/core/
H A Dmali_gralloc_formats.cpp63 uint32_t base_format; member
693 is_subsampled_yuv(base_format)) in validate_afbc_format()
706 !is_subsampled_yuv(base_format) && in validate_afbc_format()
797 uint64_t alloc_format = base_format; in get_afbc_format()
1006 base_format); in get_supported_format()
1047 fmt_supported->base_format = base_format; in get_supported_format()
1261 fmt.base_format = formats[i].id; in get_best_format()
1263 format_name(fmt.base_format), fmt.base_format); in get_best_format()
1297 format_name(fmt.base_format), fmt.base_format, fmt.format_ext, fmt.f_flags); in get_best_format()
1307 if (fmt.base_format == req_base_format) in get_best_format()
[all …]
H A Dformat_info.h111 extern int32_t get_format_index(const uint32_t base_format);
112 extern int32_t get_ip_format_index(const uint32_t base_format);
113 extern uint32_t get_internal_format(const uint32_t base_format, const bool map_to_internal);
114 void get_format_dataspace(uint32_t base_format,
121 extern const char *format_name(const uint32_t base_format);
H A Dformat_info.cpp308 int32_t get_format_index(const uint32_t base_format) in get_format_index() argument
313 if (formats[format_idx].id == base_format) in get_format_index()
328 int32_t get_ip_format_index(const uint32_t base_format) in get_ip_format_index() argument
333 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index()
362 uint32_t get_internal_format(const uint32_t base_format, const bool map_to_internal) in get_internal_format() argument
364 uint32_t internal_format = base_format; in get_internal_format()
368 if (hal_to_internal_format[idx].hal_format == base_format) in get_internal_format()
389 void get_format_dataspace(uint32_t base_format, in get_format_dataspace() argument
401 const int32_t format_idx = get_format_index(base_format); in get_format_dataspace()
588 const char *format_name(uint32_t base_format) { in format_name() argument
[all …]
H A Dmali_gralloc_bufferallocation.cpp266 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc() local
279 const uint32_t layout = is_subsampled_yuv(base_format) && !is_multi_plane ? 1 : 0; in init_afbc()
282 layout, format_name(base_format), base_format); in init_afbc()
/aosp12/hardware/google/gchips/gralloc4/src/
H A Dmali_gralloc_formats.h221 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_format_unwrap() local
224 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_YV12_WRAP) in mali_gralloc_format_unwrap()
226 base_format = MALI_GRALLOC_FORMAT_INTERNAL_YV12; in mali_gralloc_format_unwrap()
228 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y8_WRAP) in mali_gralloc_format_unwrap()
230 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y8; in mali_gralloc_format_unwrap()
232 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y16_WRAP) in mali_gralloc_format_unwrap()
234 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y16; in mali_gralloc_format_unwrap()
237 return (modifiers | base_format); in mali_gralloc_format_unwrap()
366 bool is_subsampled_yuv(const uint32_t base_format);
369 bool is_exynos_format(uint32_t base_format);
/aosp12/hardware/google/gchips/gralloc4/src/hidl_common/
H A DAllocator.cpp94 const uint32_t base_format = bufferDescriptor.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in allocate() local
97 get_format_dataspace(base_format, usage, hnd->width, hnd->height, &dataspace); in allocate()
/aosp12/hardware/google/gchips/gralloc4/src/libGralloc4Wrapper/
H A Dwrapper.cpp173 const uint32_t base_format = buffer_descriptor.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in createNativeHandle() local
176 get_format_dataspace(base_format, usage, hnd->width, hnd->height, &dataspace); in createNativeHandle()