Realm

oa::video::resize

Stretch a frame to a new extent in luma space; chroma planes follow. Errors Returns an error for a non-device-planar frame or a zero extent.

FnRust public API

Function Documentation

pub fn resize( frame: &VideoFrame, width: u32, height: u32, interpolation: VideoInterpolation ) -> Result<VideoFrame>
Stretch a frame to a new extent in luma space; chroma planes follow. Errors Returns an error for a non-device-planar frame or a zero extent.

Examples