pub struct EncodeConfig {
pub width: u16,
pub height: u16,
pub color_space: ColorSpace,
pub subsampling: ChromaSubsampling,
pub quality: u8,
}Expand description
Encode parameters.
Fields§
§width: u16Image width in pixels. Must be a multiple of the MCU width.
height: u16Image height in pixels. Must be a multiple of the MCU height.
color_space: ColorSpaceColor space.
subsampling: ChromaSubsamplingChroma subsampling. Ignored for Grayscale.
quality: u8Quality 1..=100. 50 corresponds to the unmodified Annex K tables.
Auto Trait Implementations§
impl Freeze for EncodeConfig
impl RefUnwindSafe for EncodeConfig
impl Send for EncodeConfig
impl Sync for EncodeConfig
impl Unpin for EncodeConfig
impl UnsafeUnpin for EncodeConfig
impl UnwindSafe for EncodeConfig
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