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)  

jquant1.c File Reference

#include "jinclude.h"
#include "jpeglib.h"
Include dependency graph for jquant1.c:

Go to the source code of this file.

Classes

struct  my_cquantizer

Defines

#define JPEG_INTERNALS
#define ODITHER_SIZE   16
#define ODITHER_CELLS   (ODITHER_SIZE*ODITHER_SIZE)
#define ODITHER_MASK   (ODITHER_SIZE-1)
#define MAX_Q_COMPS   4

Typedefs

typedef int ODITHER_MATRIX [ODITHER_SIZE][ODITHER_SIZE]
typedef int(* ODITHER_MATRIX_PTR )[ODITHER_SIZE]
typedef INT16 FSERROR
typedef int LOCFSERROR
typedef FSERROR FAR * FSERRPTR
typedef my_cquantizermy_cquantize_ptr

Functions

 select_ncolors (j_decompress_ptr cinfo, int Ncolors[])
 output_value (j_decompress_ptr cinfo, int ci, int j, int maxj)
 largest_input_value (j_decompress_ptr cinfo, int ci, int j, int maxj)
 create_colormap (j_decompress_ptr cinfo)
 create_colorindex (j_decompress_ptr cinfo)
 make_odither_array (j_decompress_ptr cinfo, int ncolors)
 create_odither_tables (j_decompress_ptr cinfo)
 color_quantize (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
 color_quantize3 (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
 quantize_ord_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
 quantize3_ord_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
 quantize_fs_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
 alloc_fs_workspace (j_decompress_ptr cinfo)
 start_pass_1_quant (j_decompress_ptr cinfo, boolean is_pre_scan)
 finish_pass_1_quant (j_decompress_ptr cinfo)
 new_color_map_1_quant (j_decompress_ptr cinfo)
 jinit_1pass_quantizer (j_decompress_ptr cinfo)

Define Documentation

#define JPEG_INTERNALS

Definition at line 13 of file jquant1.c.

#define MAX_Q_COMPS   4

Definition at line 140 of file jquant1.c.

Referenced by jinit_1pass_quantizer().

#define ODITHER_CELLS   (ODITHER_SIZE*ODITHER_SIZE)

Definition at line 73 of file jquant1.c.

Referenced by make_odither_array().

#define ODITHER_MASK   (ODITHER_SIZE-1)

Definition at line 74 of file jquant1.c.

Referenced by quantize3_ord_dither(), and quantize_ord_dither().

#define ODITHER_SIZE   16

Definition at line 71 of file jquant1.c.

Referenced by make_odither_array().


Typedef Documentation

typedef INT16 FSERROR

Definition at line 128 of file jquant1.c.

typedef FSERROR FAR* FSERRPTR

Definition at line 135 of file jquant1.c.

typedef int LOCFSERROR

Definition at line 129 of file jquant1.c.

Definition at line 167 of file jquant1.c.

typedef int ODITHER_MATRIX[ODITHER_SIZE][ODITHER_SIZE]

Definition at line 76 of file jquant1.c.

typedef int(* ODITHER_MATRIX_PTR)[ODITHER_SIZE]

Definition at line 77 of file jquant1.c.


Function Documentation

alloc_fs_workspace ( j_decompress_ptr  cinfo)

Definition at line 722 of file jquant1.c.

References my_cquantizer::fserrors, i, JPOOL_IMAGE, and SIZEOF.

Referenced by jinit_1pass_quantizer(), and start_pass_1_quant().

color_quantize ( j_decompress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 459 of file jquant1.c.

References my_cquantizer::colorindex, GETJSAMPLE, num_rows, row, and width.

Referenced by start_pass_1_quant().

color_quantize3 ( j_decompress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 487 of file jquant1.c.

References my_cquantizer::colorindex, GETJSAMPLE, num_rows, row, and width.

Referenced by start_pass_1_quant().

create_odither_tables ( j_decompress_ptr  cinfo)

Definition at line 432 of file jquant1.c.

References i, make_odither_array(), my_cquantizer::Ncolors, NULL, and my_cquantizer::odither.

Referenced by start_pass_1_quant().

finish_pass_1_quant ( j_decompress_ptr  cinfo)

Definition at line 798 of file jquant1.c.

Referenced by jinit_1pass_quantizer().

largest_input_value ( j_decompress_ptr  cinfo,
int  ci,
int  j,
int  maxj 
)

Definition at line 259 of file jquant1.c.

References MAXJSAMPLE.

Referenced by create_colorindex().

make_odither_array ( j_decompress_ptr  cinfo,
int  ncolors 
)

Definition at line 396 of file jquant1.c.

References int, JPOOL_IMAGE, MAXJSAMPLE, num, ODITHER_CELLS, ODITHER_SIZE, and SIZEOF.

Referenced by create_odither_tables().

new_color_map_1_quant ( j_decompress_ptr  cinfo)

Definition at line 810 of file jquant1.c.

References ERREXIT.

Referenced by jinit_1pass_quantizer().

output_value ( j_decompress_ptr  cinfo,
int  ci,
int  j,
int  maxj 
)

Definition at line 245 of file jquant1.c.

References MAXJSAMPLE.

Referenced by create_colormap().

quantize3_ord_dither ( j_decompress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPARRAY  output_buf,
int  num_rows 
)
quantize_fs_dither ( j_decompress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPARRAY  output_buf,
int  num_rows 
)
quantize_ord_dither ( j_decompress_ptr  cinfo,
JSAMPARRAY  input_buf,
JSAMPARRAY  output_buf,
int  num_rows 
)
select_ncolors ( j_decompress_ptr  cinfo,
int  Ncolors[] 
)

Definition at line 186 of file jquant1.c.

References ERREXIT1, FALSE, i, int, JCS_RGB, RGB_BLUE, RGB_GREEN, RGB_RED, and TRUE.

Referenced by create_colormap().