Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Go to the source code of this file.
Typedefs | |
typedef UINT16 | histcell |
typedef histcell FAR * | histptr |
typedef histcell | hist1d[HIST_C2_ELEMS] |
typedef hist1d FAR * | hist2d |
typedef hist2d * | hist3d |
typedef INT16 | FSERROR |
typedef int | LOCFSERROR |
typedef FSERROR FAR * | FSERRPTR |
typedef my_cquantizer * | my_cquantize_ptr |
typedef box * | boxptr |
#define BOX_C0_ELEMS (1<<BOX_C0_LOG) /* # of hist cells in update box */ |
Definition at line 628 of file jquant2.c.
Referenced by fill_inverse_cmap(), and find_best_colors().
#define BOX_C0_LOG (HIST_C0_BITS-3) |
Definition at line 624 of file jquant2.c.
Referenced by fill_inverse_cmap().
#define BOX_C0_SHIFT (C0_SHIFT + BOX_C0_LOG) |
Definition at line 632 of file jquant2.c.
Referenced by fill_inverse_cmap(), and find_nearby_colors().
#define BOX_C1_ELEMS (1<<BOX_C1_LOG) |
Definition at line 629 of file jquant2.c.
Referenced by fill_inverse_cmap(), and find_best_colors().
#define BOX_C1_LOG (HIST_C1_BITS-3) |
Definition at line 625 of file jquant2.c.
Referenced by fill_inverse_cmap().
#define BOX_C1_SHIFT (C1_SHIFT + BOX_C1_LOG) |
Definition at line 633 of file jquant2.c.
Referenced by find_nearby_colors().
#define BOX_C2_ELEMS (1<<BOX_C2_LOG) |
Definition at line 630 of file jquant2.c.
Referenced by fill_inverse_cmap(), and find_best_colors().
#define BOX_C2_LOG (HIST_C2_BITS-3) |
Definition at line 626 of file jquant2.c.
Referenced by fill_inverse_cmap().
#define BOX_C2_SHIFT (C2_SHIFT + BOX_C2_LOG) |
Definition at line 634 of file jquant2.c.
Referenced by find_nearby_colors().
#define C0_SCALE R_SCALE |
Definition at line 85 of file jquant2.c.
Referenced by find_best_colors(), find_nearby_colors(), median_cut(), and update_box().
#define C0_SHIFT (BITS_IN_JSAMPLE-HIST_C0_BITS) |
Definition at line 142 of file jquant2.c.
Referenced by fill_inverse_cmap(), find_nearby_colors(), median_cut(), pass2_fs_dither(), pass2_no_dither(), prescan_quantize(), select_colors(), and update_box().
#define C1_SCALE G_SCALE |
Definition at line 91 of file jquant2.c.
Referenced by find_best_colors(), find_nearby_colors(), median_cut(), and update_box().
#define C1_SHIFT (BITS_IN_JSAMPLE-HIST_C1_BITS) |
Definition at line 143 of file jquant2.c.
Referenced by find_nearby_colors(), median_cut(), pass2_fs_dither(), pass2_no_dither(), prescan_quantize(), select_colors(), and update_box().
#define C2_SCALE B_SCALE |
Definition at line 97 of file jquant2.c.
Referenced by find_best_colors(), find_nearby_colors(), median_cut(), and update_box().
#define C2_SHIFT (BITS_IN_JSAMPLE-HIST_C2_BITS) |
Definition at line 144 of file jquant2.c.
Referenced by find_nearby_colors(), median_cut(), pass2_fs_dither(), pass2_no_dither(), prescan_quantize(), select_colors(), and update_box().
#define HIST_C0_ELEMS (1<<HIST_C0_BITS) |
Definition at line 137 of file jquant2.c.
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
#define HIST_C1_ELEMS (1<<HIST_C1_BITS) |
Definition at line 138 of file jquant2.c.
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
#define HIST_C2_ELEMS (1<<HIST_C2_BITS) |
Definition at line 139 of file jquant2.c.
Referenced by jinit_2pass_quantizer(), start_pass_2_quant(), and update_box().
#define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */ |
Definition at line 127 of file jquant2.c.
Referenced by fill_inverse_cmap(), find_nearby_colors(), jinit_2pass_quantizer(), and start_pass_2_quant().
Referenced by find_best_colors().
Referenced by find_best_colors().
Referenced by find_best_colors().
#define STEPSIZE ((MAXJSAMPLE+1)/16) |
Referenced by init_error_limit().
typedef histcell hist1d[HIST_C2_ELEMS] |
typedef int LOCFSERROR |
typedef my_cquantizer* my_cquantize_ptr |
compute_color | ( | j_decompress_ptr | cinfo, |
boxptr | boxp, | ||
int | icolor | ||
) |
fill_inverse_cmap | ( | j_decompress_ptr | cinfo, |
int | c0, | ||
int | c1, | ||
int | c2 | ||
) |
Definition at line 855 of file jquant2.c.
References BOX_C0_ELEMS, BOX_C0_LOG, BOX_C0_SHIFT, BOX_C1_ELEMS, BOX_C1_LOG, BOX_C2_ELEMS, BOX_C2_LOG, C0_SHIFT, find_best_colors(), find_nearby_colors(), GETJSAMPLE, histogram, MAXNUMCOLORS, and METHODDEF.
Referenced by pass2_fs_dither(), and pass2_no_dither().
find_best_colors | ( | j_decompress_ptr | cinfo, |
int | minc0, | ||
int | minc1, | ||
int | minc2, | ||
int | numcolors, | ||
JSAMPLE | colorlist[], | ||
JSAMPLE | bestcolor[] | ||
) |
Definition at line 775 of file jquant2.c.
References BOX_C0_ELEMS, BOX_C1_ELEMS, BOX_C2_ELEMS, C0_SCALE, C1_SCALE, C2_SCALE, GETJSAMPLE, i, LOCAL, STEP_C0, STEP_C1, and STEP_C2.
Referenced by fill_inverse_cmap().
find_nearby_colors | ( | j_decompress_ptr | cinfo, |
int | minc0, | ||
int | minc1, | ||
int | minc2, | ||
JSAMPLE | colorlist[] | ||
) |
Definition at line 646 of file jquant2.c.
References BOX_C0_SHIFT, BOX_C1_SHIFT, BOX_C2_SHIFT, C0_SCALE, C0_SHIFT, C1_SCALE, C1_SHIFT, C2_SCALE, C2_SHIFT, GETJSAMPLE, i, LOCAL, and MAXNUMCOLORS.
Referenced by fill_inverse_cmap().
finish_pass1 | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1143 of file jquant2.c.
References METHODDEF, select_colors(), and TRUE.
Referenced by start_pass_2_quant().
finish_pass2 | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1156 of file jquant2.c.
References METHODDEF.
Referenced by start_pass_2_quant().
init_error_limit | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1108 of file jquant2.c.
References JPOOL_IMAGE, MAXJSAMPLE, METHODDEF, out(), SIZEOF, and STEPSIZE.
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
jinit_2pass_quantizer | ( | j_decompress_ptr | cinfo | ) |
Definition at line 1244 of file jquant2.c.
References desired, ERREXIT, ERREXIT1, HIST_C0_ELEMS, HIST_C1_ELEMS, HIST_C2_ELEMS, i, init_error_limit(), JDITHER_FS, JDITHER_NONE, JPOOL_IMAGE, MAXNUMCOLORS, new_color_map_2_quant(), NULL, SIZEOF, start_pass_2_quant(), and TRUE.
Referenced by master_selection().
median_cut | ( | j_decompress_ptr | cinfo, |
boxptr | boxlist, | ||
int | numboxes, | ||
int | desired_colors | ||
) |
Definition at line 424 of file jquant2.c.
References C0_SCALE, C0_SHIFT, C1_SCALE, C1_SHIFT, C2_SCALE, C2_SHIFT, find_biggest_color_pop(), find_biggest_volume(), LOCAL, NULL, and update_box().
Referenced by select_colors().
new_color_map_2_quant | ( | j_decompress_ptr | cinfo | ) |
pass2_fs_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
Definition at line 949 of file jquant2.c.
References C0_SHIFT, C1_SHIFT, C2_SHIFT, FALSE, fill_inverse_cmap(), for(), GETJSAMPLE, histogram, LOCAL, num_rows, output_buf, RIGHT_SHIFT, SHIFT_TEMPS, and TRUE.
Referenced by start_pass_2_quant().
pass2_no_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
Definition at line 915 of file jquant2.c.
References C0_SHIFT, C1_SHIFT, C2_SHIFT, fill_inverse_cmap(), for(), GETJSAMPLE, histogram, METHODDEF, num_rows, and output_buf.
Referenced by start_pass_2_quant().
prescan_quantize | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
select_colors | ( | j_decompress_ptr | cinfo, |
int | desired_colors | ||
) |
Definition at line 539 of file jquant2.c.
References C0_SHIFT, C1_SHIFT, C2_SHIFT, compute_color(), i, JPOOL_IMAGE, MAXJSAMPLE, median_cut(), SIZEOF, TRACEMS1, and update_box().
Referenced by finish_pass1().
start_pass_2_quant | ( | j_decompress_ptr | cinfo, |
boolean | is_pre_scan | ||
) |
Definition at line 1167 of file jquant2.c.
References ERREXIT1, FALSE, FAR, finish_pass1(), finish_pass2(), HIST_C0_ELEMS, HIST_C1_ELEMS, HIST_C2_ELEMS, histogram, i, if(), init_error_limit(), JDITHER_FS, JDITHER_NONE, JPOOL_IMAGE, jzero_far(), MAXNUMCOLORS, METHODDEF, NULL, pass2_fs_dither(), pass2_no_dither(), prescan_quantize(), SIZEOF, and TRUE.
Referenced by jinit_2pass_quantizer().
update_box | ( | j_decompress_ptr | cinfo, |
boxptr | boxp | ||
) |
Definition at line 313 of file jquant2.c.
References C0_SCALE, C0_SHIFT, C1_SCALE, C1_SHIFT, C2_SCALE, C2_SHIFT, HIST_C2_ELEMS, histogram, if(), and LOCAL.
Referenced by median_cut(), and select_colors().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:56.
© Copyright Michele Bosi. All rights reserved.