enum PrevRow {
None,
InPlace(usize),
Scratch(Vec<u8>),
}Expand description
An already unfilter-ed, previous row.
The data excludes the RowFilter byte - it only includes the actual pixel data.
Variants§
None
No unfiltered row.
None is the value of UnfilteringBuffer::prev_row before any row has
been unfiltered (or at the start of a new interlace pass).
InPlace(usize)
Offset of UnfilteringBuffer::data_stream where the unfiltered row
starts.
UnfilteringBuffer::InPlace(_) is used by unfilter_curr_row_in_place
when setting UnfilteringBuffer::prev_row.
Scratch(Vec<u8>)
Separate scratch buffer containing the unfiltered row data.
UnfilteringBuffer::Scratch(_) is used by
unfilter_curr_row_using_scratch_buffer
when setting UnfilteringBuffer::prev_row.
Implementations§
Auto Trait Implementations§
impl Freeze for PrevRow
impl RefUnwindSafe for PrevRow
impl Send for PrevRow
impl Sync for PrevRow
impl Unpin for PrevRow
impl UnsafeUnpin for PrevRow
impl UnwindSafe for PrevRow
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