11#include "../SIMD/SIMD.hpp"
12#include "../macros.hpp"
17hi_export_module(hikogui.image.unorm_a2bgr10_pack);
52 explicit operator f32x4()
const noexcept
55 static_cast<float>((value >> 20) & 0x3ff) / 1023.0f,
56 static_cast<float>((value >> 10) & 0x3ff) / 1023.0f,
57 static_cast<float>(value & 0x3ff) / 1023.0f,
58 static_cast<float>(value >> 30) / 3.0f};
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
1 x uint2_t, 3 x uint10_t pixel packed format.
Definition unorm_a2bgr10_pack.hpp:34