Enum sixel_bytes::PixelFormat
source · #[repr(C)]pub enum PixelFormat {
Show 20 variants
RGB555,
RGB565,
RGB888,
BGR555,
BGR565,
BGR888,
ARGB8888,
RGBA8888,
ABGR8888,
BGRA8888,
G1,
G2,
G4,
G8,
AG88,
GA88,
Pal1,
Pal2,
Pal4,
Pal8,
}Expand description
Pixel format used in input image
Variants§
RGB555
15bpp
RGB565
16bpp
RGB888
24bpp
BGR555
15bpp
BGR565
16bpp
BGR888
24bpp
ARGB8888
32bpp
RGBA8888
32bpp
ABGR8888
32bpp
BGRA8888
32bpp
G1
1bpp grayscale
G2
2bpp grayscale
G4
4bpp grayscale
G8
8bpp grayscale
AG88
16bpp grayscale with alpha
GA88
16bpp grayscale with alpha
Pal1
1bpp palette
Pal2
2bpp palette
Pal4
4bpp palette
Pal8
8bpp palette
Trait Implementations§
source§impl Clone for PixelFormat
impl Clone for PixelFormat
source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PixelFormat
impl Debug for PixelFormat
source§impl Hash for PixelFormat
impl Hash for PixelFormat
source§impl PartialEq<PixelFormat> for PixelFormat
impl PartialEq<PixelFormat> for PixelFormat
source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PixelFormat
impl Eq for PixelFormat
impl StructuralEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more