pub fn rgb10_to_gb10(
image: &mut YuvPlanarImageMut<'_, u16>,
rgb10: &[u16],
rgb10_stride: u32,
range: YuvRange,
) -> Result<(), YuvError>Expand description
Convert RGB10 to GB10
This function takes RGB image format data with 10-bit precision, and converts it to GB10 YUV format.
§Arguments
image- Target GB10 image.rgb- A slice to load RGB10 data.rgb_stride- The stride (components per row) for the RGB10 plane.range- Yuv values range.
§Panics
This function panics if the lengths of the planes or the input RGB10 data are not valid based on the specified width, height, and strides is provided.