Expand description
Please read libjpeg manual for description of functions in this crate.
Re-exports§
pub use J_DCT_METHOD::JDCT_IFAST as JDCT_FASTEST;pub use J_DCT_METHOD::JDCT_ISLOW as JDCT_DEFAULT;pub use JINT_COMPRESS_PROFILE_VALUE::*;pub use J_BOOLEAN_PARAM::*;pub use J_COLOR_SPACE::*;pub use J_FLOAT_PARAM::*;pub use J_INT_PARAM::*;
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 ofjpeg_compress_structandjpeg_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 opaquejpeg_comp_masterandjpeg_decomp_masterstructs. - J_
COLOR_ SPACE - J_
DCT_ METHOD - J_
DITHER_ MODE - J_
FLOAT_ PARAM - J_
INT_ PARAM - jpeg_
marker
Constants§
- DCTSIZE
- The basic DCT block is 8x8 samples
- DCTSIZ
E2 - DCTSIZE²
- JERR_
ARITH_ NOTIMPL - JERR_
BAD_ ALIGN_ TYPE - JERR_
BAD_ ALLOC_ CHUNK - JERR_
BAD_ BUFFER_ MODE - JERR_
BAD_ COMPONENT_ ID - JERR_
BAD_ CROP_ SPEC - JERR_
BAD_ DCTSIZE - JERR_
BAD_ DCT_ COEF - JERR_
BAD_ DROP_ SAMPLING - JERR_
BAD_ HUFF_ TABLE - JERR_
BAD_ IN_ COLORSPACE - JERR_
BAD_ J_ COLORSPACE - JERR_
BAD_ LENGTH - JERR_
BAD_ LIB_ VERSION - JERR_
BAD_ MCU_ SIZE - JERR_
BAD_ PARAM - JERR_
BAD_ PARAM_ VALUE - JERR_
BAD_ POOL_ ID - JERR_
BAD_ PRECISION - JERR_
BAD_ PROGRESSION - JERR_
BAD_ PROG_ SCRIPT - JERR_
BAD_ SAMPLING - JERR_
BAD_ SCAN_ SCRIPT - JERR_
BAD_ STATE - JERR_
BAD_ STRUCT_ SIZE - JERR_
BAD_ VIRTUAL_ ACCESS - JERR_
BUFFER_ SIZE - JERR_
CANT_ SUSPEND - JERR_
CCIR601_ NOTIMPL - JERR_
COMPONENT_ COUNT - JERR_
CONVERSION_ NOTIMPL - JERR_
DAC_ INDEX - JERR_
DAC_ VALUE - JERR_
DHT_ INDEX - JERR_
DQT_ INDEX - JERR_
EMPTY_ IMAGE - JERR_
EMS_ READ - JERR_
EMS_ WRITE - JERR_
EOI_ EXPECTED - JERR_
FILE_ READ - JERR_
FILE_ WRITE - JERR_
FRACT_ SAMPLE_ NOTIMPL - JERR_
HUFF_ CLEN_ OVERFLOW - JERR_
HUFF_ MISSING_ CODE - JERR_
IMAGE_ TOO_ BIG - JERR_
INPUT_ EMPTY - JERR_
INPUT_ EOF - JERR_
MISMATCHED_ QUANT_ TABLE - JERR_
MISSING_ DATA - JERR_
MODE_ CHANGE - JERR_
NOTIMPL - JERR_
NOT_ COMPILED - JERR_
NO_ BACKING_ STORE - JERR_
NO_ HUFF_ TABLE - JERR_
NO_ IMAGE - JERR_
NO_ QUANT_ TABLE - JERR_
NO_ SOI - JERR_
OUT_ OF_ MEMORY - JERR_
QUANT_ COMPONENTS - JERR_
QUANT_ FEW_ COLORS - JERR_
QUANT_ MANY_ COLORS - JERR_
SOF_ DUPLICATE - JERR_
SOF_ NO_ SOS - JERR_
SOF_ UNSUPPORTED - JERR_
SOI_ DUPLICATE - JERR_
SOS_ NO_ SOF - JERR_
TFILE_ CREATE - JERR_
TFILE_ READ - JERR_
TFILE_ SEEK - JERR_
TFILE_ WRITE - JERR_
TOO_ LITTLE_ DATA - JERR_
UNKNOWN_ MARKER - JERR_
UNSUPPORTED_ SUSPEND - JERR_
VIRTUAL_ BUG - JERR_
WIDTH_ OVERFLOW - JERR_
XMS_ READ - JERR_
XMS_ WRITE - JMSG_
COPYRIGHT - JMSG_
LASTMSGCODE - JMSG_
NOMESSAGE - JMSG_
VERSION - JPEG_
LIB_ VERSION - JPOOL_
IMAGE - lasts until done with image/datastream
- JPOOL_
PERMANENT - lasts until master record is destroyed
- JTRC_
16BIT_ TABLES - JTRC_
ADOBE - JTRC_
APP0 - JTRC_
APP14 - JTRC_
DAC - JTRC_
DHT - JTRC_
DQT - JTRC_
DRI - JTRC_
EMS_ CLOSE - JTRC_
EMS_ OPEN - JTRC_
EOI - JTRC_
HUFFBITS - JTRC_
JFIF - JTRC_
JFIF_ BADTHUMBNAILSIZE - JTRC_
JFIF_ EXTENSION - JTRC_
JFIF_ THUMBNAIL - JTRC_
MISC_ MARKER - JTRC_
PARMLESS_ MARKER - JTRC_
QUANTVALS - JTRC_
QUANT_ 3_ NCOLORS - JTRC_
QUANT_ NCOLORS - JTRC_
QUANT_ SELECTED - JTRC_
RECOVERY_ ACTION - JTRC_
RST - JTRC_
SMOOTH_ NOTIMPL - JTRC_
SOF - JTRC_
SOF_ COMPONENT - JTRC_
SOI - JTRC_
SOS - JTRC_
SOS_ COMPONENT - JTRC_
SOS_ PARAMS - JTRC_
TFILE_ CLOSE - JTRC_
TFILE_ OPEN - JTRC_
THUMB_ JPEG - JTRC_
THUMB_ PALETTE - JTRC_
THUMB_ RGB - JTRC_
UNKNOWN_ IDS - JTRC_
XMS_ CLOSE - JTRC_
XMS_ OPEN - JWRN_
ADOBE_ XFORM - JWRN_
BOGUS_ ICC - JWRN_
BOGUS_ PROGRESSION - JWRN_
EXTRANEOUS_ DATA - JWRN_
HIT_ MARKER - JWRN_
HUFF_ BAD_ CODE - JWRN_
JFIF_ MAJOR - JWRN_
JPEG_ EOF - JWRN_
MUST_ RESYNC - JWRN_
NOT_ SEQUENTIAL - JWRN_
TOO_ MUCH_ DATA - NUM_
QUANT_ TBLS - Quantization tables are numbered 0..3
Functions§
- jpeg_
Create ⚠Compress - jpeg_
Create ⚠Decompress - jpeg_
abort ⚠ - 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_
crop_ ⚠scanline - This function provides application programmers with the ability to decompress only a portion of each row in the JPEG image. It must be called after jpeg_start_decompress() and before any calls to jpeg_read_scanlines() or jpeg_skip_scanlines(). If the output image is scaled, then xoffset and width are relative to the scaled image dimensions. xoffset and width are passed by reference because xoffset must fall on an iMCU boundary. If it doesn’t, then it will be moved left to the nearest iMCU boundary, and width will be increased accordingly.
- jpeg_
default_ ⚠colorspace - jpeg_
destroy ⚠ - jpeg_
destroy_ ⚠compress - jpeg_
destroy_ ⚠decompress - jpeg_
finish_ ⚠compress - jpeg_
finish_ ⚠decompress - jpeg_
finish_ ⚠output - jpeg_
float_ ⚠quality_ scaling - jpeg_
has_ ⚠multiple_ scans - jpeg_
input_ ⚠complete - jpeg_
mem_ ⚠dest - jpeg_
mem_ ⚠src - jpeg_
new_ ⚠colormap Deprecated - 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_
skip_ ⚠scanlines - This function provides application programmers with the ability to skip over multiple rows in the JPEG image.
- 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 Aliases§
- 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 - J_
MESSAGE_ CODE - 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 inttype. - c_ulong
- Equivalent to C’s
unsigned longtype. - c_void
- Equivalent to C’s
voidtype when used as a pointer. - jpeg_
marker_ parser_ method