Enum embassy_stm32::ltdc::PixelFormat
source ยท #[repr(u8)]pub enum PixelFormat {
ARGB8888 = 0,
RGB888 = 1,
RGB565 = 2,
ARGB1555 = 3,
ARGB4444 = 4,
L8 = 5,
AL44 = 6,
AL88 = 7,
}
Expand description
Pixel format
Variantsยง
ARGB8888 = 0
ARGB8888
RGB888 = 1
RGB888
RGB565 = 2
RGB565
ARGB1555 = 3
ARGB1555
ARGB4444 = 4
ARGB4444
L8 = 5
L8 (8-bit luminance)
AL44 = 6
AL44 (4-bit alpha, 4-bit luminance
AL88 = 7
AL88 (8-bit alpha, 8-bit luminance)
Implementationsยง
sourceยงimpl PixelFormat
impl PixelFormat
sourcepub fn bytes_per_pixel(&self) -> usize
pub fn bytes_per_pixel(&self) -> usize
Number of bytes per pixel
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 Format for PixelFormat
impl Format for PixelFormat
sourceยงimpl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl Copy for PixelFormat
impl Eq 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
)