pub struct OlympusParams {Show 14 fields
pub extra_bits: u32,
pub grad_shift: u32,
pub edge_pred: i32,
pub low_bits: u32,
pub smooth_shift: u32,
pub small_shift: u32,
pub run_switch: i32,
pub run_offset: i32,
pub run_threshold: i32,
pub base_offset: i32,
pub base_threshold: i32,
pub max_wbits: i32,
pub max_high: u32,
pub header_len: u32,
}Expand description
Coder parameters (makernote ImageProcessing tags 0x640..0x653).
Fields§
§extra_bits: u320x640: extra literal low bits per sample (value is shifted left by this).
grad_shift: u320x641: log2 of the gradient threshold of the predictor.
edge_pred: i320x642: prediction used outside the image (first rows/columns).
low_bits: u320x643: literal low bits coded before the adaptive part (0, 1 or 2).
smooth_shift: u320x644: smoothing shift of the residual accumulator (15 disables it).
small_shift: u320x645: codes up to 1 << small_shift count as “small” for the run counter.
run_switch: i320x646: run length of small codes that switches to the fine width model.
run_offset: i320x647/0x648: width model after a run (offset, magnitude threshold).
run_threshold: i32§base_offset: i320x649/0x650: default width model (offset, magnitude threshold).
base_threshold: i32§max_wbits: i320x651: maximum adaptive width.
max_high: u320x652: unary escape length.
header_len: u320x653: length of the big-endian stream header (value 1) preceding two zero bytes.
Implementations§
Source§impl OlympusParams
impl OlympusParams
Build from the 14 tag values 0x640..=0x653 (None = default).
Trait Implementations§
Source§impl Clone for OlympusParams
impl Clone for OlympusParams
impl Copy for OlympusParams
Source§impl Debug for OlympusParams
impl Debug for OlympusParams
Source§impl Default for OlympusParams
impl Default for OlympusParams
impl Eq for OlympusParams
Source§impl PartialEq for OlympusParams
impl PartialEq for OlympusParams
impl StructuralPartialEq for OlympusParams
Auto Trait Implementations§
impl Forget for OlympusParams
impl Freeze for OlympusParams
impl RefUnwindSafe for OlympusParams
impl Send for OlympusParams
impl Sync for OlympusParams
impl Unpin for OlympusParams
impl UnsafeUnpin for OlympusParams
impl UnwindSafe for OlympusParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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