pub struct Frame {
pub width: u32,
pub height: u32,
pub channels: Channels,
pub depth: Depth,
pub little_endian: bool,
}Expand description
Everything a codec needs to know about a rectangle of raw samples.
Encode and decode take the same descriptor, and that symmetry is the point: a round trip whose two halves disagree about any one field does not fail loudly, it silently produces wrong pixels. One value passed to both sides cannot disagree.
Fields§
§width: u32§height: u32§channels: Channels§depth: Depth§little_endian: boolByte order of the samples as stored in the file.
Implementations§
Trait Implementations§
impl Copy for Frame
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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