BoxDownsample
function · image · primitive
- Address
0x5a4c30· 691 bytes, up to0x5a4ee2- Signature
void __fastcall (void *dst, uint32_t dstW, uint32_t dstH, const void *src, uint32_t srcW, uint32_t srcH)- Meaning
- Averages each block of a BGRA image weighted by alpha
- Confidence
- verified, proof one
- Finding
- image/mips#box-filter-downsample
- Test
image::image_box_downsample
Finding: Box filter downsample in image: mip geometry
0x5a4c30(dst, dstW, dstH, src, srcW, srcH) halves or reduces a BGRA image by averaging
each bw × bh source block (bw = srcW / dstW, bh = srcH / dstH, integer divisions), weighting
the colour channels by each pixel's alpha.
The derivation is in the doc.
Callers 1
Callees 1
- __alldiv crt
Calls and jumps by a bare address, from tables/calls.tsv.