#[non_exhaustive]pub enum PixelFormat {
Nv12,
I420,
Bgra8,
Rgba8,
Yuyv,
}Expand description
Video pixel layout (planar / packed). Extend as backends need.
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.
Nv12
8-bit NV12 (YUV 4:2:0 semi-planar) — common HW encode input.
I420
8-bit I420 / YUV420P.
Bgra8
8-bit BGRA packed.
Rgba8
8-bit RGBA packed.
Yuyv
8-bit YUYV / YUY2 packed (YUV 4:2:2, Y0 U0 Y1 V0 byte order) — the
most common raw format real V4L2 UVC webcams expose natively. Added
for mediaway-device-linux’s V4L2 camera backend; see that crate’s
adr/0002-v4l2-camera-capture.md.
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 Hash for PixelFormat
impl Hash for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl StructuralPartialEq for PixelFormat
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