Atmel Software Framework

jpeglib.h File Reference
#include "jmorecfg.h"
#include "jpegint.h"
#include "jerror.h"
#include "jconfig.h"

Data Structures

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

Macros

#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 DCTSIZE   8 /* The basic DCT block is 8x8 samples */
 
#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */
 
#define JDCT_DEFAULT   JDCT_ISLOW
 
#define JDCT_FASTEST   JDCT_IFAST
 
#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */
 
#define JMSG_STR_PARM_MAX   80
 
#define JPEG_APP0   0xE0 /* APP0 marker code */
 
#define JPEG_COM   0xFE /* COM marker code */
 
#define jpeg_common_fields
 
#define jpeg_create_compress(cinfo)
 
#define jpeg_create_decompress(cinfo)
 
#define JPEG_EOI   0xD9 /* EOI marker code */
 
#define JPEG_HEADER_OK   1 /* Found valid image datastream */
 
#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */
 
#define JPEG_LIB_VERSION   62 /* Version 6b */
 
#define JPEG_REACHED_EOI   2 /* Reached end of image */
 
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
 
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
 
#define JPEG_RST0   0xD0 /* RST0 marker code */
 
#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
 
#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */
 
#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */
 
#define JPOOL_NUMPOOLS   2
 
#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */
 
#define JPP(arglist)   arglist
 
#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 NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */
 
#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */
 
#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */
 

Typedefs

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

Enumerations

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

Functions

 EXTERN (struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
 
 EXTERN (void) jpeg_CreateCompress JPP((j_compress_ptr cinfo
 
 EXTERN (int) jpeg_quality_scaling JPP((int quality))
 
 EXTERN (JQUANT_TBL *) jpeg_alloc_quant_table JPP((j_common_ptr cinfo))
 
 EXTERN (JHUFF_TBL *) jpeg_alloc_huff_table JPP((j_common_ptr cinfo))
 
 EXTERN (JDIMENSION) jpeg_write_scanlines JPP((j_compress_ptr cinfo
 
 EXTERN (boolean) jpeg_start_decompress JPP((j_decompress_ptr cinfo))
 
 EXTERN (jvirt_barray_ptr *) jpeg_read_coefficients JPP((j_decompress_ptr cinfo))
 
typedef JMETHOD (boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
 

Variables

int const unsigned int * basic_table
 
jvirt_barray_ptrcoef_arrays
 
J_COLOR_SPACE colorspace
 
JSAMPIMAGE data
 
int const JOCTET unsigned int datalen
 
int const JOCTETdataptr
 
int desired
 
j_compress_ptr dstinfo
 
int boolean force_baseline
 
FILE * infile
 
int unsigned int length_limit
 
int marker
 
int marker_code
 
JSAMPARRAY JDIMENSION max_lines
 
JSAMPARRAY JDIMENSION num_lines
 
FILE * outfile
 
int quality
 
boolean require_image
 
int jpeg_marker_parser_method routine
 
int scale_factor
 
int scan_number
 
JSAMPARRAY scanlines
 
int size_t structsize
 
boolean suppress
 
int val
 
int version
 
int which_tbl
 
boolean write_all_tables
 

#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 */

Referenced by for(), and jinit_d_coef_controller().

#define JDCT_DEFAULT   JDCT_ISLOW
#define JDCT_FASTEST   JDCT_IFAST

Referenced by jpeg_lib_decode().

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

Referenced by output_message().

#define JMSG_STR_PARM_MAX   80
#define JPEG_APP0   0xE0 /* APP0 marker code */
#define JPEG_COM   0xFE /* COM marker code */
#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 /* For checking call sequence validity */
unsigned char boolean
Definition: btypes.h:95
Definition: jpeglib.h:644
Definition: jpeglib.h:702
cd_progress_ptr progress
Definition: cdjpeg.h:147
The heap is made up as a list of structs of this type.
Definition: lwip-1.4.0/src/core/mem.c:155
Definition: jpeglib.h:757
#define jpeg_create_compress (   cinfo)
Value:
jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \
(size_t) sizeof(struct jpeg_compress_struct))
#define JPEG_LIB_VERSION
Definition: jpeglib.h:33
Definition: jpeglib.h:269
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
#define jpeg_create_decompress (   cinfo)
Value:
(size_t) sizeof(struct jpeg_decompress_struct))
#define JPEG_LIB_VERSION
Definition: jpeglib.h:33
(* cinfo)(cinfo,(long) length)
Definition: jdmarker.c:730
Definition: jpeglib.h:412
jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)
Definition: jdapimin.c:30

Referenced by jpeg_lib_init().

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

Referenced by fill_input_buffer().

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

Referenced by jpeg_read_header().

#define JPEG_LIB_VERSION   62 /* Version 6b */

Referenced by jpeg_CreateDecompress().

#define JPEG_REACHED_EOI   2 /* Reached end of image */
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
#define JPEG_RST0   0xD0 /* RST0 marker code */

Referenced by emit_restart().

#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
#define JPOOL_NUMPOOLS   2
#define JPP (   arglist)    arglist
#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */

Referenced by compress_output(), and consume_data().

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

Referenced by for(), and METHODDEF().

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

Referenced by jpeg_set_defaults().

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

typedef JCOEF JBLOCK[DCTSIZE2]
typedef JBLOCK FAR* JBLOCKROW
typedef JCOEF FAR* JCOEFPTR
typedef JSAMPROW* JSAMPARRAY
typedef JSAMPLE FAR* JSAMPROW

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

EXTERN ( struct jpeg_error_mgr )
EXTERN ( void  )
EXTERN ( int  )
EXTERN ( JQUANT_TBL )
EXTERN ( JHUFF_TBL )
EXTERN ( JDIMENSION  )
EXTERN ( boolean  )
EXTERN ( jvirt_barray_ptr )
typedef JMETHOD ( boolean  ,
jpeg_marker_parser_method  ,
(j_decompress_ptr cinfo  
)

int const unsigned int* basic_table
jvirt_barray_ptr* coef_arrays
J_COLOR_SPACE colorspace

Referenced by jpeg_set_colorspace().

JSAMPIMAGE data
int unsigned int datalen
int const JOCTET* dataptr

Referenced by jpeg_fdct_ifast(), and jpeg_fdct_islow().

int desired

Referenced by jinit_2pass_quantizer().

j_compress_ptr dstinfo
int const unsigned int int boolean force_baseline
FILE* infile
int unsigned int length_limit

Referenced by jpeg_save_markers().

int marker

Referenced by jinit_marker_reader().

int marker_code

Referenced by jpeg_lib_decode().

FILE* outfile
int quality
boolean require_image
int jpeg_marker_parser_method routine
int const unsigned int int scale_factor
int scan_number

Referenced by jpeg_start_output().

JSAMPARRAY scanlines

Referenced by decodeGeneric().

int size_t structsize
boolean suppress
int version

Referenced by examine_app14(), and reader_id3_getver().

int which_tbl

Referenced by jpeg_add_quant_table().

boolean write_all_tables