pub struct Rgb24Row<'a> { /* private fields */ }Expand description
One output row of an Rgb24 source — width * 3 packed
R, G, B bytes.
Implementations§
Source§impl<'a> Rgb24Row<'a>
impl<'a> Rgb24Row<'a>
Sourcepub const fn new(
rgb: &'a [u8],
row: usize,
matrix: Matrix,
full_range: bool,
) -> Rgb24Row<'a>
pub const fn new( rgb: &'a [u8], row: usize, matrix: Matrix, full_range: bool, ) -> Rgb24Row<'a>
Creates a new row.
Sourcepub const fn matrix(&self) -> Matrix
pub const fn matrix(&self) -> Matrix
YUV/RGB conversion matrix carried through from the kernel call.
Sourcepub const fn full_range(&self) -> bool
pub const fn full_range(&self) -> bool
Full-range vs limited-range flag carried through from the kernel call.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Rgb24Row<'a>
impl<'a> RefUnwindSafe for Rgb24Row<'a>
impl<'a> Send for Rgb24Row<'a>
impl<'a> Sync for Rgb24Row<'a>
impl<'a> Unpin for Rgb24Row<'a>
impl<'a> UnsafeUnpin for Rgb24Row<'a>
impl<'a> UnwindSafe for Rgb24Row<'a>
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