Searched refs:base_format (Results 1 – 8 of 8) sorted by relevance
/hardware/google/gchips/gralloc4/src/core/ |
D | mali_gralloc_formats.cpp | 64 uint32_t base_format; member 524 bool is_subsampled_yuv(const uint32_t base_format) in is_subsampled_yuv() argument 530 if (formats[i].id == (base_format & MALI_GRALLOC_INTFMT_FMT_MASK)) in is_subsampled_yuv() 682 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in validate_afbc_format() local 704 is_subsampled_yuv(base_format)) in validate_afbc_format() 717 !is_subsampled_yuv(base_format) && in validate_afbc_format() 718 base_format != MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 735 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 801 static uint64_t get_afbc_format(const uint32_t base_format, in get_afbc_format() argument 808 uint64_t alloc_format = base_format; in get_afbc_format() [all …]
|
D | format_info.h | 111 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);
|
D | mali_gralloc_bufferallocation.cpp | 276 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc() local 289 const uint32_t layout = is_subsampled_yuv(base_format) && !is_multi_plane ? 1 : 0; in init_afbc() 296 layout, format_name(base_format), base_format, in init_afbc() 1057 int base_format = bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_derive_format_and_size() local 1060 if (is_exynos_format(base_format) && get_exynos_fd_count(base_format) != 1) in mali_gralloc_derive_format_and_size() 1063 if (seen_formats.find(base_format) == seen_formats.end()) { in mali_gralloc_derive_format_and_size() 1066 format_name(base_format), static_cast<uint64_t>(base_format), in mali_gralloc_derive_format_and_size() 1068 seen_formats.insert(base_format); in mali_gralloc_derive_format_and_size() 1080 int32_t format_idx = get_format_index(base_format); in mali_gralloc_derive_format_and_size() 1102 if (is_exynos_format(base_format)) in mali_gralloc_derive_format_and_size() [all …]
|
D | format_info.cpp | 312 int32_t get_format_index(const uint32_t base_format) in get_format_index() argument 317 if (formats[format_idx].id == base_format) in get_format_index() 324 MALI_GRALLOC_LOGE("ERROR: Format allocation info not found for format: %" PRIx32, base_format); in get_format_index() 332 int32_t get_ip_format_index(const uint32_t base_format) in get_ip_format_index() argument 337 if (formats_ip_support[format_idx].id == base_format) in get_ip_format_index() 344 MALI_GRALLOC_LOGE("ERROR: IP support not found for format: %" PRIx32, base_format); in get_ip_format_index() 366 uint32_t get_internal_format(const uint32_t base_format, const bool map_to_internal) in get_internal_format() argument 368 uint32_t internal_format = base_format; in get_internal_format() 372 if (hal_to_internal_format[idx].hal_format == base_format) in get_internal_format() 393 void get_format_dataspace(uint32_t base_format, in get_format_dataspace() argument [all …]
|
/hardware/google/gchips/gralloc4/src/ |
D | mali_gralloc_formats.h | 225 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_format_unwrap() local 228 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_YV12_WRAP) in mali_gralloc_format_unwrap() 230 base_format = MALI_GRALLOC_FORMAT_INTERNAL_YV12; in mali_gralloc_format_unwrap() 232 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y8_WRAP) in mali_gralloc_format_unwrap() 234 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y8; in mali_gralloc_format_unwrap() 236 else if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_Y16_WRAP) in mali_gralloc_format_unwrap() 238 base_format = MALI_GRALLOC_FORMAT_INTERNAL_Y16; in mali_gralloc_format_unwrap() 241 return (modifiers | base_format); in mali_gralloc_format_unwrap() 369 bool is_subsampled_yuv(const uint32_t base_format); 372 bool is_exynos_format(uint32_t base_format);
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | Allocator.cpp | 144 const uint32_t base_format = bufferDescriptor.alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in allocate() local 147 get_format_dataspace(base_format, usage, hnd->width, hnd->height, &dataspace); in allocate()
|
D | MapperMetadata.cpp | 293 uint32_t base_format = handle->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in get_plane_layouts() local 294 int32_t format_index = get_format_index(base_format); in get_plane_layouts() 314 uint8_t fd_count = get_exynos_fd_count(base_format); in get_plane_layouts() 319 format_name(base_format), handle->alloc_format); in get_plane_layouts()
|
/hardware/google/gchips/gralloc4/src/allocator/ |
D | mali_gralloc_ion.cpp | 457 const uint32_t base_format = bufDescriptor->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_ion_allocate() local 458 int32_t format_idx = get_format_index(base_format); in mali_gralloc_ion_allocate() 461 … MALI_GRALLOC_LOGE("Unknown format %" PRIx32 ", AFBC initialization is impossible", base_format); in mali_gralloc_ion_allocate()
|