#[repr(u32)]pub enum PixelFormat {
Show 14 variants
None = 0,
Rgb565 = 131_073,
Rgb332 = 65_538,
Rgb2220 = 65_539,
Argb8888 = 262_148,
RgbX888 = 262_149,
Mono8 = 65_543,
Nv12 = 65_544,
I420 = 65_545,
Rgb888 = 196_617,
Abgr8888 = 262_154,
Bgr888X = 262_155,
Argb2101010 = 262_156,
Abgr2101010 = 262_157,
}
Expand description
Gives a pixel format representation.
Bits [23:16] (i.e., the third byte) encode the number of bytes per pixel in the representation.
Variants§
None = 0
Rgb565 = 131_073
Rgb332 = 65_538
Rgb2220 = 65_539
Argb8888 = 262_148
RgbX888 = 262_149
Mono8 = 65_543
Nv12 = 65_544
I420 = 65_545
Rgb888 = 196_617
Abgr8888 = 262_154
Bgr888X = 262_155
Argb2101010 = 262_156
Abgr2101010 = 262_157
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 PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq for PixelFormat
impl IntoBytes for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Freeze for PixelFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)