pub struct JpegEncodeOptions {
pub quality: u8,
pub subsampling: JpegSubsampling,
pub restart_interval: Option<u16>,
pub backend: JpegBackend,
}Expand description
Options controlling baseline JPEG encoding.
Fields§
§quality: u8JPEG quality in the conventional 1..=100 range.
subsampling: JpegSubsamplingOutput component sampling.
restart_interval: Option<u16>Optional restart interval in MCUs.
backend: JpegBackendRequested encoder backend.
Trait Implementations§
Source§impl Clone for JpegEncodeOptions
impl Clone for JpegEncodeOptions
Source§fn clone(&self) -> JpegEncodeOptions
fn clone(&self) -> JpegEncodeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JpegEncodeOptions
Source§impl Debug for JpegEncodeOptions
impl Debug for JpegEncodeOptions
Source§impl Default for JpegEncodeOptions
impl Default for JpegEncodeOptions
impl Eq for JpegEncodeOptions
Source§impl PartialEq for JpegEncodeOptions
impl PartialEq for JpegEncodeOptions
impl StructuralPartialEq for JpegEncodeOptions
Auto Trait Implementations§
impl Freeze for JpegEncodeOptions
impl RefUnwindSafe for JpegEncodeOptions
impl Send for JpegEncodeOptions
impl Sync for JpegEncodeOptions
impl Unpin for JpegEncodeOptions
impl UnsafeUnpin for JpegEncodeOptions
impl UnwindSafe for JpegEncodeOptions
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