Function Kataglyphis::halveRgba8#
Defined in File TextureFit.hpp
Function Documentation#
-
inline FittedRgba8 Kataglyphis::halveRgba8(const unsigned char *rgba, uint32_t width, uint32_t height, bool srgb)#
One box-filtered halving, as Rust’s generate_mips: each texel averages its 2x2 block (an odd edge drops its last row or column), sRGB colour in linear space and alpha as stored, rounded half up.