pub fn gbr_to_bgr(
image: &YuvPlanarImage<'_, u8>,
bgr: &mut [u8],
bgr_stride: u32,
range: YuvRange,
) -> Result<(), YuvError>Expand description
Convert YUV Identity Matrix ( aka ’GBR ) to BGR
This function takes GBR planar format data with 8-bit precision, and converts it to BGR format with 8-bit per channel precision.
§Arguments
image- Source GBR image.bgr- A slice to store the BGR data.bgr_stride- The stride (components per row) for the BGR.range- Yuv values range.
§Panics
This function panics if the lengths of the planes or the input BGR data are not valid based on the specified width, height, and strides is provided.