Searched refs:is_power2 (Results 1 – 4 of 4) sorted by relevance
42 constexpr bool is_power2(uint8_t n) in is_power2() function
564 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()
537 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()
410 bool is_power2(uint8_t n) in is_power2() function506 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()