Method | Description | |
---|---|---|
color_quantize ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void | ||
finish_pass ( ) : void |
Finish up at the end of the pass.
|
|
my_1pass_cquantizer ( jpeg_decompress_struct cinfo ) : System |
Module initialization routine for 1-pass color quantization.
|
|
new_color_map ( ) : void |
Switch to a new external colormap between output passes. Shouldn't get to this!
|
|
start_pass ( bool is_pre_scan ) : void |
Initialize for one-pass color quantization.
|
Method | Description | |
---|---|---|
alloc_fs_workspace ( ) : void |
Allocate workspace for Floyd-Steinberg errors.
|
|
create_colorindex ( ) : void |
Create the color index table.
|
|
create_colormap ( ) : void |
Create the colormap.
|
|
create_odither_tables ( ) : void |
Create the ordered-dither tables. Components having the same number of representative colors may share a dither table.
|
|
largest_input_value ( int j, int maxj ) : int |
Return largest input value that should map to j'th output value Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE
|
|
make_odither_array ( int ncolors ) : int[][] |
Create an ordered-dither array for a component having ncolors distinct output values.
|
|
output_value ( int j, int maxj ) : int |
Return j'th output value, where j will range from 0 to maxj The output values must fall in 0..MAXJSAMPLE in increasing order
|
|
quantize ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void |
Map some rows of pixels to the output colormapped representation. General case, no dithering.
|
|
quantize3 ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void |
Map some rows of pixels to the output colormapped representation. Fast path for out_color_components==3, no dithering
|
|
quantize3_ord_dither ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void |
Map some rows of pixels to the output colormapped representation. Fast path for out_color_components==3, with ordered dithering
|
|
quantize_fs_dither ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void |
Map some rows of pixels to the output colormapped representation. General case, with Floyd-Steinberg dithering
|
|
quantize_ord_dither ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void |
Map some rows of pixels to the output colormapped representation. General case, with ordered dithering.
|
|
select_ncolors ( int Ncolors ) : int |
Determine allocation of desired colors to components, and fill in Ncolors[] array to indicate choice. Return value is total number of colors (product of Ncolors[] values).
|
public color_quantize ( byte input_buf, int in_row, byte output_buf, int out_row, int num_rows ) : void | ||
input_buf | byte | |
in_row | int | |
output_buf | byte | |
out_row | int | |
num_rows | int | |
return | void |
public my_1pass_cquantizer ( jpeg_decompress_struct cinfo ) : System | ||
cinfo | jpeg_decompress_struct | The cinfo. |
return | System |
public start_pass ( bool is_pre_scan ) : void | ||
is_pre_scan | bool | |
return | void |