Realm

oa::video::composite

Alpha-composite front over back plane-by-plane; alpha is 0-255. Both frames must share format, extent, and engine. Each component blends with rounding (front*a + back*(255-a) + 127) / 255. Errors Returns an error for non-device-planar inputs, mismatched frames, or a runtime recording failure.

FnRust public API

Function Documentation

pub fn composite( back: &VideoFrame, front: &VideoFrame, alpha: u8 ) -> Result<VideoFrame>
Alpha-composite front over back plane-by-plane; alpha is 0-255. Both frames must share format, extent, and engine. Each component blends with rounding (front*a + back*(255-a) + 127) / 255. Errors Returns an error for non-device-planar inputs, mismatched frames, or a runtime recording failure.