doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions
jpeglib.h File Reference
#include "../jpeg-6/jconfig.h"
#include "../jpeg-6/jmorecfg.h"
#include "../jpeg-6/jpegint.h"
#include "../jpeg-6/jerror.h"

Go to the source code of this file.

Classes

struct  JQUANT_TBL
 
struct  JHUFF_TBL
 
struct  jpeg_component_info
 
struct  jpeg_scan_info
 
struct  jpeg_common_struct
 
struct  jpeg_compress_struct
 
struct  jpeg_decompress_struct
 
struct  jpeg_error_mgr
 
struct  jpeg_progress_mgr
 
struct  jpeg_destination_mgr
 
struct  jpeg_source_mgr
 
struct  jpeg_memory_mgr
 

Macros

#define JPEG_LIB_VERSION   60 /* Version 6 */
 
#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */
 
#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */
 
#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */
 
#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */
 
#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */
 
#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */
 
#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */
 
#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */
 
#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */
 
#define JMETHOD(type, methodname, arglist)   type (*methodname) arglist
 
#define jpeg_common_fields
 
#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */
 
#define JMSG_STR_PARM_MAX   80
 
#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */
 
#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */
 
#define JPOOL_NUMPOOLS   2
 
#define JPP(arglist)   arglist
 
#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */
 
#define JPEG_HEADER_OK   1 /* Found valid image datastream */
 
#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */
 
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
 
#define JPEG_REACHED_EOI   2 /* Reached end of image */
 
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
 
#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
 
#define JPEG_RST0   0xD0 /* RST0 marker code */
 
#define JPEG_EOI   0xD9 /* EOI marker code */
 
#define JPEG_APP0   0xE0 /* APP0 marker code */
 
#define JPEG_COM   0xFE /* COM marker code */
 

Typedefs

typedef unsigned char boolean
 
typedef JSAMPLE FARJSAMPROW
 
typedef JSAMPROWJSAMPARRAY
 
typedef JSAMPARRAYJSAMPIMAGE
 
typedef JCOEF JBLOCK [DCTSIZE2]
 
typedef JBLOCK FARJBLOCKROW
 
typedef JBLOCKROWJBLOCKARRAY
 
typedef JBLOCKARRAYJBLOCKIMAGE
 
typedef JCOEF FARJCOEFPTR
 
typedef struct jpeg_common_structj_common_ptr
 
typedef struct
jpeg_compress_struct
j_compress_ptr
 
typedef struct
jpeg_decompress_struct
j_decompress_ptr
 
typedef struct
jvirt_sarray_control
jvirt_sarray_ptr
 
typedef struct
jvirt_barray_control
jvirt_barray_ptr
 

Enumerations

enum  J_COLOR_SPACE {
  JCS_UNKNOWN, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr,
  JCS_CMYK, JCS_YCCK
}
 
enum  J_DCT_METHOD { JDCT_ISLOW, JDCT_IFAST, JDCT_FLOAT }
 
enum  J_DITHER_MODE { JDITHER_NONE, JDITHER_ORDERED, JDITHER_FS }
 

Functions

