pub fn gbr_with_alpha_to_rgba(
image: &YuvPlanarImageWithAlpha<'_, u8>,
rgb: &mut [u8],
rgb_stride: u32,
range: YuvRange,
) -> Result<(), YuvError>Expand description
Convert GBR8A with alpha channel to RGBA
This function takes GBR interleaved format data with 8-bit precision, and converts it to RGBA format with 8-bit per channel precision.
§Arguments
image- Source GBR image.rgba- A slice to store the RGBA plane data.rgba_stride- The stride (components per row) for the RGBA plane.range- Yuv values range.
§Panics
This function panics if the lengths of the planes or the input RGBA data are not valid based on the specified width, height, and strides is provided.