pub enum PixelFormat {
Mjpeg,
Yuy2,
Nv12,
I420,
H264,
FrameBased {
guid: [u8; 16],
bits_per_pixel: u8,
variable_size: bool,
},
}Expand description
The pixel format of a Format.
Variants§
Mjpeg
Motion JPEG: each frame is a complete JPEG image.
Yuy2
Uncompressed packed YUV 4:2:2, 16 bits per pixel (Y0 U Y1 V).
Nv12
Uncompressed planar YUV 4:2:0, 12 bits per pixel: the Y plane, then interleaved U V.
I420
Uncompressed planar YUV 4:2:0, 12 bits per pixel: Y, then U, then V plane.
H264
H.264 / AVC elementary stream using VS_FORMAT_FRAME_BASED (H264 GUID).
FrameBased
Arbitrary frame-based payload format using VS_FORMAT_FRAME_BASED.
Trait Implementations§
Source§impl Clone for PixelFormat
impl Clone for PixelFormat
impl Copy for PixelFormat
Source§impl Debug for PixelFormat
impl Debug for PixelFormat
impl Eq for PixelFormat
Source§impl Format for PixelFormat
impl Format for PixelFormat
Source§impl PartialEq for PixelFormat
impl PartialEq for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations§
impl Forget for PixelFormat
impl Freeze for PixelFormat
impl Move 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