#[repr(u8)]pub enum ColorDepth {
Color8 = 0,
Color10 = 1,
Color12 = 2,
Color16 = 3,
}
Expand description
Specifies the color depth of an image. Currently only used for YUV images.
Variants§
Color8 = 0
8 bits image (most common)
Color10 = 1
10 bits image
Color12 = 2
12 bits image
Color16 = 3
16 bits image
Implementations§
Source§impl ColorDepth
impl ColorDepth
Trait Implementations§
Source§impl Clone for ColorDepth
impl Clone for ColorDepth
Source§fn clone(&self) -> ColorDepth
fn clone(&self) -> ColorDepth
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 ColorDepth
impl Debug for ColorDepth
Source§impl Default for ColorDepth
impl Default for ColorDepth
Source§impl<'de> Deserialize<'de> for ColorDepth
impl<'de> Deserialize<'de> for ColorDepth
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 Hash for ColorDepth
impl Hash for ColorDepth
Source§impl MallocSizeOf for ColorDepth
impl MallocSizeOf for ColorDepth
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl PartialEq for ColorDepth
impl PartialEq for ColorDepth
Source§impl Peek for ColorDepth
impl Peek for ColorDepth
Source§impl Poke for ColorDepth
impl Poke for ColorDepth
Source§impl Serialize for ColorDepth
impl Serialize for ColorDepth
impl Copy for ColorDepth
impl Eq for ColorDepth
impl StructuralPartialEq for ColorDepth
Auto Trait Implementations§
impl Freeze for ColorDepth
impl RefUnwindSafe for ColorDepth
impl Send for ColorDepth
impl Sync for ColorDepth
impl Unpin for ColorDepth
impl UnwindSafe for ColorDepth
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