Internal helper that composites the original source image over
the generated outline using source-over alpha compositing. The outline is the
backdrop and the source image is the foreground. Colors are treated as
straight, non-premultiplied alpha, using
Ao = Af + Ab * (1 - Af) and
Co = (Cf * Af + Cb * Ab * (1 - Af)) / Ao. Fully transparent output pixels
are forced to black to avoid carrying arbitrary color values.
composite_alpha_outline_image(halo_image, source_image)A rayimg RGBA image containing the source composited over the
outline.
RGBA outline image used as the compositing backdrop.
RGBA source image, padded to the same dimensions as
halo_image, used as the compositing foreground.