pub enum Depth {
One,
Two,
Four,
Eight,
Sixteen,
}Expand description
Bits per component, as the sample stream carries them.
The five values /BitsPerComponent is allowed to take. A type rather than
a u32 because the unpack loop dispatches on it once per image and then
runs a loop that cannot be handed a depth the extractor does not know.
Variants§
One
One bit: eight samples to the byte, MSB first.
Two
Two bits.
Four
Four bits: two samples to the byte.
Eight
Eight bits: one sample to the byte.
Sixteen
Sixteen bits, big-endian.
Implementations§
Trait Implementations§
impl Copy for Depth
impl Eq for Depth
impl StructuralPartialEq for Depth
Auto Trait Implementations§
impl Freeze for Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnsafeUnpin for Depth
impl UnwindSafe for Depth
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