PackRgb565ToArgb8888
function · image · primitive
- Address
0x5a6590· 37 bytes, up to0x5a65b4- Signature
uint32_t __thiscall (void *this, uint32_t r, uint32_t g, uint32_t b)- Meaning
- Packs 5, 6 and 5-bit channels into ARGB8888 with alpha 0xff
- Confidence
- verified, proof one
- Finding
- image/convert#dxt1-colours
- Test
image::image_dxt_pack_565comp
Finding: DXT1 colours in image: pixel format conversion
A DXT1 block is two 565 endpoints and 32 index bits. If color0 > color1 (unsigned) the four
colours are c0, c1, (2 · c0 + c1) / 3 and (c0 + 2 · c1) / 3; otherwise c0, c1, (c0 + c1) / 2
and transparent black. Each channel is computed on its own and truncated.
The derivation is in the doc.
Callers 2
- DecodeDxt3BlockArgb8888 image
- DecodeDxt1BlockArgb8888 image
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.