#[derive(Debug, Clone, Copy)]
pub struct J2kQuantizeSubbandJob<'a> {
pub coefficients: &'a [f32],
pub step_exponent: u16,
pub step_mantissa: u16,
pub range_bits: u8,
pub reversible: bool,
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct IrreversibleQuantizationSubbandScales {
pub low_low: f32,
pub high_low: f32,
pub low_high: f32,
pub high_high: f32,
}
impl Default for IrreversibleQuantizationSubbandScales {
fn default() -> Self {
Self {
low_low: 1.0,
high_low: 1.0,
low_high: 1.0,
high_high: 1.0,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct IrreversibleQuantizationStep {
pub exponent: u8,
pub mantissa: u16,
}