Function nokhwa::utils::nv12_to_rgb

source ·
pub fn nv12_to_rgb(
    resolution: Resolution,
    data: &[u8],
    rgba: bool
) -> Result<Vec<u8, Global>, NokhwaError>
Expand description

Converts a YUYV 4:2:0 bi-planar (NV12) datastream to a RGB888 Stream. For further reading

Errors

This may error when the data stream size is wrong.