#[non_exhaustive]pub enum QuantTableConfig {
Perceptual,
CustomBase {
luma: [f32; 64],
cb: [f32; 64],
cr: [f32; 64],
},
Exact {
luma: [u16; 64],
cb: [u16; 64],
cr: [u16; 64],
},
}Expand description
Quantization table configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Perceptual
Jpegli’s perceptual tables, scaled by Quality. (default)
CustomBase
Custom base matrices, scaled by Quality. Provide f32 matrices (typically 1.0–255.0 range). These are multiplied by the quality-derived scale factor.
Fields
Exact
Exact quantization tables. Quality is ignored. Values should be in range 1-255 for baseline JPEG compatibility.
Trait Implementations§
Source§impl Clone for QuantTableConfig
impl Clone for QuantTableConfig
Source§fn clone(&self) -> QuantTableConfig
fn clone(&self) -> QuantTableConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuantTableConfig
impl Debug for QuantTableConfig
Source§impl Default for QuantTableConfig
impl Default for QuantTableConfig
Source§fn default() -> QuantTableConfig
fn default() -> QuantTableConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QuantTableConfig
impl RefUnwindSafe for QuantTableConfig
impl Send for QuantTableConfig
impl Sync for QuantTableConfig
impl Unpin for QuantTableConfig
impl UnwindSafe for QuantTableConfig
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