Skip to main content

nv12_to_rgb

Function nv12_to_rgb 

Source
pub fn nv12_to_rgb(
    resolution: Resolution,
    data: &[u8],
    rgba: bool,
) -> Result<Vec<u8>, 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.