Data Structures | |
struct | box |
struct | my_cquantizer |
Typedefs | |
typedef box * | boxptr |
typedef INT16 | FSERROR |
typedef FSERROR FAR * | FSERRPTR |
typedef histcell | hist1d [HIST_C2_ELEMS] |
typedef hist1d FAR * | hist2d |
typedef hist2d * | hist3d |
typedef UINT16 | histcell |
typedef histcell FAR * | histptr |
typedef int | LOCFSERROR |
typedef my_cquantizer * | my_cquantize_ptr |
#define B_SCALE 1 /* and B by this much */ |
#define BOX_C0_ELEMS (1<<BOX_C0_LOG) /* # of hist cells in update box */ |
Referenced by find_best_colors().
#define BOX_C0_LOG (HIST_C0_BITS-3) |
#define BOX_C0_SHIFT (C0_SHIFT + BOX_C0_LOG) |
Referenced by find_nearby_colors().
#define BOX_C1_ELEMS (1<<BOX_C1_LOG) |
Referenced by find_best_colors().
#define BOX_C1_LOG (HIST_C1_BITS-3) |
#define BOX_C1_SHIFT (C1_SHIFT + BOX_C1_LOG) |
Referenced by find_nearby_colors().
#define BOX_C2_ELEMS (1<<BOX_C2_LOG) |
Referenced by find_best_colors().
#define BOX_C2_LOG (HIST_C2_BITS-3) |
#define BOX_C2_SHIFT (C2_SHIFT + BOX_C2_LOG) |
Referenced by find_nearby_colors().
#define C0_SCALE B_SCALE |
Referenced by find_best_colors(), find_nearby_colors(), and median_cut().
#define C0_SHIFT (BITS_IN_JSAMPLE-HIST_C0_BITS) |
Referenced by for(), median_cut(), pass2_fs_dither(), and prescan_quantize().
#define C1_SCALE G_SCALE |
Referenced by find_best_colors(), find_nearby_colors(), and median_cut().
#define C1_SHIFT (BITS_IN_JSAMPLE-HIST_C1_BITS) |
Referenced by for(), median_cut(), pass2_fs_dither(), and prescan_quantize().
#define C2_SCALE R_SCALE |
Referenced by find_best_colors(), find_nearby_colors(), and median_cut().
#define C2_SHIFT (BITS_IN_JSAMPLE-HIST_C2_BITS) |
Referenced by for(), median_cut(), pass2_fs_dither(), and prescan_quantize().
#define G_SCALE 3 /* scale G distances by this much */ |
#define HIST_C0_ELEMS (1<<HIST_C0_BITS) |
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
#define HIST_C1_ELEMS (1<<HIST_C1_BITS) |
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
#define HIST_C2_ELEMS (1<<HIST_C2_BITS) |
Referenced by jinit_2pass_quantizer(), and start_pass_2_quant().
#define JPEG_INTERNALS |
#define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */ |
Referenced by find_nearby_colors(), jinit_2pass_quantizer(), and start_pass_2_quant().
#define R_SCALE 2 /* scale R distances by this much */ |
Referenced by find_best_colors().
Referenced by find_best_colors().
Referenced by find_best_colors().
#define STEPSIZE ((MAXJSAMPLE+1)/16) |
typedef histcell hist1d[HIST_C2_ELEMS] |
typedef int LOCFSERROR |
typedef my_cquantizer* my_cquantize_ptr |
find_best_colors | ( | j_decompress_ptr | cinfo, |
int | minc0, | ||
int | minc1, | ||
int | minc2, | ||
int | numcolors, | ||
JSAMPLE | colorlist[], | ||
JSAMPLE | bestcolor[] | ||
) |
find_nearby_colors | ( | j_decompress_ptr | cinfo, |
int | minc0, | ||
int | minc1, | ||
int | minc2, | ||
JSAMPLE | colorlist[] | ||
) |
References BOX_C0_SHIFT, BOX_C1_SHIFT, BOX_C2_SHIFT, C0_SCALE, C1_SCALE, C2_SCALE, GETJSAMPLE, i, MAXNUMCOLORS, minc0, minc1, minc2, numcolors, and x.
finish_pass1 | ( | j_decompress_ptr | cinfo | ) |
References my_cquantizer::desired, my_cquantizer::needs_zeroed, my_cquantizer::sv_colormap, and TRUE.
Referenced by start_pass_2_quant().
finish_pass2 | ( | j_decompress_ptr | cinfo | ) |
Referenced by start_pass_2_quant().
for | ( | i | = 0 | ) |
References box::colorcount, and box::volume.
for | ( | ) |
jinit_2pass_quantizer | ( | j_decompress_ptr | cinfo | ) |
References cinfo, cquantize, my_cquantizer::desired, desired, ERREXIT, ERREXIT1, my_cquantizer::error_limiter, my_cquantizer::fserrors, HIST_C0_ELEMS, HIST_C1_ELEMS, HIST_C2_ELEMS, my_cquantizer::histogram, i, JDITHER_FS, JDITHER_NONE, JPOOL_IMAGE, MAXNUMCOLORS, my_cquantizer::needs_zeroed, new_color_map_2_quant(), NULL, my_cquantizer::pub, SIZEOF, start_pass_2_quant(), my_cquantizer::sv_colormap, and TRUE.
Referenced by master_selection().
median_cut | ( | j_decompress_ptr | cinfo, |
boxptr | boxlist, | ||
int | numboxes, | ||
int | desired_colors | ||
) |
References c0, C0_SCALE, C0_SHIFT, box::c0max, box::c0min, c1, C1_SCALE, C1_SHIFT, box::c1max, box::c1min, c2, C2_SCALE, C2_SHIFT, box::c2max, box::c2min, n, NULL, numboxes, and update_box().
new_color_map_2_quant | ( | j_decompress_ptr | cinfo | ) |
References my_cquantizer::needs_zeroed, and TRUE.
Referenced by jinit_2pass_quantizer().
pass2_fs_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
References C0_SHIFT, C1_SHIFT, C2_SHIFT, cachep, col, my_cquantizer::error_limiter, FALSE, for(), my_cquantizer::fserrors, GETJSAMPLE, my_cquantizer::histogram, histogram, num_rows, my_cquantizer::on_odd_row, outptr, RIGHT_SHIFT, row, SHIFT_TEMPS, TRUE, and width.
Referenced by start_pass_2_quant().
prescan_quantize | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
References C0_SHIFT, C1_SHIFT, C2_SHIFT, col, cquantize, for(), GETJSAMPLE, my_cquantizer::histogram, histogram, histp, num_rows, row, and width.
Referenced by start_pass_2_quant().
start_pass_2_quant | ( | j_decompress_ptr | cinfo, |
boolean | is_pre_scan | ||
) |
References ERREXIT1, my_cquantizer::error_limiter, FALSE, FAR, finish_pass1(), finish_pass2(), my_cquantizer::fserrors, HIST_C0_ELEMS, HIST_C1_ELEMS, HIST_C2_ELEMS, my_cquantizer::histogram, histogram, if(), JDITHER_FS, JDITHER_NONE, MAXNUMCOLORS, my_cquantizer::needs_zeroed, NULL, my_cquantizer::on_odd_row, pass2_fs_dither(), prescan_quantize(), my_cquantizer::pub, SIZEOF, and TRUE.
Referenced by jinit_2pass_quantizer().
update_box | ( | cinfo | , |
& | boxlist[0] | ||
) |
Referenced by median_cut().
have_c0min __pad0__ |
have_c0max __pad1__ |
have_c1min __pad2__ |
have_c1max __pad3__ |
have_c2min __pad4__ |
have_c2max __pad5__ |
JSAMPLE bestcolor[BOX_C0_ELEMS *BOX_C1_ELEMS *BOX_C2_ELEMS] |
Referenced by find_best_colors().
boxlist |
register int c0 = BOX_C0_LOG |
Referenced by dsp16_op_kernel_cosfix(), for(), math::matrix3d::matrix3d(), math::matrix4d::matrix4d(), median_cut(), and utf8_to_unicode().
int c0max = boxp->c0max |
int c0min = boxp->c0min |
long c0total = 0 |
register int c1 = BOX_C1_LOG |
Referenced by for(), jpeg_gen_optimal_table(), math::matrix3d::matrix3d(), math::matrix4d::matrix4d(), median_cut(), and utf8_to_unicode().
int c1max = boxp->c1max |
int c1min = boxp->c1min |
long c1total = 0 |
register int c2 = BOX_C2_LOG |
int c2max = boxp->c2max |
Referenced by for().
int c2min = boxp->c2min |
Referenced by for().
long c2total = 0 |
register histptr cachep |
Referenced by for(), and pass2_fs_dither().
ccount = 0 |
JDIMENSION col |
Referenced by cmyk_ycck_convert(), color_quantize(), color_quantize3(), et024006_DrawBitmap(), et024006_PrintString(), for(), gray_rgb_convert(), grayscale_convert(), h2v1_merged_upsample(), h2v2_merged_upsample(), null_convert(), pass2_fs_dither(), prescan_quantize(), quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), rgb_gray_convert(), rgb_ycc_convert(), start_pass(), start_pass_fdctmgr(), ycc_rgb565_convert(), ycc_rgb_convert(), and ycck_cmyk_convert().
boxp colorcount = ccount |
JSAMPLE colorlist[MAXNUMCOLORS] |
long count |
Referenced by ak8975_get_data(), audio_mixer_dacs_get_volume_direct(), audio_mixer_dacs_is_volume_muted_direct(), audio_mixer_dacs_set_volume_direct(), bma020_get_accel(), bma150_get_accel(), bma180_get_accel(), bma220_get_accel(), bma222_get_accel(), bma250_get_accel(), et024006_CopyPixelsFromScreen(), et024006_DrawFilledRect(), et024006_DuplicatePixel(), et024006_GetPixmap(), et024006_PutBitmap(), et024006_PutPixmap(), expand_right_edge(), hmc5883l_device_id(), hmc5883l_get_data(), hmc5883l_selftest(), imu3000_get_rotation(), imu3000_get_temperature(), is_usb_mouse_event(), itg3200_get_rotation(), itg3200_get_temperature(), jcopy_block_row(), jcopy_sample_rows(), kxtf9_get_accel(), main(), memcpy_be(), null_convert(), pbuf_free(), sensor_device_enum(), sfh5712_get_light(), sfh7770_get_light(), sfh7770_get_proximity(), usb_stream_count_nb_buffer(), and while().
register JSAMPLE* cptr |
Referenced by find_best_colors().
c0<<= BOX_C0_LOG; c1 <<= BOX_C1_LOG; c2 <<= BOX_C2_LOG; cptr = bestcolor; for (ic0 = 0; ic0 < BOX_C0_ELEMS; ic0++) { for (ic1 = 0; ic1 < BOX_C1_ELEMS; ic1++) { cachep = & histogram[c0+ic0][c1+ic1][c2]; for (ic2 = 0; ic2 < BOX_C2_ELEMS; ic2++) { *cachep++ = (histcell) (GETJSAMPLE(*cptr++) + 1); } } }}pass2_no_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows){ my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo-> cquantize |
Referenced by alloc_fs_workspace(), color_quantize(), color_quantize3(), create_colorindex(), create_colormap(), create_odither_tables(), jinit_1pass_quantizer(), jinit_2pass_quantizer(), prescan_quantize(), quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), and start_pass_1_quant().
INT32 dist0 |
Referenced by find_best_colors().
Referenced by find_best_colors().
Referenced by find_best_colors().
goto have_c0max |
goto have_c1max |
goto have_c1min |
goto have_c2max |
goto have_c2min |
Referenced by for(), pass2_fs_dither(), prescan_quantize(), and start_pass_2_quant().
histptr histp |
Referenced by for(), and prescan_quantize().
int ic0 |
Referenced by find_best_colors().
int ic1 |
Referenced by find_best_colors().
int ic2 |
Referenced by find_best_colors().
int in |
Referenced by dsp_adpcm_ima_decode(), and for().
register JSAMPROW inptr |
Referenced by cmyk_ycck_convert(), fullsize_smooth_downsample(), gray_rgb_convert(), grayscale_convert(), h2v1_downsample(), h2v1_fancy_upsample(), h2v1_upsample(), h2v2_upsample(), int_downsample(), int_upsample(), jcopy_block_row(), jcopy_sample_rows(), jpeg_idct_2x2(), jpeg_idct_4x4(), jpeg_idct_ifast(), jpeg_idct_islow(), null_convert(), rgb_gray_convert(), and rgb_ycc_convert().
register long maxc = 0 |
register INT32 maxv = 0 |
minc0 = (c0 << BOX_C0_SHIFT) + ((1 << C0_SHIFT) >> 1) |
Referenced by find_nearby_colors().
minc1 = (c1 << BOX_C1_SHIFT) + ((1 << C1_SHIFT) >> 1) |
Referenced by find_nearby_colors().
minc2 = (c2 << BOX_C2_SHIFT) + ((1 << C2_SHIFT) >> 1) |
Referenced by find_nearby_colors().
numboxes |
Referenced by median_cut().
Referenced by find_best_colors(), and find_nearby_colors().
out = 0 |
register JSAMPROW outptr |
Referenced by for(), fullsize_smooth_downsample(), gray_rgb_convert(), grayscale_convert(), h2v1_downsample(), h2v1_fancy_upsample(), h2v1_merged_upsample(), h2v1_upsample(), h2v2_downsample(), h2v2_fancy_upsample(), h2v2_smooth_downsample(), h2v2_upsample(), int_downsample(), int_upsample(), jcopy_block_row(), jcopy_sample_rows(), jpeg_idct_2x2(), jpeg_idct_4x4(), jpeg_idct_ifast(), jpeg_idct_islow(), null_convert(), pass2_fs_dither(), rgb_gray_convert(), ycc_rgb_convert(), and ycck_cmyk_convert().
int row |
Referenced by color_quantize(), color_quantize3(), et024006_DrawBitmap(), et024006_PrintString(), expand_bottom_edge(), expand_right_edge(), for(), jcopy_sample_rows(), pass2_fs_dither(), pre_process_context(), prescan_quantize(), quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), start_pass(), and start_pass_fdctmgr().
table |
Referenced by for().
long total = 0 |
Referenced by membag_get_total(), and nav_filterlist_nb().
JDIMENSION width = cinfo->output_width |
Referenced by color_quantize(), color_quantize3(), flashc_erase_gp_fuse_bitfield(), for(), gfx_generic_draw_filled_rect(), gui_buffer_print_dsp16_bars(), gui_buffer_print_dsp16_signal(), main(), pass2_fs_dither(), prescan_quantize(), print(), printi(), printk_va(), prints(), quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), and wtk_label_handler().