/hardware/google/gchips/gralloc3/src/ |
D | mali_gralloc_formats.cpp | 77 uint32_t base_format; member 698 bool is_subsampled_yuv(const uint32_t base_format) in is_subsampled_yuv() argument 704 if (formats[i].id == (base_format & MALI_GRALLOC_INTFMT_FMT_MASK)) in is_subsampled_yuv() 858 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in validate_afbc_format() local 880 is_subsampled_yuv(base_format)) in validate_afbc_format() 893 !is_subsampled_yuv(base_format) && in validate_afbc_format() 894 base_format != MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 911 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 969 static uint64_t get_afbc_format(const uint32_t base_format, in get_afbc_format() argument 976 uint64_t alloc_format = base_format; in get_afbc_format() [all …]
|
D | mali_gralloc_formats.h | 214 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);
|
D | format_info.h | 94 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);
|
D | mali_gralloc_bufferaccess.cpp | 401 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() 940 AERR("not exynos format: format(0x%" PRIx32 ") usage(0x%" PRIx64 ")", base_format, usage); in get_flexlayout_exynos_formats_only() 947 switch (base_format) in get_flexlayout_exynos_formats_only() 1027 const uint32_t base_format = hnd->alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_flex_async() local [all …]
|
D | format_info.cpp | 326 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() 338 ALOGE("ERROR: Format allocation info not found for format: %" PRIx32, 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() 380 uint32_t get_internal_format(const uint32_t base_format, const bool map_to_internal) in get_internal_format() argument 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 [all …]
|
D | mali_gralloc_bufferallocation.cpp | 251 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()
|
/hardware/google/gchips/gralloc4/src/core/ |
D | mali_gralloc_formats.cpp | 63 uint32_t base_format; member 513 bool is_subsampled_yuv(const uint32_t base_format) in is_subsampled_yuv() argument 519 if (formats[i].id == (base_format & MALI_GRALLOC_INTFMT_FMT_MASK)) in is_subsampled_yuv() 671 const uint32_t base_format = alloc_format & MALI_GRALLOC_INTFMT_FMT_MASK; in validate_afbc_format() local 693 is_subsampled_yuv(base_format)) in validate_afbc_format() 706 !is_subsampled_yuv(base_format) && in validate_afbc_format() 707 base_format != MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 724 if (base_format == MALI_GRALLOC_FORMAT_INTERNAL_RGB_565) in validate_afbc_format() 790 static uint64_t get_afbc_format(const uint32_t base_format, in get_afbc_format() argument 797 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 | format_info.cpp | 308 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() 320 MALI_GRALLOC_LOGE("ERROR: Format allocation info not found for format: %" PRIx32, 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() 340 MALI_GRALLOC_LOGE("ERROR: IP support not found for format: %" PRIx32, 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 [all …]
|
D | mali_gralloc_bufferallocation.cpp | 266 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()
|
/hardware/google/gchips/gralloc4/src/ |
D | mali_gralloc_formats.h | 221 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);
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | Allocator.cpp | 94 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()
|
/hardware/google/gchips/gralloc4/src/libGralloc4Wrapper/ |
D | wrapper.cpp | 173 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()
|