typedef JMETHOD (boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
 
EXTERN struct jpeg_error_mgr
*jpeg_std_error 
JPP ((struct jpeg_error_mgr *err))
 
EXTERN void jpeg_create_compress JPP ((j_compress_ptr cinfo))
 
EXTERN void jpeg_create_decompress JPP ((j_decompress_ptr cinfo))
 
EXTERN void jpeg_stdio_dest JPP ((j_compress_ptr cinfo, FILE *outfile))
 
EXTERN void jpeg_stdio_src JPP ((j_decompress_ptr cinfo, unsigned char *infile))
 
EXTERN void jpeg_set_colorspace JPP ((j_compress_ptr cinfo, J_COLOR_SPACE colorspace))
 
EXTERN void jpeg_set_quality JPP ((j_compress_ptr cinfo, int quality, boolean force_baseline))
 
EXTERN void jpeg_set_linear_quality JPP ((j_compress_ptr cinfo, int scale_factor, boolean force_baseline))
 
EXTERN void jpeg_add_quant_table JPP ((j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline))
 
EXTERN int jpeg_quality_scaling JPP ((int quality))
 
EXTERN void jpeg_suppress_tables JPP ((j_compress_ptr cinfo, boolean suppress))
 
EXTERN JQUANT_TBL
*jpeg_alloc_quant_table 
JPP ((j_common_ptr cinfo))
 
EXTERN void jpeg_start_compress JPP ((j_compress_ptr cinfo, boolean write_all_tables))
 
EXTERN JDIMENSION
jpeg_write_scanlines 
JPP ((j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines))
 
EXTERN JDIMENSION
jpeg_write_raw_data 
JPP ((j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines))
 
EXTERN void jpeg_write_marker JPP ((j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen))
 
EXTERN int jpeg_read_header JPP ((j_decompress_ptr cinfo, boolean require_image))
 
EXTERN JDIMENSION
jpeg_read_scanlines 
JPP ((j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines))
 
EXTERN JDIMENSION
jpeg_read_raw_data 
JPP ((j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines))
 
EXTERN boolean jpeg_start_output JPP ((j_decompress_ptr cinfo, int scan_number))
 
EXTERN void
jpeg_set_marker_processor 
JPP ((j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine))
 
EXTERN void jpeg_write_coefficients JPP ((j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays))
 
EXTERN void
jpeg_copy_critical_parameters 
JPP ((j_decompress_ptr srcinfo, j_compress_ptr dstinfo))
 
EXTERN boolean
jpeg_resync_to_restart 
JPP ((j_decompress_ptr cinfo, int desired))
 

Macro Definition Documentation

#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */

Definition at line 56 of file jpeglib.h.

#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */

Definition at line 58 of file jpeglib.h.

#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */

Definition at line 42 of file jpeglib.h.

#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */

Definition at line 43 of file jpeglib.h.

#define JMETHOD (   type,
  methodname,
  arglist 
)    type (*methodname) arglist

Definition at line 68 of file jpeglib.h.

#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */

Definition at line 639 of file jpeglib.h.

#define JMSG_STR_PARM_MAX   80

Definition at line 647 of file jpeglib.h.

#define JPEG_APP0   0xE0 /* APP0 marker code */

Definition at line 1002 of file jpeglib.h.

#define JPEG_COM   0xFE /* COM marker code */

Definition at line 1003 of file jpeglib.h.

#define jpeg_common_fields
Value:
struct jpeg_error_mgr * err; /* Error handler module */\
struct jpeg_memory_mgr * mem; /* Memory manager module */\
struct jpeg_progress_mgr * progress; /* Progress monitor, or NULL if none */\
boolean is_decompressor; /* so common code can tell which is which */\
int global_state /* for checking call sequence validity */
case const int
Definition: Callbacks.cpp:52
unsigned char boolean
Definition: jpeglib.h:16
static WindowRef ValidModeCallbackProc inCallback OSStatus err

Definition at line 241 of file jpeglib.h.

#define JPEG_EOI   0xD9 /* EOI marker code */

Definition at line 1001 of file jpeglib.h.

#define JPEG_HEADER_OK   1 /* Found valid image datastream */

Definition at line 926 of file jpeglib.h.

#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */

Definition at line 927 of file jpeglib.h.

#define JPEG_LIB_VERSION   60 /* Version 6 */

Definition at line 34 of file jpeglib.h.

#define JPEG_REACHED_EOI   2 /* Reached end of image */

Definition at line 957 of file jpeglib.h.

#define JPEG_REACHED_SOS   1 /* Reached start of new scan */

Definition at line 956 of file jpeglib.h.

#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */

Definition at line 958 of file jpeglib.h.

#define JPEG_RST0   0xD0 /* RST0 marker code */

