pub struct EncoderConfig {
pub width: usize,
pub height: usize,
pub num_components: usize,
pub component_info: Vec<EncoderComponentInfo>,
pub quant_tables: Vec<[u16; 64]>,
}Expand description
Critical JPEG parameters extracted from decoded coefficients for re-encoding.
Matches the subset of jpeg_compress_struct fields that
jpeg_copy_critical_parameters() copies between a decompressor and compressor.
Fields§
§width: usizeImage width in pixels.
height: usizeImage height in pixels.
num_components: usizeNumber of components.
component_info: Vec<EncoderComponentInfo>Per-component sampling and quantization info.
quant_tables: Vec<[u16; 64]>Quantization tables (in zigzag order).
Trait Implementations§
Source§impl Clone for EncoderConfig
impl Clone for EncoderConfig
Source§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
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 moreAuto Trait Implementations§
impl Freeze for EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnsafeUnpin for EncoderConfig
impl UnwindSafe for EncoderConfig
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