fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

jpeglib.h File Reference

#include "jmorecfg.h"
#include "jpegint.h"
#include "jerror.h"
#include "jconfig.h"
Include dependency graph for jpeglib.h:
This graph shows which files directly or indirectly include this file:

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

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 JSAMPLE FAR * JSAMPROW
typedef JSAMPROWJSAMPARRAY
typedef JSAMPARRAYJSAMPIMAGE
typedef JCOEF JBLOCK [DCTSIZE2]
typedef JBLOCK FAR * JBLOCKROW
typedef JBLOCKROWJBLOCKARRAY
typedef JBLOCKARRAYJBLOCKIMAGE
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_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_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))

Variables

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

Define Documentation

#define C_MAX_BLOCKS_IN_MCU   10
#define D_MAX_BLOCKS_IN_MCU   10

Definition at line 57 of file jpeglib.h.

Referenced by jinit_d_coef_controller(), and per_scan_setup().

#define JDCT_DEFAULT   JDCT_ISLOW

Definition at line 224 of file jpeglib.h.

Referenced by default_decompress_parms(), and jpeg_set_defaults().

#define JDCT_FASTEST   JDCT_IFAST

Definition at line 227 of file jpeglib.h.

#define JMSG_LENGTH_MAX   200

Definition at line 652 of file jpeglib.h.

Referenced by output_message().

#define JMSG_STR_PARM_MAX   80

Definition at line 660 of file jpeglib.h.

#define JPEG_APP0   0xE0

Definition at line 1047 of file jpeglib.h.

#define JPEG_COM   0xFE

Definition at line 1048 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 */\
  void * client_data;           /* Available for use by application */\
  boolean is_decompressor;      /* So common code can tell which is which */\
  int global_state

Definition at line 241 of file jpeglib.h.

#define jpeg_create_compress (   cinfo)
Value:
jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \
                        (size_t) sizeof(struct jpeg_compress_struct))

Definition at line 894 of file jpeglib.h.

#define jpeg_create_decompress (   cinfo)
Value:
jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \
                          (size_t) sizeof(struct jpeg_decompress_struct))

Definition at line 897 of file jpeglib.h.

Referenced by Fl_JPEG_Image::Fl_JPEG_Image().

#define JPEG_EOI   0xD9

Definition at line 1046 of file jpeglib.h.

Referenced by fill_input_buffer().

#define JPEG_HEADER_OK   1

Definition at line 966 of file jpeglib.h.

Referenced by jpeg_read_header().

#define JPEG_HEADER_TABLES_ONLY   2

Definition at line 967 of file jpeglib.h.

Referenced by jpeg_read_header().

#define JPEG_LIB_VERSION   62

Definition at line 33 of file jpeglib.h.

Referenced by jpeg_CreateCompress(), and jpeg_CreateDecompress().

#define JPEG_REACHED_EOI   2

Definition at line 997 of file jpeglib.h.

Referenced by consume_markers(), jpeg_read_header(), LOCAL(), and read_markers().

#define JPEG_REACHED_SOS   1

Definition at line 996 of file jpeglib.h.

Referenced by consume_markers(), jpeg_consume_input(), jpeg_read_header(), LOCAL(), and read_markers().

#define JPEG_ROW_COMPLETED   3
#define JPEG_RST0   0xD0

Definition at line 1045 of file jpeglib.h.

Referenced by emit_restart().

#define JPEG_SCAN_COMPLETED   4
#define JPOOL_NUMPOOLS   2
#define JPP (   arglist)    arglist

Definition at line 818 of file jpeglib.h.

#define MAX_SAMP_FACTOR   4

Definition at line 47 of file jpeglib.h.

Referenced by initial_setup(), and METHODDEF().

#define NUM_ARITH_TBLS   16

Definition at line 45 of file jpeglib.h.

Referenced by emit_dac(), get_soi(), and jpeg_set_defaults().


Typedef Documentation

Definition at line 261 of file jpeglib.h.

Definition at line 262 of file jpeglib.h.

Definition at line 263 of file jpeglib.h.

typedef JCOEF JBLOCK[DCTSIZE2]

Definition at line 70 of file jpeglib.h.

Definition at line 72 of file jpeglib.h.

Definition at line 73 of file jpeglib.h.

typedef JBLOCK FAR* JBLOCKROW

Definition at line 71 of file jpeglib.h.

typedef JCOEF FAR* JCOEFPTR

Definition at line 75 of file jpeglib.h.

Definition at line 193 of file jpeglib.h.

typedef JSAMPROW* JSAMPARRAY

Definition at line 67 of file jpeglib.h.

Definition at line 68 of file jpeglib.h.

