pub fn downscale_frame(
frame: &DecodedVideoFrame,
factor: u32,
) -> Result<DecodedVideoFrame, String>Expand description
The frame shrunk by factor with box averaging, visible size rounded down
to even for 4:2:0 encoders.
ยงErrors
Returns a message for a factor below 2, a frame too small to shrink, or a short plane.