pub struct EncodeConfig {
pub width: u16,
pub height: u16,
pub quality: u8,
pub input_format: PixelFormat,
pub subsampling: Subsampling,
}Available on crate feature
unstable only.Expand description
JPEG encoding settings.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Fields§
§width: u16Image width in pixels, from 1 to 16383.
height: u16Image height in pixels, from 1 to 16383.
quality: u8Compression quality, from 1 to 100.
input_format: PixelFormatPixel layout of the input image.
subsampling: SubsamplingChroma subsampling of the encoded JPEG.
Trait Implementations§
Source§impl Clone for EncodeConfig
impl Clone for EncodeConfig
impl Copy for EncodeConfig
Source§impl Debug for EncodeConfig
impl Debug for EncodeConfig
impl Eq for EncodeConfig
Source§impl Hash for EncodeConfig
impl Hash for EncodeConfig
Source§impl PartialEq for EncodeConfig
impl PartialEq for EncodeConfig
impl StructuralPartialEq for EncodeConfig
Auto Trait Implementations§
impl Forget for EncodeConfig
impl Freeze for EncodeConfig
impl Move 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)