benilla-re systems structs docs

DecodeDxt3BlockArgb8888

function · image · primitive

Address
0x5a62f0 · 660 bytes, up to 0x5a6583
Signature
void __fastcall (const void *block, uint32_t **rows, const void *bounds, void *alpha)
Meaning
Decodes one DXT3 block to ARGB8888
Confidence
verified, proof one
Finding
image/convert#dxt3-colours
Test
image::image_dxt3_block_decoders

Finding: DXT3 colours in image: pixel format conversion

A DXT3 block is 8 bytes of explicit 4-bit alpha (row y in the word at y · 2) and a DXT1-style colour half at +8, whose palette is always the four-colour one. The decoders write colour with the alpha: ARGB4444 stores (colour & 0xfff) | alpha << 12, ARGB8888 stores the packed colour with the alpha byte from a callback.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.