MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / interp_5_6_amd

Function interp_5_6_amd

external/basisu/encoder/basisu_gpu_texture.cpp:220–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 }
219
220 static inline int interp_5_6_amd(int c0, int c1) { assert(c0 < 256 && c1 < 256); return (c0 * 43 + c1 * 21 + 32) >> 6; }
221 static inline int interp_half_5_6_amd(int c0, int c1) { assert(c0 < 256 && c1 < 256); return (c0 + c1 + 1) >> 1; }
222
223 bool unpack_bc1_amd(const void *pBlock_bits, color_rgba *pPixels, bool set_alpha)

Callers 1

unpack_bc1_amdFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected