Home
last modified time | relevance | path

Searched refs:is_power2 (Results 1 – 4 of 4) sorted by relevance

/aosp12/hardware/google/gchips/gralloc4/src/core/
H A Dformat_info.h42 constexpr bool is_power2(uint8_t n) in is_power2() function
H A Dmali_gralloc_bufferallocation.cpp564 static_assert(is_power2(YUV_BYTE_ALIGN_DEFAULT), in calc_allocation_size()
566 static_assert(is_power2(RGB_BYTE_ALIGN_DEFAULT), in calc_allocation_size()
576 static_assert(is_power2(GPU_BYTE_ALIGN_DEFAULT), in calc_allocation_size()
H A Dformat_info.cpp537 if (!is_power2(format->hsub) || !is_power2(format->vsub)) in sanitize_formats()
571 if (!is_power2(format->align_w) || !is_power2(format->align_h)) in sanitize_formats()
577 if (!is_power2(format->align_w_cpu)) in sanitize_formats()
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dformat_info.cpp410 bool is_power2(uint8_t n) in is_power2() function
506 if (!is_power2(format->hsub) || !is_power2(format->vsub)) in sanitize_formats()
540 if (!is_power2(format->align_w) || !is_power2(format->align_h)) in sanitize_formats()
546 if (!is_power2(format->align_w_cpu)) in sanitize_formats()