pub struct JpegParameters {
pub quality: u32,
pub chroma_subsampling: ChromaSubsampling,
pub progressive: bool,
pub optimize: bool,
pub preserve_icc: bool,
}Expand description
Struct representing parameters for JPEG compression.
Fields:
quality: Quality of the JPEG image (0-100)chroma_subsampling: Chroma subsampling optionprogressive: Whether to use progressive JPEGoptimize: Whether to use lossless optimization for JPEGpreserve_icc: Always keep the original ICC data regardless of other options
Fields§
§quality: u32§chroma_subsampling: ChromaSubsampling§progressive: bool§optimize: bool§preserve_icc: boolTrait Implementations§
Source§impl Clone for JpegParameters
impl Clone for JpegParameters
impl Copy for JpegParameters
Auto Trait Implementations§
impl Forget for JpegParameters
impl Freeze for JpegParameters
impl RefUnwindSafe for JpegParameters
impl Send for JpegParameters
impl Sync for JpegParameters
impl Unpin for JpegParameters
impl UnsafeUnpin for JpegParameters
impl UnwindSafe for JpegParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more