TgaAppendAlpha
function · image · primitive
- Address
0x5a3b80· 254 bytes, up to0x5a3c7d- Signature
void __thiscall (void *this, void *dst, const void *src, const uint8_t *alpha)- Meaning
- Copies each pixel and appends an alpha byte
- Confidence
- verified, proof one
- Finding
- image/tga#alpha-channel
- Test
image::image_tga_append_alpha
Finding: Alpha channel in image: TGA
0x5a3b80(dst, src, alpha) copies each pixel and appends one byte: the next byte of alpha, or
0xff for a null alpha. It then sets the attribute to 8, adds 8 − attribute to bpp and
recomputes +0x3c. 0x5a3fc0(alpha) adds an alpha plane to a decoded image and 0x5a4250
removes it.
The derivation is in the doc.
Callers 4
- TgaExpandPalette image
- TgaReadPixels image
- TgaReadRle image
- TgaSetAlphaPlane image
Callees 1
- 0x4100f0 crt
Calls and jumps by a bare address, from tables/calls.tsv.