pub struct Format {
pub width: u32,
pub height: u32,
pub fourcc: FourCC,
pub field_order: FieldOrder,
pub stride: u32,
pub size: u32,
pub flags: Flags,
pub colorspace: Colorspace,
pub quantization: Quantization,
pub transfer: TransferFunction,
}Expand description
Streaming format (single-planar)
Fields§
§width: u32width in pixels
height: u32height in pixels
fourcc: FourCCpixelformat code
field_order: FieldOrderfield order for interlacing
stride: u32bytes per line
size: u32maximum number of bytes required to store an image
flags: Flagsflags set by the application or driver
colorspace: Colorspacesupplements the pixelformat (fourcc) information
quantization: Quantizationthe way colors are mapped
transfer: TransferFunctionthe transfer function for the colorspace
Implementations§
Trait Implementations§
impl Copy for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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