pub enum PixelFormat {
Show 27 variants
Mono8,
Mono10,
Mono12,
Mono16,
BayerRG8,
BayerGR8,
BayerBG8,
BayerGB8,
BayerRG10,
BayerGR10,
BayerBG10,
BayerGB10,
BayerRG12,
BayerGR12,
BayerBG12,
BayerGB12,
BayerRG16,
BayerGR16,
BayerBG16,
BayerGB16,
RGB8,
BGR8,
RGBa8,
YCbCr422_8,
YCbCr8,
Coord3dC16,
Unknown,
}Expand description
SFNC pixel format identifiers.
Variants§
Mono8
Mono10
Mono12
Mono16
BayerRG8
BayerGR8
BayerBG8
BayerGB8
BayerRG10
BayerGR10
BayerBG10
BayerGB10
BayerRG12
BayerGR12
BayerBG12
BayerGB12
BayerRG16
BayerGR16
BayerBG16
BayerGB16
RGB8
BGR8
RGBa8
YCbCr422_8
YCbCr8
Coord3dC16
Unknown
Implementations§
Source§impl PixelFormat
impl PixelFormat
Sourcepub fn bytes_per_pixel(&self) -> f32
pub fn bytes_per_pixel(&self) -> f32
Bytes per pixel (or fractional for packed/subsampled formats).
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'de> Deserialize<'de> for PixelFormat
impl<'de> Deserialize<'de> for PixelFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
Source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PixelFormat
impl Serialize 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 UnsafeUnpin 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