Tests (2)

The CPU decoder was also compared with ARM's astcenc 5.7.0 (astcenc -dl and -dH, Apache-2.0, a release binary used only as a tool), on the same kind of random blocks for every footprint. Every texel agreed within one step of rounding (astcenc's 8 bit output rounds differently), and every block one rejects the other rejects too. In the LDR profile astcenc also rejects HDR endpoint modes, which this decoder decoded then. After HDR endpoints became the error color, the CPU decoder was compared with Amberlith's LDR profile reference decoder (source/astcref.c, held to astcenc by Amberlith's reference suite) on 20,000 random blocks for each of the 14 footprints: every texel was one of the two bytes the reference allows, error blocks included. The sRGB decode mode was checked the same way against astcenc -cs and -ds on five footprints: every byte agreed, alpha included.


Made from docs/layers/gpu/astc.md at 69237645142c. GPL-3.0-or-later.