Definition at line 1000 of file jpeglib.h.

#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */

Definition at line 959 of file jpeglib.h.

#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */

Definition at line 925 of file jpeglib.h.

#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */

Definition at line 736 of file jpeglib.h.

#define JPOOL_NUMPOOLS   2

Definition at line 737 of file jpeglib.h.

#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */

Definition at line 735 of file jpeglib.h.

#define JPP (   arglist)    arglist

Definition at line 802 of file jpeglib.h.

#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */

Definition at line 47 of file jpeglib.h.

#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */

Definition at line 48 of file jpeglib.h.

#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */

Definition at line 46 of file jpeglib.h.

#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */

Definition at line 45 of file jpeglib.h.

#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */

Definition at line 44 of file jpeglib.h.

Typedef Documentation

typedef unsigned char boolean

Definition at line 16 of file jpeglib.h.

Definition at line 260 of file jpeglib.h.

Definition at line 261 of file jpeglib.h.

Definition at line 262 of file jpeglib.h.

typedef JCOEF JBLOCK[DCTSIZE2]

Definition at line 83 of file jpeglib.h.

Definition at line 85 of file jpeglib.h.

Definition at line 86 of file jpeglib.h.

typedef JBLOCK FAR* JBLOCKROW

Definition at line 84 of file jpeglib.h.

typedef JCOEF FAR* JCOEFPTR

Definition at line 88 of file jpeglib.h.

typedef JSAMPROW* JSAMPARRAY

Definition at line 80 of file jpeglib.h.

Definition at line 81 of file jpeglib.h.

typedef JSAMPLE FAR* JSAMPROW

Definition at line 79 of file jpeglib.h.

Definition at line 740 of file jpeglib.h.

Definition at line 739 of file jpeglib.h.

Enumeration Type Documentation

Enumerator
JCS_UNKNOWN 
JCS_GRAYSCALE 
JCS_RGB 
JCS_YCbCr 
JCS_CMYK 
JCS_YCCK 

Definition at line 206 of file jpeglib.h.

Enumerator
JDCT_ISLOW 
JDCT_IFAST 
JDCT_FLOAT 

Definition at line 217 of file jpeglib.h.

Enumerator
JDITHER_NONE 
JDITHER_ORDERED 
JDITHER_FS 

Definition at line 232 of file jpeglib.h.

Function Documentation

typedef JMETHOD ( boolean  ,
jpeg_marker_parser_method  ,
(j_decompress_ptr cinfo)   
)
EXTERN struct jpeg_error_mgr* jpeg_std_error JPP ( (struct jpeg_error_mgr *err )
EXTERN void jpeg_stdio_dest JPP ( (j_compress_ptr cinfo, FILE *outfile)  )
EXTERN void jpeg_stdio_src JPP ( (j_decompress_ptr cinfo, unsigned char *infile)  )
EXTERN void jpeg_set_quality JPP ( (j_compress_ptr cinfo, int quality, boolean force_baseline)  )
EXTERN void jpeg_set_linear_quality JPP ( (j_compress_ptr cinfo, int scale_factor, boolean force_baseline)  )
EXTERN void jpeg_add_quant_table JPP ( (j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)  )
EXTERN int jpeg_quality_scaling JPP ( (int quality)  )
EXTERN void jpeg_suppress_tables JPP ( (j_compress_ptr cinfo, boolean suppress)  )
EXTERN void jpeg_start_compress JPP ( (j_compress_ptr cinfo, boolean write_all_tables)  )
EXTERN JDIMENSION jpeg_write_scanlines JPP ( (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)  )
EXTERN void jpeg_write_marker JPP ( (j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)  )
EXTERN int jpeg_read_header JPP ( (j_decompress_ptr cinfo, boolean require_image)  )
EXTERN boolean jpeg_start_output JPP ( (j_decompress_ptr cinfo, int scan_number)  )
EXTERN void jpeg_set_marker_processor JPP ( (j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)  )