pub enum QuantizationTableType {
Default,
Flat,
CustomMsSsim,
CustomPsnrHvs,
ImageMagick,
KleinSilversteinCarney,
DentalXRays,
VisualDetectionModel,
ImprovedDetectionModel,
Custom(Box<[u16; 64]>),
}
Expand description
Quantization table used for encoding
Tables are based on tables from mozjpeg
Variants
Default
Sample quantization tables given in Annex K (Clause K.1) of Recommendation ITU-T T.81 (1992) | ISO/IEC 10918-1:1994.
Flat
Flat
CustomMsSsim
Custom, tuned for MS-SSIM
CustomPsnrHvs
Custom, tuned for PSNR-HVS
ImageMagick
ImageMagick table by N. Robidoux
From http://www.imagemagick.org/discourse-server/viewtopic.php?f=22&t=20333&p=98008#p98008
KleinSilversteinCarney
Relevance of human vision to JPEG-DCT compression (1992) Klein, Silverstein and Carney.
DentalXRays
DCTune perceptual optimization of compressed dental X-Rays (1997) Watson, Taylor, Borthwick
VisualDetectionModel
A visual detection model for DCT coefficient quantization (12/9/93) Ahumada, Watson, Peterson
ImprovedDetectionModel
An improved detection model for DCT coefficient quantization (1993) Peterson, Ahumada and Watson
Custom(Box<[u16; 64]>)
A user supplied quantization table
Trait Implementations
sourceimpl Clone for QuantizationTableType
impl Clone for QuantizationTableType
sourcefn clone(&self) -> QuantizationTableType
fn clone(&self) -> QuantizationTableType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for QuantizationTableType
impl Send for QuantizationTableType
impl Sync for QuantizationTableType
impl Unpin for QuantizationTableType
impl UnwindSafe for QuantizationTableType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more