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: u32
width in pixels
height: u32
height in pixels
fourcc: FourCC
pixelformat code
field_order: FieldOrder
field order for interlacing
stride: u32
bytes per line
size: u32
maximum number of bytes required to store an image
flags: Flags
flags set by the application or driver
colorspace: Colorspace
supplements the pixelformat (fourcc) information
quantization: Quantization
the way colors are mapped
transfer: TransferFunction
the 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)