pub enum DctMethod {
Accurate,
Fast,
}Expand description
IDCT accuracy/speed selection for the software JPEG decoder.
Accurate is the default and the kernel every published
benchmark quotes: the islow-class Loeffler IDCT, bit-comparable to
libjpeg-turbo’s default. Fast opts into the AAN
ifast-class kernel — roughly an eighth of the multiplies, at a small,
bounded pixel accuracy cost (and the documented ifast degeneration at
very high quality factors). Fast is advisory: paths without a fast kernel
(non-NEON tiers, hardware V4L2/nvJPEG decoders, PNG) use their normal
accurate path.
Variants§
Trait Implementations§
impl Copy for DctMethod
impl Eq for DctMethod
impl StructuralPartialEq for DctMethod
Auto Trait Implementations§
impl Freeze for DctMethod
impl RefUnwindSafe for DctMethod
impl Send for DctMethod
impl Sync for DctMethod
impl Unpin for DctMethod
impl UnsafeUnpin for DctMethod
impl UnwindSafe for DctMethod
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