Function rotate_cbcr

Source
pub fn rotate_cbcr(
    src: &[u8],
    src_stride: usize,
    dst: &mut [u8],
    dst_stride: usize,
    width: usize,
    height: usize,
    mode: RotationMode,
) -> Result<(), YuvError>
Available on crate feature geometry only.
Expand description

Rotates CbCr 8 bit image.

This rotates any 2 channels image, channel order does not matter.

ยงArguments

  • src: Source image
  • src_stride: Source image stride
  • dst: Destination image
  • dst_stride: Destination image stride
  • width: Image width
  • height: Image Height
  • mode: Refer to RotationMode for mode info

returns: Result<(), YuvError>