pub struct YuyvFormat;Expand description
let image: ImageBuffer<Rgb
Trait Implementations§
Source§impl Clone for YuyvFormat
impl Clone for YuyvFormat
Source§fn clone(&self) -> YuyvFormat
fn clone(&self) -> YuyvFormat
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 YuyvFormat
impl Debug for YuyvFormat
Source§impl Default for YuyvFormat
impl Default for YuyvFormat
Source§fn default() -> YuyvFormat
fn default() -> YuyvFormat
Returns the “default value” for a type. Read more
Source§impl FormatDecoder for YuyvFormat
impl FormatDecoder for YuyvFormat
const FORMATS: &'static [FrameFormat]
type Output = Rgb<u8>
Source§fn write_output(
fcc: FrameFormat,
resolution: Resolution,
data: &[u8],
) -> Result<Vec<u8>, NokhwaError>
fn write_output( fcc: FrameFormat, resolution: Resolution, data: &[u8], ) -> Result<Vec<u8>, NokhwaError>
Allocates and returns a
Vec Read moreSource§fn write_output_buffer(
fcc: FrameFormat,
resolution: Resolution,
data: &[u8],
dest: &mut [u8],
) -> Result<(), NokhwaError>
fn write_output_buffer( fcc: FrameFormat, resolution: Resolution, data: &[u8], dest: &mut [u8], ) -> Result<(), NokhwaError>
Writes to a user provided buffer. Read more
Source§impl Hash for YuyvFormat
impl Hash for YuyvFormat
Source§impl Ord for YuyvFormat
impl Ord for YuyvFormat
Source§fn cmp(&self, other: &YuyvFormat) -> Ordering
fn cmp(&self, other: &YuyvFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for YuyvFormat
impl PartialEq for YuyvFormat
Source§impl PartialOrd for YuyvFormat
impl PartialOrd for YuyvFormat
impl Copy for YuyvFormat
impl Eq for YuyvFormat
impl StructuralPartialEq for YuyvFormat
Auto Trait Implementations§
impl Freeze for YuyvFormat
impl RefUnwindSafe for YuyvFormat
impl Send for YuyvFormat
impl Sync for YuyvFormat
impl Unpin for YuyvFormat
impl UnsafeUnpin for YuyvFormat
impl UnwindSafe for YuyvFormat
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