pub struct ProgressiveDecoder<'a, R> { /* private fields */ }Expand description
Progressive decoder iterator
Yields increasingly refined image data as quality layers are decoded.
Implementations§
Source§impl<'a, R: Read + Seek> ProgressiveDecoder<'a, R>
impl<'a, R: Read + Seek> ProgressiveDecoder<'a, R>
Sourcepub fn current_layer(&self) -> u16
pub fn current_layer(&self) -> u16
Get current layer index
Sourcepub fn total_layers(&self) -> u16
pub fn total_layers(&self) -> u16
Get total number of layers
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if decoding is complete
Auto Trait Implementations§
impl<'a, R> Freeze for ProgressiveDecoder<'a, R>
impl<'a, R> RefUnwindSafe for ProgressiveDecoder<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for ProgressiveDecoder<'a, R>where
R: Send,
impl<'a, R> Sync for ProgressiveDecoder<'a, R>where
R: Sync,
impl<'a, R> Unpin for ProgressiveDecoder<'a, R>
impl<'a, R> UnsafeUnpin for ProgressiveDecoder<'a, R>
impl<'a, R> !UnwindSafe for ProgressiveDecoder<'a, R>
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