ConvertBgraToRgb565
function · image · primitive
- Address
0x5a5330· 333 bytes, up to0x5a547c- Signature
void __fastcall (void *arg1, const void *src, uint32_t srcStride, void *dst, uint32_t dstStride)- Meaning
- Packs BGRA8888 pixels to RGB565
- Confidence
- verified, proof one
- Finding
- image/convert#packing-to-16-bits
- Test
image::image_bgra8888_to_rgb565
Finding: Packing to 16 bits in image: pixel format conversion
The three packers narrow each BGRA pixel by dropping low bits and keep the pixel order.
| function | result |
|---|---|
0x5a5070 | (A >> 4) << 12 | (R >> 4) << 8 | (G >> 4) << 4 | (B >> 4) |
0x5a51d0 | (A >> 7) << 15 | (R >> 3) << 10 | (G >> 3) << 5 | (B >> 3) |
0x5a5330 | (R >> 3) << 11 | (G >> 2) << 5 | (B >> 3) |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.