Classes | Defines | Typedefs | Enumerations | Functions

jpeglib.h File Reference

#include "jconfig.h"
#include "jmorecfg.h"
Include dependency graph for jpeglib.h:

Classes

struct  JQUANT_TBL
struct  JHUFF_TBL
struct  jpeg_component_info
struct  jpeg_scan_info
struct  jpeg_marker_struct
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

Defines

#define JPEG_LIB_VERSION   62
#define DCTSIZE   8
#define DCTSIZE2   64
#define NUM_QUANT_TBLS   4
#define NUM_HUFF_TBLS   4
#define NUM_ARITH_TBLS   16
#define MAX_COMPS_IN_SCAN   4
#define MAX_SAMP_FACTOR   4
#define C_MAX_BLOCKS_IN_MCU   10
#define D_MAX_BLOCKS_IN_MCU   10
#define JDCT_DEFAULT   JDCT_ISLOW
#define JDCT_FASTEST   JDCT_IFAST
#define jpeg_common_fields
#define JMSG_LENGTH_MAX   200
#define JMSG_STR_PARM_MAX   80
#define JPOOL_PERMANENT   0
#define JPOOL_IMAGE   1
#define JPOOL_NUMPOOLS   2
#define JPP(arglist)   arglist
#define jpeg_create_compress(cinfo)
#define jpeg_create_decompress(cinfo)
#define JPEG_SUSPENDED   0
#define JPEG_HEADER_OK   1
#define JPEG_HEADER_TABLES_ONLY   2
#define JPEG_REACHED_SOS   1
#define JPEG_REACHED_EOI   2
#define JPEG_ROW_COMPLETED   3
#define JPEG_SCAN_COMPLETED   4
#define JPEG_RST0   0xD0
#define JPEG_EOI   0xD9
#define JPEG_APP0   0xE0
#define JPEG_COM   0xFE

Typedefs

typedef JSAMPLEJSAMPROW
typedef JSAMPROWJSAMPARRAY
typedef JSAMPARRAYJSAMPIMAGE
typedef JCOEF JBLOCK [64squared;#of elements in a block */]
typedef JBLOCKJBLOCKROW
typedef JBLOCKROWJBLOCKARRAY
typedef JBLOCKARRAYJBLOCKIMAGE
typedef JCOEFJCOEFPTR
typedef struct jpeg_marker_structjpeg_saved_marker_ptr
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
typedef boolean(* jpeg_marker_parser_method )()

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

struct jpeg_error_mgrjpeg_std_error (struct jpeg_error_mgr *err)
void jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize)
void jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize)
void jpeg_destroy_compress (j_compress_ptr cinfo)
void jpeg_destroy_decompress (j_decompress_ptr cinfo)
void jpeg_stdio_dest (j_compress_ptr cinfo, FILE *outfile)
void jpeg_stdio_src (j_decompress_ptr cinfo, FILE *infile)
void jpeg_set_defaults (j_compress_ptr cinfo)
void jpeg_set_colorspace (j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
void jpeg_default_colorspace (j_compress_ptr cinfo)
void jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline)
void jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, boolean force_baseline)
void jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
int jpeg_quality_scaling (int quality)
void jpeg_simple_progression (j_compress_ptr cinfo)
void jpeg_suppress_tables (j_compress_ptr cinfo, boolean suppress)
JQUANT_TBLjpeg_alloc_quant_table (j_common_ptr cinfo)
JHUFF_TBLjpeg_alloc_huff_table (j_common_ptr cinfo)
void jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables)
JDIMENSION jpeg_write_scanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
void jpeg_finish_compress (j_compress_ptr cinfo)
JDIMENSION jpeg_write_raw_data (j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
void jpeg_write_marker (j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)
void jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen)
void jpeg_write_m_byte (j_compress_ptr cinfo, int val)
void jpeg_write_tables (j_compress_ptr cinfo)
int jpeg_read_header (j_decompress_ptr cinfo, boolean require_image)
boolean jpeg_start_decompress (j_decompress_ptr cinfo)
JDIMENSION jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
boolean jpeg_finish_decompress (j_decompress_ptr cinfo)
JDIMENSION jpeg_read_raw_data (j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines)
boolean jpeg_has_multiple_scans (j_decompress_ptr cinfo)
boolean jpeg_start_output (j_decompress_ptr cinfo, int scan_number)
boolean jpeg_finish_output (j_decompress_ptr cinfo)
boolean jpeg_input_complete (j_decompress_ptr cinfo)
void jpeg_new_colormap (j_decompress_ptr cinfo)
int jpeg_consume_input (j_decompress_ptr cinfo)
void jpeg_calc_output_dimensions (j_decompress_ptr cinfo)
void jpeg_save_markers (j_decompress_ptr cinfo, int marker_code, unsigned int length_limit)
void jpeg_set_marker_processor (j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)
jvirt_barray_ptrjpeg_read_coefficients (j_decompress_ptr cinfo)
void jpeg_write_coefficients (j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
void jpeg_copy_critical_parameters (j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
void jpeg_abort_compress (j_compress_ptr cinfo)
void jpeg_abort_decompress (j_decompress_ptr cinfo)
void jpeg_abort (j_common_ptr cinfo)
void jpeg_destroy (j_common_ptr cinfo)
boolean jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired)

Define Documentation

#define C_MAX_BLOCKS_IN_MCU   10
#define D_MAX_BLOCKS_IN_MCU   10
#define DCTSIZE   8
#define DCTSIZE2   64
#define JDCT_DEFAULT   JDCT_ISLOW
#define JDCT_FASTEST   JDCT_IFAST
#define JMSG_LENGTH_MAX   200
#define JMSG_STR_PARM_MAX   80
#define JPEG_APP0   0xE0
#define JPEG_COM   0xFE
#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 */\
  void * client_data;       /* Available for use by application */\
  boolean is_decompressor;  /* So common code can tell which is which */\
  int global_state
#define jpeg_create_compress (   cinfo  ) 
Value:
jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \
            (size_t) sizeof(struct jpeg_compress_struct))
