#[non_exhaustive]pub enum PixelFormat {
Rgb565Le,
Rgb565Be,
Bgr565Le,
Bgr565Be,
Rgb888,
Bgr888,
Gray8,
Yuv444,
Vuy444,
Yuyv422,
Uyvy422,
Yuv420Packed,
}unstable only.Expand description
Pixel layout of the uncompressed input image.
YCbCr inputs are interpreted as full-range samples.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Rgb565Le
Little-endian RGB565.
Rgb565Be
Big-endian RGB565.
Bgr565Le
Little-endian BGR565.
Bgr565Be
Big-endian BGR565.
Rgb888
R, G, B bytes per pixel.
Bgr888
B, G, R bytes per pixel.
Gray8
8-bit grayscale.
Yuv444
Y, Cb, Cr bytes per pixel.
Vuy444
Cr, Cb, Y bytes per pixel.
Yuyv422
Y0, Cb, Y1, Cr bytes per pair of pixels.
The image width must be even.
Uyvy422
Cb, Y0, Cr, Y1 bytes per pair of pixels.
The image width must be even.
Yuv420Packed
Packed YCbCr 4:2:0.
Each 2x2 block stores Cb, Y00, Y01 in the first row and Cr, Y10, Y11 in the second.
The image width and height must be even.
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
impl Copy for PixelFormat
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
impl Eq for PixelFormat
Source§impl Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Forget for PixelFormat
impl Freeze for PixelFormat
impl Move for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)