Realm

oa::video::pad

Extend a frame with a constant border. fill is a YUV code triplet in the frame’s component range. left and top must be even so chroma stays subsample-aligned. Errors Returns an error for a non-device-planar frame, odd offsets, or extent overflow.

FnRust public API

Function Documentation

pub fn pad( frame: &VideoFrame, padding: VideoPadding, fill: [u8; 3] ) -> Result<VideoFrame>
Extend a frame with a constant border. fill is a YUV code triplet in the frame’s component range. left and top must be even so chroma stays subsample-aligned. Errors Returns an error for a non-device-planar frame, odd offsets, or extent overflow.