Expand description
PNG watermark overlay composited onto frames before encoding. PNG watermark overlay composited onto captured frames before encoding.
Supports static positioning (top-left, top-right, bottom-left, bottom-right, center) and an animated “DVD-screensaver” bounce mode. The watermark is rendered into the compositor frame on the GPU path (no readback) or blitted onto the host-ARGB buffer on the CPU path.
Structs§
- Overlay
State - The watermark’s uploaded pixels plus its current placement and bounce state, kept across frames so a moving (bouncing) watermark can be advanced and re-placed each tick without re-reading or re-uploading the image.
Enums§
- Watermark
Location - Watermark anchor: corners (TL/TR/BL/BR), middle (MI), or bouncing (AN).
Functions§
- blend_
pixel 🔒 - Alpha-blend a source pixel (pre-split into r,g,b,a) over a BGRA destination pixel.
- blend_
pixel_ 🔒premultiplied - Source-over compositing for PREMULTIPLIED sources (XFixes/Xcursor pixels are
premultiplied by format definition): dst = src + dst*(1-a). The straight-alpha
blend_pixelon premultiplied input multiplies alpha in twice and darkens every translucent pixel (visible dark fringes on the composited cursor).