pub struct PredictiveParams<'t> {
pub width: usize,
pub rows: usize,
pub tables: &'t [(usize, &'t DirectHuff)],
pub vpred: [[u16; 2]; 2],
}Expand description
Parameters of a predictive Huffman image.
Fields§
§width: usize§rows: usizeRows to decode (rows beyond are left untouched).
tables: &'t [(usize, &'t DirectHuff)]Tables and the first row each applies to (ascending; first must start at 0).
vpred: [[u16; 2]; 2]Initial vertical predictors (vpred[row & 1][col] for the first two columns).
Auto Trait Implementations§
impl<'t> Forget for PredictiveParams<'t>
impl<'t> Freeze for PredictiveParams<'t>
impl<'t> RefUnwindSafe for PredictiveParams<'t>
impl<'t> Send for PredictiveParams<'t>
impl<'t> Sync for PredictiveParams<'t>
impl<'t> Unpin for PredictiveParams<'t>
impl<'t> UnsafeUnpin for PredictiveParams<'t>
impl<'t> UnwindSafe for PredictiveParams<'t>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more