#define jpeg_create_decompress (   cinfo  ) 
Value:
jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \
              (size_t) sizeof(struct jpeg_decompress_struct))
#define JPEG_EOI   0xD9
#define JPEG_HEADER_OK   1
#define JPEG_HEADER_TABLES_ONLY   2
#define JPEG_LIB_VERSION   62
#define JPEG_REACHED_EOI   2
#define JPEG_REACHED_SOS   1
#define JPEG_ROW_COMPLETED   3
#define JPEG_RST0   0xD0
#define JPEG_SCAN_COMPLETED   4
#define JPEG_SUSPENDED   0
#define JPOOL_IMAGE   1
#define JPOOL_NUMPOOLS   2
#define JPOOL_PERMANENT   0
#define JPP (   arglist  )     arglist
#define MAX_COMPS_IN_SCAN   4
#define MAX_SAMP_FACTOR   4
#define NUM_ARITH_TBLS   16
#define NUM_HUFF_TBLS   4
#define NUM_QUANT_TBLS   4

Typedef Documentation

typedef JCOEF JBLOCK[64squared;#of elements in a block */]
typedef JBLOCK* JBLOCKROW
typedef JCOEF* JCOEFPTR
typedef JSAMPROW* JSAMPARRAY
typedef JSAMPLE* JSAMPROW
typedef struct jvirt_barray_control* jvirt_barray_ptr
typedef struct jvirt_sarray_control* jvirt_sarray_ptr

Enumeration Type Documentation

Enumerator:
JCS_UNKNOWN 
JCS_GRAYSCALE 
JCS_RGB 
JCS_YCbCr 
JCS_CMYK 
JCS_YCCK 
Enumerator:
JDCT_ISLOW 
JDCT_IFAST 
JDCT_FLOAT 
Enumerator:
JDITHER_NONE 
JDITHER_ORDERED 
JDITHER_FS 

Function Documentation

void jpeg_abort ( j_common_ptr  cinfo  ) 
void jpeg_abort_compress ( j_compress_ptr  cinfo  ) 
void jpeg_abort_decompress ( j_decompress_ptr  cinfo  ) 
void jpeg_add_quant_table ( j_compress_ptr  cinfo,
int  which_tbl,
const unsigned int *  basic_table,
int  scale_factor,
boolean  force_baseline 
)
JHUFF_TBL* jpeg_alloc_huff_table ( j_common_ptr  cinfo  ) 
JQUANT_TBL* jpeg_alloc_quant_table ( j_common_ptr  cinfo  ) 
void jpeg_calc_output_dimensions ( j_decompress_ptr  cinfo  ) 
int jpeg_consume_input ( j_decompress_ptr  cinfo  ) 
void jpeg_copy_critical_parameters ( j_decompress_ptr  srcinfo,
j_compress_ptr  dstinfo 
)
void jpeg_CreateCompress ( j_compress_ptr  cinfo,
int  version,
size_t  structsize 
)
void jpeg_CreateDecompress ( j_decompress_ptr  cinfo,
int  version,
size_t  structsize 
)
void jpeg_default_colorspace ( j_compress_ptr  cinfo  ) 
void jpeg_destroy ( j_common_ptr  cinfo  ) 
void jpeg_destroy_compress ( j_compress_ptr  cinfo  ) 
void jpeg_destroy_decompress ( j_decompress_ptr  cinfo  ) 
void jpeg_finish_compress ( j_compress_ptr  cinfo  ) 
boolean jpeg_finish_decompress ( j_decompress_ptr  cinfo  ) 
boolean jpeg_finish_output ( j_decompress_ptr  cinfo  ) 
boolean jpeg_has_multiple_scans ( j_decompress_ptr  cinfo  ) 
boolean jpeg_input_complete ( j_decompress_ptr  cinfo  ) 
void jpeg_new_colormap ( j_decompress_ptr  cinfo  ) 
int jpeg_quality_scaling ( int  quality  ) 
jvirt_barray_ptr* jpeg_read_coefficients ( j_decompress_ptr  cinfo  ) 
int jpeg_read_header ( j_decompress_ptr  cinfo,
boolean  require_image 
)
JDIMENSION jpeg_read_raw_data ( j_decompress_ptr  cinfo,
JSAMPIMAGE  data,
JDIMENSION  max_lines 
)
JDIMENSION jpeg_read_scanlines ( j_decompress_ptr  cinfo,
JSAMPARRAY  scanlines,
JDIMENSION  max_lines 
)
boolean jpeg_resync_to_restart ( j_decompress_ptr  cinfo,
int  desired 
)
void jpeg_save_markers ( j_decompress_ptr  cinfo,
int  marker_code,
unsigned int  length_limit 
)
void jpeg_set_colorspace ( j_compress_ptr  cinfo,
J_COLOR_SPACE  colorspace 
)
void jpeg_set_defaults ( j_compress_ptr  cinfo  ) 
void jpeg_set_linear_quality ( j_compress_ptr  cinfo,
int  scale_factor,
boolean  force_baseline 
)
void jpeg_set_marker_processor ( j_decompress_ptr  cinfo,
int  marker_code,
jpeg_marker_parser_method  routine 
)
void jpeg_set_quality ( j_compress_ptr  cinfo,
int  quality,
boolean  force_baseline 
)
void jpeg_simple_progression ( j_compress_ptr  cinfo  ) 
void jpeg_start_compress ( j_compress_ptr  cinfo,
boolean  write_all_tables 
)
boolean jpeg_start_decompress ( j_decompress_ptr  cinfo  ) 
boolean jpeg_start_output ( j_decompress_ptr  cinfo,
int  scan_number 
)
struct jpeg_error_mgr* jpeg_std_error ( struct jpeg_error_mgr err  )  [read]
void jpeg_stdio_dest ( j_compress_ptr  cinfo,
FILE *  outfile 
)
void jpeg_stdio_src ( j_decompress_ptr  cinfo,
FILE *  infile 
)
void jpeg_suppress_tables ( j_compress_ptr  cinfo,
boolean  suppress 
)
void jpeg_write_coefficients ( j_compress_ptr  cinfo,
jvirt_barray_ptr coef_arrays 
)
void jpeg_write_m_byte ( j_compress_ptr  cinfo,
int  val 
)
void jpeg_write_m_header ( j_compress_ptr  cinfo,
int  marker,
unsigned int  datalen 
)
void jpeg_write_marker ( j_compress_ptr  cinfo,
int  marker,
const JOCTET dataptr,
unsigned int  datalen 
)
JDIMENSION jpeg_write_raw_data ( j_compress_ptr  cinfo,
JSAMPIMAGE  data,
JDIMENSION  num_lines 
)
JDIMENSION jpeg_write_scanlines ( j_compress_ptr  cinfo,
JSAMPARRAY  scanlines,
JDIMENSION  num_lines 
)
void jpeg_write_tables ( j_compress_ptr  cinfo  )