Enum png::InterlaceInfo
source · pub enum InterlaceInfo {
Null(NullInfo),
Adam7(Adam7Info),
}
Expand description
Describes which interlacing algorithm applies to a decoded row.
PNG (2003) specifies two interlace modes, but reserves future extensions.
See also Reader.next_interlaced_row.
Variants§
Null(NullInfo)
The null
method means no interlacing.
Adam7(Adam7Info)
The Adam7
algorithm 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 Freeze for InterlaceInfo
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)