benilla-re systems structs docs

s_dxt1Palette

global · image

Address
0xcf78a8 · 8 bytes, up to 0xcf78af
Type
uint16_t[4]
Meaning
Holds the four colours of the block the DXT1 to RGB565 driver is writing
Confidence
verified, proof one
Finding
image/convert#dxt-drivers

Finding: DXT drivers in image: pixel format conversion

A driver walks a surface in 4 by 4 blocks, building four destination row pointers per block row and calling the block decoder. For a surface whose width and height are at least 4 and multiples of 4 the decoder gets the bounds {0, 0, 3, 3, 4}; otherwise the bounds are {0, 0, min(w − 1, 3), min(h − 1, 3), min(w − 1, 3) + 1}.

The derivation is in the doc.