#[non_exhaustive]pub enum CapturePixelFormat {
    Bgra8888,
    Argb2101010,
    V420,
    F420,
}Expand description
The pixel format of returned video frames
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bgra8888
One plane, 4 channels, 8 bits per channel: { b: u8, g: u8, r: u8, a: u8 }, full range: [0, 255]
Argb2101010
One plane, 4 channels, 10 bits per color channel, two bits for alpha: { a: u2, r: u10, g: u10, b: u10 }, rgb range: [0, 1023], alpha range: [0, 3]
V420
Two planes:
- 1 channel, luminance (Y), 8 bits per pixel, video range: [16, 240]
 - 2 channels, chrominance (CbCr) 8 bits bits per channel per two pixels vertically, range: [0, 255]
 
F420
Two planes:
- 1 channel, luminance (Y), 8 bits per pixel, full range: [0, 255]
 - 2 channels, chrominance (CbCr) 8 bits bits per channel per two pixels vertically, range: [0, 255]
 
Trait Implementations§
source§impl Clone for CapturePixelFormat
 
impl Clone for CapturePixelFormat
source§fn clone(&self) -> CapturePixelFormat
 
fn clone(&self) -> CapturePixelFormat
Returns a copy 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 CapturePixelFormat
 
impl Debug for CapturePixelFormat
source§impl PartialEq for CapturePixelFormat
 
impl PartialEq for CapturePixelFormat
source§fn eq(&self, other: &CapturePixelFormat) -> bool
 
fn eq(&self, other: &CapturePixelFormat) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for CapturePixelFormat
impl Eq for CapturePixelFormat
impl StructuralPartialEq for CapturePixelFormat
Auto Trait Implementations§
impl Freeze for CapturePixelFormat
impl RefUnwindSafe for CapturePixelFormat
impl Send for CapturePixelFormat
impl Sync for CapturePixelFormat
impl Unpin for CapturePixelFormat
impl UnwindSafe for CapturePixelFormat
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
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.