Struct mozjpeg_sys::jpeg_compress_struct[][src]

#[repr(C)]
pub struct jpeg_compress_struct {
Show 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, // some fields omitted
}

Fields

common: jpeg_common_structdest: *mut jpeg_destination_mgrimage_width: JDIMENSION
Expand description

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

image_height: JDIMENSIONinput_components: c_intin_color_space: J_COLOR_SPACE
Expand description

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

input_gamma: f64
Expand description

image gamma of input image

data_precision: c_int
Expand description

bits of precision in image data

num_components: c_intjpeg_color_space: J_COLOR_SPACEcomp_info: *mut jpeg_component_info
Expand description

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]
Expand description

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_intscan_info: *const jpeg_scan_inforaw_data_in: boolean
Expand description

TRUE=caller supplies downsampled data

arith_code: booleanoptimize_coding: boolean
Expand description

TRUE=optimize entropy encoding parms

CCIR601_sampling: booleansmoothing_factor: c_intdct_method: J_DCT_METHODrestart_interval: c_uint
Expand description

MCUs per restart, or 0 for no restart

restart_in_rows: c_intwrite_JFIF_header: booleanJFIF_major_version: u8JFIF_minor_version: u8density_unit: u8X_density: u16Y_density: u16write_Adobe_marker: booleannext_scanline: JDIMENSIONmax_h_samp_factor: c_intmax_v_samp_factor: c_int

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.