Enum png::decoder::InterlaceInfo
source · pub enum InterlaceInfo {
Null,
Adam7 {
pass: u8,
line: u32,
width: u32,
},
}
Expand description
PNG (2003) specifies two interlace modes, but reserves future extensions.
Variants§
Null
the null method means no interlacing
Adam7
Adam7 derives its name from doing 7 passes over the image, only decoding a subset of all pixels in each pass. The following table shows pictorially what parts of each 8x8 area of the image is found in each pass:
1 6 4 6 2 6 4 6 7 7 7 7 7 7 7 7 5 6 5 6 5 6 5 6 7 7 7 7 7 7 7 7 3 6 4 6 3 6 4 6 7 7 7 7 7 7 7 7 5 6 5 6 5 6 5 6 7 7 7 7 7 7 7 7
Trait Implementations§
source§impl Clone for InterlaceInfo
impl Clone for InterlaceInfo
source§fn clone(&self) -> InterlaceInfo
fn clone(&self) -> InterlaceInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InterlaceInfo
impl Debug for InterlaceInfo
impl Copy for InterlaceInfo
Auto Trait Implementations§
impl RefUnwindSafe for InterlaceInfo
impl Send for InterlaceInfo
impl Sync for InterlaceInfo
impl Unpin for InterlaceInfo
impl UnwindSafe for InterlaceInfo
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