Developer World
Spresense SDK Library v3.3.0-375c679
jpeglib.h File Reference
#include <stdio.h>
#include "jconfig.h"
#include "jmorecfg.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_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
 

Macros

#define JPEG_LIB_VERSION   90 /* Compatibility version 9.0 */
 
#define JPEG_LIB_VERSION_MAJOR   9
 
#define JPEG_LIB_VERSION_MINOR   5
 
#define DCTSIZE   8 /* The basic DCT block is 8x8 coefficients */
 
#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 JDCT_DEFAULT   JDCT_ISLOW
 
#define JDCT_FASTEST   JDCT_IFAST
 
#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_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 /* 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 JSAMPLE FAR * JSAMPROW
 
typedef JSAMPROW * JSAMPARRAY
 
typedef JSAMPARRAY * JSAMPIMAGE
 
typedef JCOEF JBLOCK[DCTSIZE2]
 
typedef JBLOCK FAR * JBLOCKROW
 
typedef JBLOCKROW * JBLOCKARRAY
 
typedef JBLOCKARRAY * JBLOCKIMAGE
 
typedef JCOEF FAR * JCOEFPTR
 
typedef struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
 
typedef struct jpeg_common_structj_common_ptr
 
typedef struct jpeg_compress_structj_compress_ptr
 
typedef struct jpeg_decompress_structj_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_CbYCrY , JCS_CMYK , JCS_YCCK , JCS_BG_RGB ,
  JCS_BG_YCC
}
 
enum  J_COLOR_TRANSFORM { JCT_NONE = 0 , JCT_SUBTRACT_GREEN = 1 }
 
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))
 
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_fd_src (j_decompress_ptr cinfo, int infd)
 
void jpeg_mem_dest (j_compress_ptr cinfo, unsigned char **outbuffer, size_t *outsize)
 
void jpeg_mem_src (j_decompress_ptr cinfo, const unsigned char *inbuffer, size_t insize)
 
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_default_qtables (j_compress_ptr cinfo, 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)
 
JHUFF_TBLjpeg_std_huff_table (j_common_ptr cinfo, boolean isDC, int tblno)
 
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)
 
void jpeg_calc_jpeg_dimensions (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)
 
JDIMENSION jpeg_read_mcus (j_decompress_ptr cinfo, JSAMPARRAY mcus, JDIMENSION max_lines, JDIMENSION *offset)
 
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_core_output_dimensions (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_ptr * jpeg_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)