Realm

oa::video::overlay_boxes

Draw rectangles into a new device-planar frame. The base frame is copied once at identity; each box then writes its scaled region on luma and each chroma component with exclusive single-component dispatches. border draws a hollow ring of that width in luma pixels instead of filling. Errors Returns an error for a non-device-planar frame, a box outside the visible extent, or a runtime recording failure.

FnRust public API

Function Documentation

pub fn overlay_boxes( frame: &VideoFrame, boxes: &[VideoBox], border: Option<u32> ) -> Result<VideoFrame>
Draw rectangles into a new device-planar frame. The base frame is copied once at identity; each box then writes its scaled region on luma and each chroma component with exclusive single-component dispatches. border draws a hollow ring of that width in luma pixels instead of filling. Errors Returns an error for a non-device-planar frame, a box outside the visible extent, or a runtime recording failure.