Struct png::decoder::SubframeInfo
source · struct SubframeInfo {
width: u32,
height: u32,
rowlen: usize,
current_interlace_info: Option<InterlaceInfo>,
interlace_info_iter: InterlaceInfoIter,
consumed_and_flushed: bool,
}
Expand description
The subframe specific information.
In APNG the frames are constructed by combining previous frame and a new subframe (through a
combination of dispose_op
and overlay_op
). These sub frames specify individual dimension
information and reuse the global interlace options. This struct encapsulates the state of where
in a particular IDAT-frame or subframe we are.
Fields§
§width: u32
§height: u32
§rowlen: usize
§current_interlace_info: Option<InterlaceInfo>
§interlace_info_iter: InterlaceInfoIter
§consumed_and_flushed: bool
Implementations§
source§impl SubframeInfo
impl SubframeInfo
fn not_yet_init() -> Self
fn new(info: &Info<'_>) -> Self
Auto Trait Implementations§
impl Freeze for SubframeInfo
impl RefUnwindSafe for SubframeInfo
impl Send for SubframeInfo
impl Sync for SubframeInfo
impl Unpin for SubframeInfo
impl UnwindSafe for SubframeInfo
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