Expand description
Optimized alpha blending routines based on libwebp
Functionsยง
- blend_
channel_ ๐nonpremult - Blend a single channel of
srcoverdst, given their alpha channel values.srcanddstare assumed to be NOT pre-multiplied by alpha. - blend_
pixel_ ๐nonpremult - Blend
srcoverdstassuming they are NOT pre-multiplied by alpha. - channel_
shift ๐ - div_
by_ ๐255 - Divides by 255, rounding to nearest (as opposed to down, like regular integer division does). TODO: cannot output 256, so the output is effecitively u8. Plumb that through the code.
- do_
alpha_ ๐blending