Skip to main content

yuv420p_to_rgba_scaled

Function yuv420p_to_rgba_scaled 

Source
pub fn yuv420p_to_rgba_scaled(
    frame: &YuvFrame,
    output_width: u32,
    output_height: u32,
) -> Vec<u8> ⓘ
Expand description

Convert to a bounded output size directly from YUV, without a full-size RGBA allocation. Sampling uses the nearest source pixel.