Crate mozjpeg_sys[][src]

Please read libjpeg manual for description of functions in this crate.

Re-exports

pub use J_COLOR_SPACE::*;
pub use J_BOOLEAN_PARAM::*;
pub use J_FLOAT_PARAM::*;
pub use J_INT_PARAM::*;
pub use JINT_COMPRESS_PROFILE_VALUE::*;
pub use J_DCT_METHOD::JDCT_ISLOW as JDCT_DEFAULT;
pub use J_DCT_METHOD::JDCT_IFAST as JDCT_FASTEST;

Structs

JHUFF_TBL
JQUANT_TBL
jpeg_common_struct

Routines that are to be used by both halves of the library are declared to receive a pointer to this structure. There are no actual instances of jpeg_common_struct, only of jpeg_compress_struct and jpeg_decompress_struct.

jpeg_component_info
jpeg_compress_struct
jpeg_decompress_struct
jpeg_destination_mgr
jpeg_error_mgr

Error handler object

jpeg_marker_struct
jpeg_memory_mgr
jpeg_progress_mgr
jpeg_scan_info
jpeg_source_mgr
jvirt_barray_control

This is an opaque type. Don’t assume size or alignment of this struct.

jvirt_sarray_control

This is an opaque type. Don’t assume size or alignment of this struct.

msg_parm_union

Enums

FILE
JINT_COMPRESS_PROFILE_VALUE
J_BOOLEAN_PARAM

These 32-bit GUIDs and the corresponding jpeg_*_get_*_param() jpeg_*_set_*_param() functions allow for extending the libjpeg API without breaking backward ABI compatibility. The actual parameters are stored in the opaque jpeg_comp_master and jpeg_decomp_master structs.

J_COLOR_SPACE
J_DCT_METHOD
J_DITHER_MODE
J_FLOAT_PARAM
J_INT_PARAM
c_void

Equivalent to C’s void type when used as a pointer.

jpeg_marker

Constants

DCTSIZE

The basic DCT block is 8x8 samples

DCTSIZE2

DCTSIZE²

JPEG_LIB_VERSION
JPOOL_IMAGE

lasts until done with image/datastream

JPOOL_PERMANENT

lasts until master record is destroyed

NUM_QUANT_TBLS

Quantization tables are numbered 0..3

Functions

jpeg_CreateCompress
jpeg_CreateDecompress
jpeg_abort_compress
jpeg_abort_decompress
jpeg_add_quant_table
jpeg_alloc_huff_table
jpeg_alloc_quant_table
jpeg_c_bool_param_supported
jpeg_c_float_param_supported
jpeg_c_get_bool_param
jpeg_c_get_float_param
jpeg_c_get_int_param
jpeg_c_int_param_supported
jpeg_c_set_bool_param
jpeg_c_set_float_param
jpeg_c_set_int_param
jpeg_calc_output_dimensions
jpeg_consume_input
jpeg_copy_critical_parameters
jpeg_create_compress
jpeg_create_decompress
jpeg_default_colorspace
jpeg_destroy_compress
jpeg_destroy_decompress
jpeg_finish_compress
jpeg_finish_decompress
jpeg_finish_output
jpeg_float_add_quant_table
jpeg_float_quality_scaling
jpeg_has_multiple_scans
jpeg_input_complete
jpeg_mem_dest
jpeg_mem_src
jpeg_new_colormapDeprecated
jpeg_quality_scaling
jpeg_read_coefficients
jpeg_read_header
jpeg_read_raw_data
jpeg_read_scanlines
jpeg_resync_to_restart
jpeg_save_markers
jpeg_set_colorspace
jpeg_set_defaults
jpeg_set_idct_method_selector
jpeg_set_linear_quality
jpeg_set_marker_processor
jpeg_set_quality
jpeg_simple_progression
jpeg_start_compress
jpeg_start_decompress
jpeg_start_output
jpeg_std_error
jpeg_stdio_dest
jpeg_stdio_src
jpeg_suppress_tables
jpeg_write_coefficients
jpeg_write_m_byte
jpeg_write_m_header
jpeg_write_marker
jpeg_write_raw_data
jpeg_write_scanlines
jpeg_write_tables

Type Definitions

DCTELEM

type for individual integer DCT coefficient

JBLOCK

one block of coefficients

JBLOCKARRAY
JBLOCKROW

pointer to one row of coefficient blocks

JCOEF
JDIMENSION
JSAMPARRAY

ptr to some rows (a 2-D sample array)

JSAMPARRAY_MUT
JSAMPIMAGE

a 3-D sample array: top index is color

JSAMPIMAGE_MUT
JSAMPLE
JSAMPROW

ptr to one image row of pixel samples.

JSAMPROW_MUT
boolean
c_int

Equivalent to C’s signed int (int) type.

c_long

Equivalent to C’s signed long (long) type.

c_uint

Equivalent to C’s unsigned int type.

c_ulong

Equivalent to C’s unsigned long type.

jpeg_marker_parser_method