pub enum PixelFormat {
Show 13 variants
Rgb8,
Bgr8,
Bgra8,
Rgba8,
Argb8,
Yuyv,
Uyvy,
Nv12,
Nv21,
Yuv420p,
Gray8,
Mjpeg,
H264,
}Expand description
Possible values for PixelFormat.
Variants§
Rgb8
The Rgb8 variant.
Bgr8
The Bgr8 variant.
Bgra8
The Bgra8 variant.
Rgba8
The Rgba8 variant.
Argb8
The Argb8 variant.
Yuyv
The Yuyv variant.
Uyvy
The Uyvy variant.
Nv12
The Nv12 variant.
Nv21
The Nv21 variant.
Yuv420p
The Yuv420p variant.
Gray8
The Gray8 variant.
Mjpeg
The Mjpeg variant.
H264
The H264 variant.
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
Source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
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 PixelFormat
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
impl Eq for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Source§impl TryFrom<PixelFormat> for CaptureFormat
impl TryFrom<PixelFormat> for CaptureFormat
Source§type Error = CameraError
type Error = CameraError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PixelFormat
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnsafeUnpin for PixelFormat
impl UnwindSafe for PixelFormat
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