pub struct Config {Show 17 fields
pub nx: u16,
pub ny: u16,
pub nz: u16,
pub dynamic_range: u8,
pub signed_samples: bool,
pub p: u8,
pub mode: PredictionMode,
pub local_sum_type: LocalSumType,
pub omega: u8,
pub register_size: u8,
pub t_inc: u16,
pub v_min: i8,
pub v_max: i8,
pub u_max: u8,
pub gamma_0: u8,
pub gamma_star: u8,
pub accum_init_k: Option<u8>,
}Expand description
Compressor configuration.
Fields§
§nx: u16Image width (number of columns).
ny: u16Image height (number of rows).
nz: u16Number of spectral bands.
dynamic_range: u8Dynamic range in bits (2..=16).
signed_samples: boolWhether samples are signed.
p: u8Number of prediction bands (0..=15).
mode: PredictionModePrediction mode.
local_sum_type: LocalSumTypeLocal sum type.
omega: u8Weight component resolution (4..=19).
register_size: u8Register size R (max{32, D+Omega+2} .. 64).
t_inc: u16Weight update scaling exponent change interval (power of 2 in range 2^4..=2^11).
v_min: i8Weight update initial parameter (-6..=9).
v_max: i8Weight update final parameter (-6..=9).
u_max: u8Unary length limit for entropy coder (8..=32).
gamma_0: u8Initial count exponent (1..=8).
gamma_star: u8Rescaling counter size (max{4, gamma_0+1}..=11).
accum_init_k: Option<u8>Accumulator initialization constant (optional). If None, per-band k’’_z values default to 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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