#[repr(C)]
pub struct jpeg_compress_struct {
Show 37 fields pub common: jpeg_common_struct, pub dest: *mut jpeg_destination_mgr, pub image_width: JDIMENSION, pub image_height: JDIMENSION, pub input_components: c_int, pub in_color_space: J_COLOR_SPACE, pub input_gamma: f64, pub data_precision: c_int, pub num_components: c_int, pub jpeg_color_space: J_COLOR_SPACE, pub comp_info: *mut jpeg_component_info, pub quant_tbl_ptrs: [*mut JQUANT_TBL; 4], pub dc_huff_tbl_ptrs: [*mut JHUFF_TBL; 4], pub ac_huff_tbl_ptrs: [*mut JHUFF_TBL; 4], pub arith_dc_L: [u8; 16], pub arith_dc_U: [u8; 16], pub arith_ac_K: [u8; 16], pub num_scans: c_int, pub scan_info: *const jpeg_scan_info, pub raw_data_in: boolean, pub arith_code: boolean, pub optimize_coding: boolean, pub CCIR601_sampling: boolean, pub smoothing_factor: c_int, pub dct_method: J_DCT_METHOD, pub restart_interval: c_uint, pub restart_in_rows: c_int, pub write_JFIF_header: boolean, pub JFIF_major_version: u8, pub JFIF_minor_version: u8, pub density_unit: u8, pub X_density: u16, pub Y_density: u16, pub write_Adobe_marker: boolean, pub next_scanline: JDIMENSION, pub max_h_samp_factor: c_int, pub max_v_samp_factor: c_int, /* private fields */
}

Fields§

§common: jpeg_common_struct§dest: *mut jpeg_destination_mgr§image_width: JDIMENSION

Description of source image — these fields must be filled in by outer application before starting compression.

§image_height: JDIMENSION§input_components: c_int§in_color_space: J_COLOR_SPACE

in_color_space must be correct before you can even call jpeg_set_defaults().

§input_gamma: f64

image gamma of input image

§data_precision: c_int

bits of precision in image data

§num_components: c_int§jpeg_color_space: J_COLOR_SPACE§comp_info: *mut jpeg_component_info

comp_info[i] describes component that appears i’th in SOF

§quant_tbl_ptrs: [*mut JQUANT_TBL; 4]§dc_huff_tbl_ptrs: [*mut JHUFF_TBL; 4]

ptrs to coefficient quantization tables, or NULL if not defined, and corresponding scale factors (percentage, initialized 100).

§ac_huff_tbl_ptrs: [*mut JHUFF_TBL; 4]§arith_dc_L: [u8; 16]§arith_dc_U: [u8; 16]§arith_ac_K: [u8; 16]§num_scans: c_int§scan_info: *const jpeg_scan_info§raw_data_in: boolean

TRUE=caller supplies downsampled data

§arith_code: boolean§optimize_coding: boolean

TRUE=optimize entropy encoding parms

§CCIR601_sampling: boolean§smoothing_factor: c_int§dct_method: J_DCT_METHOD§restart_interval: c_uint

MCUs per restart, or 0 for no restart

§restart_in_rows: c_int§write_JFIF_header: boolean§JFIF_major_version: u8§JFIF_minor_version: u8§density_unit: u8§X_density: u16§Y_density: u16§write_Adobe_marker: boolean§next_scanline: JDIMENSION§max_h_samp_factor: c_int§max_v_samp_factor: c_int

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.