#[repr(u8)]pub enum BayerPattern {
Rggb = 0,
Grbg = 1,
Gbrg = 2,
Bggr = 3,
}Expand description
Raw Bayer pattern of the sensor. Encoding matches P1DMCR.TYPE
(RM0486 §39.14.56).
Variants§
Rggb = 0
Red‑Green‑Green‑Blue top-left 2×2 pattern.
Grbg = 1
Green‑Red‑Blue‑Green top-left 2×2 pattern.
Gbrg = 2
Green‑Blue‑Red‑Green top-left 2×2 pattern.
Bggr = 3
Blue‑Green‑Green‑Red top-left 2×2 pattern.
Trait Implementations§
Source§impl Clone for BayerPattern
impl Clone for BayerPattern
Source§fn clone(&self) -> BayerPattern
fn clone(&self) -> BayerPattern
Returns a duplicate 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 BayerPattern
impl Debug for BayerPattern
Source§impl Format for BayerPattern
impl Format for BayerPattern
Source§impl PartialEq for BayerPattern
impl PartialEq for BayerPattern
impl Copy for BayerPattern
impl Eq for BayerPattern
impl StructuralPartialEq for BayerPattern
Auto Trait Implementations§
impl Freeze for BayerPattern
impl RefUnwindSafe for BayerPattern
impl Send for BayerPattern
impl Sync for BayerPattern
impl Unpin for BayerPattern
impl UnwindSafe for BayerPattern
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