Realm

oa::video::overlay_mask

Stencil fill onto a frame wherever the mask’s luma byte is nonzero. mask must be a device-planar frame of the same luma extent whose luma plane is the stencil. Chroma components apply the mask at chroma resolution; edge columns under odd extents follow the chroma rounding. Errors Returns an error for non-device-planar inputs, mismatched extents, or a runtime recording failure.

FnRust public API

Function Documentation

pub fn overlay_mask( frame: &VideoFrame, mask: &VideoFrame, fill: [u8; 3] ) -> Result<VideoFrame>
Stencil fill onto a frame wherever the mask’s luma byte is nonzero. mask must be a device-planar frame of the same luma extent whose luma plane is the stencil. Chroma components apply the mask at chroma resolution; edge columns under odd extents follow the chroma rounding. Errors Returns an error for non-device-planar inputs, mismatched extents, or a runtime recording failure.