pub struct SuperpixelOffsets {
pub red: (u32, u32),
pub green: [(u32, u32); 2],
pub blue: (u32, u32),
}Expand description
Where each colour sits inside a Bayer tile, as (x, y) offsets from the top
left of the 2x2 tile.
Fields§
§red: (u32, u32)Where the red pixel sits in the group.
green: [(u32, u32); 2]The two green samples, which are averaged together.
blue: (u32, u32)Where the blue pixel sits in the group.
Trait Implementations§
Source§impl Clone for SuperpixelOffsets
impl Clone for SuperpixelOffsets
Source§fn clone(&self) -> SuperpixelOffsets
fn clone(&self) -> SuperpixelOffsets
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 moreimpl Copy for SuperpixelOffsets
Source§impl Debug for SuperpixelOffsets
impl Debug for SuperpixelOffsets
impl Eq for SuperpixelOffsets
Source§impl PartialEq for SuperpixelOffsets
impl PartialEq for SuperpixelOffsets
impl StructuralPartialEq for SuperpixelOffsets
Auto Trait Implementations§
impl Freeze for SuperpixelOffsets
impl RefUnwindSafe for SuperpixelOffsets
impl Send for SuperpixelOffsets
impl Sync for SuperpixelOffsets
impl Unpin for SuperpixelOffsets
impl UnsafeUnpin for SuperpixelOffsets
impl UnwindSafe for SuperpixelOffsets
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more