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§
Source§impl Clone for QuantizationTableType
impl Clone for QuantizationTableType
Source§fn clone(&self) -> QuantizationTableType
fn clone(&self) -> QuantizationTableType
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for QuantizationTableType
impl RefUnwindSafe for QuantizationTableType
impl Send for QuantizationTableType
impl Sync for QuantizationTableType
impl Unpin for QuantizationTableType
impl UnwindSafe for QuantizationTableType
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