typedef JSAMPLE FAR* JSAMPROW

Definition at line 66 of file jpeglib.h.

Definition at line 753 of file jpeglib.h.

Definition at line 752 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

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

Variable Documentation

int const unsigned int* basic_table

Definition at line 924 of file jpeglib.h.

Definition at line 1017 of file jpeglib.h.

Referenced by transencode_coef_controller().

Definition at line 917 of file jpeglib.h.

Referenced by jpeg_set_colorspace().

int unsigned int datalen

Definition at line 950 of file jpeglib.h.

int desired

Definition at line 1038 of file jpeglib.h.

Referenced by jinit_2pass_quantizer().

Definition at line 1019 of file jpeglib.h.

int const unsigned int int boolean force_baseline

Definition at line 919 of file jpeglib.h.

FILE* infile

Definition at line 911 of file jpeglib.h.

Referenced by new_cb().

int unsigned int length_limit

Definition at line 1006 of file jpeglib.h.

Referenced by jpeg_save_markers().

Definition at line 1006 of file jpeglib.h.

Definition at line 977 of file jpeglib.h.

Definition at line 939 of file jpeglib.h.

FILE* outfile

Definition at line 910 of file jpeglib.h.

Referenced by new_cb(), and print_cb().

int quality

Definition at line 919 of file jpeglib.h.

Referenced by jpeg_quality_scaling().

Definition at line 963 of file jpeglib.h.

int jpeg_marker_parser_method routine

Definition at line 1011 of file jpeglib.h.

int const unsigned int int scale_factor

Definition at line 922 of file jpeglib.h.

Definition at line 989 of file jpeglib.h.

Referenced by jpeg_start_output().

Definition at line 939 of file jpeglib.h.

int size_t structsize

Definition at line 901 of file jpeglib.h.

Definition at line 931 of file jpeglib.h.

Referenced by jpeg_suppress_tables().

int val

Definition at line 956 of file jpeglib.h.

Referenced by Fl_Tree_Item::activate(), Fl_PostScript_Graphics_Driver::alpha_mask(), Fl_Tree_Prefs::bgcolor(), Fl_Table::col_header_color(), Fl_Table::cols(), Fl_Tree_Prefs::connectorcolor(), Fl_Tree_Prefs::connectorstyle(), Fl_Tree_Prefs::connectorwidth(), consume_markers(), create_colorindex(), create_colormap(), deflate(), Fl_Slider::draw(), Fl_Chart::draw(), emit_byte(), Fl_Tree_Prefs::fgcolor(), Fl_Native_File_Chooser::filter_value(), Fl_Native_File_Chooser::Fl_Native_File_Chooser(), Fl_PNM_Image::Fl_PNM_Image(), Fl_Slider::handle(), Fl_Scrollbar::handle(), Fl_Dial::handle(), Fl_Tree_Prefs::inactivecolor(), inflate(), inflate_fast(), inflate_table(), Fl_Tree::item_clicked(), jpeg_write_marker(), Fl_Tree_Item::labelbgcolor(), Fl_Tree_Item::labelcolor(), Fl_Tree_Item::labelfgcolor(), Fl_Tree_Prefs::labelfont(), Fl_Tree_Item::labelfont(), Fl_Tree_Prefs::labelmarginleft(), Fl_Tree_Prefs::labelsize(), Fl_Tree_Item::labelsize(), Fl_Tree_Prefs::linespacing(), Fl_Tree::load(), Fl_File_Icon::load_image(), Fl_Tree_Prefs::marginleft(), Fl_Tree_Prefs::margintop(), Fl_Tree_Prefs::openchild_marginbottom(), Fl::option(), Fl_Native_File_Chooser::options(), Fl_Tree_Item::parent(), print_update_status(), Fl_Table::row_header_color(), Fl_Table::rows(), Fl_Tree_Item::select(), Fl_Tree_Prefs::selectbox(), Fl_Tree_Prefs::selectcolor(), Fl_Tree_Prefs::selectmode(), Fl_Window::show(), Fl_Tree_Prefs::showcollapse(), Fl_Tree_Prefs::sortorder(), Fl_Input_::tab_nav(), Fl_Table_Row::type(), Fl_Native_File_Chooser::type(), Fl_Tree_Prefs::usericon(), Fl_Tree_Item::usericon(), Fl_Tree_Prefs::usericonmarginleft(), and Fl_Tree_Item::widget().

int version

Definition at line 901 of file jpeglib.h.

Referenced by examine_app14(), and Fl_X::make_xid().

int which_tbl

Definition at line 924 of file jpeglib.h.

Referenced by jpeg_add_quant_table().

Definition at line 937 of file jpeglib.h.