Data Structures | |
struct | my_cquantizer |
Macros | |
#define | JPEG_INTERNALS |
#define | MAX_Q_COMPS 4 /* max components I can handle */ |
#define | ODITHER_CELLS (ODITHER_SIZE*ODITHER_SIZE) /* # cells in matrix */ |
#define | ODITHER_MASK (ODITHER_SIZE-1) /* mask for wrapping around counters */ |
#define | ODITHER_SIZE 16 /* dimension of dither matrix */ |
Typedefs | |
typedef INT16 | FSERROR |
typedef FSERROR FAR * | FSERRPTR |
typedef int | LOCFSERROR |
typedef my_cquantizer * | my_cquantize_ptr |
typedef int | ODITHER_MATRIX [ODITHER_SIZE][ODITHER_SIZE] |
typedef int(* | ODITHER_MATRIX_PTR )[ODITHER_SIZE] |
Variables | |
static const UINT8 | base_dither_matrix [ODITHER_SIZE][ODITHER_SIZE] |
boolean | changed |
do | |
int | i |
int | iroot = 1 |
int | j |
int | max_colors = cinfo->desired_number_of_colors |
static const int | RGB_order [3] = { RGB_GREEN, RGB_RED, RGB_BLUE } |
long | temp = iroot |
int | total_colors = 1 |
#define JPEG_INTERNALS |
#define MAX_Q_COMPS 4 /* max components I can handle */ |
Referenced by jinit_1pass_quantizer().
#define ODITHER_CELLS (ODITHER_SIZE*ODITHER_SIZE) /* # cells in matrix */ |
Referenced by make_odither_array().
#define ODITHER_MASK (ODITHER_SIZE-1) /* mask for wrapping around counters */ |
Referenced by quantize3_ord_dither(), and quantize_ord_dither().
#define ODITHER_SIZE 16 /* dimension of dither matrix */ |
Referenced by make_odither_array().
typedef int LOCFSERROR |
typedef my_cquantizer* my_cquantize_ptr |
typedef int ODITHER_MATRIX[ODITHER_SIZE][ODITHER_SIZE] |
typedef int(* ODITHER_MATRIX_PTR)[ODITHER_SIZE] |
alloc_fs_workspace | ( | j_decompress_ptr | cinfo | ) |
References cquantize, 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 | ||
) |
References col, my_cquantizer::colorindex, cquantize, for(), 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 | ||
) |
References col, my_cquantizer::colorindex, cquantize, for(), GETJSAMPLE, num_rows, row, and width.
Referenced by start_pass_1_quant().
create_colorindex | ( | j_decompress_ptr | cinfo | ) |
References cinfo, my_cquantizer::colorindex, cquantize, FALSE, i, if(), my_cquantizer::is_padded, j, JDITHER_ORDERED, JPOOL_IMAGE, MAXJSAMPLE, my_cquantizer::Ncolors, my_cquantizer::sv_actual, TRUE, and val.
Referenced by jinit_1pass_quantizer(), and start_pass_1_quant().
create_colormap | ( | j_decompress_ptr | cinfo | ) |
References cinfo, colormap, cquantize, i, JPOOL_IMAGE, my_cquantizer::Ncolors, my_cquantizer::sv_actual, my_cquantizer::sv_colormap, total_colors, TRACEMS1, TRACEMS4, and val.
Referenced by jinit_1pass_quantizer().
create_odither_tables | ( | j_decompress_ptr | cinfo | ) |
References cquantize, for(), i, j, make_odither_array(), my_cquantizer::Ncolors, NULL, and my_cquantizer::odither.
Referenced by start_pass_1_quant().
ERREXIT1 | ( | cinfo | , |
JERR_QUANT_FEW_COLORS | , | ||
(int) | temp | ||
) |
finish_pass_1_quant | ( | j_decompress_ptr | cinfo | ) |
Referenced by jinit_1pass_quantizer().
jinit_1pass_quantizer | ( | j_decompress_ptr | cinfo | ) |
References alloc_fs_workspace(), cquantize, create_colorindex(), create_colormap(), ERREXIT1, finish_pass_1_quant(), my_cquantizer::fserrors, JDITHER_FS, JPOOL_IMAGE, MAX_Q_COMPS, MAXJSAMPLE, new_color_map_1_quant(), NULL, my_cquantizer::odither, my_cquantizer::pub, SIZEOF, and start_pass_1_quant().
Referenced by master_selection().
make_odither_array | ( | j_decompress_ptr | cinfo, |
int | ncolors | ||
) |
References base_dither_matrix, den, j, JPOOL_IMAGE, MAXJSAMPLE, num, ODITHER_CELLS, ODITHER_SIZE, and SIZEOF.
Referenced by create_odither_tables().
new_color_map_1_quant | ( | j_decompress_ptr | cinfo | ) |
References ERREXIT.
Referenced by jinit_1pass_quantizer().
quantize3_ord_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
References col, my_cquantizer::colorindex, cquantize, for(), GETJSAMPLE, num_rows, my_cquantizer::odither, ODITHER_MASK, row, my_cquantizer::row_index, and width.
Referenced by start_pass_1_quant().
quantize_fs_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
References ci, col, my_cquantizer::colorindex, cquantize, FALSE, FAR, for(), my_cquantizer::fserrors, GETJSAMPLE, num_rows, my_cquantizer::on_odd_row, RIGHT_SHIFT, row, SHIFT_TEMPS, SIZEOF, my_cquantizer::sv_colormap, TRUE, and width.
Referenced by start_pass_1_quant().
quantize_ord_dither | ( | j_decompress_ptr | cinfo, |
JSAMPARRAY | input_buf, | ||
JSAMPARRAY | output_buf, | ||
int | num_rows | ||
) |
References ci, col, my_cquantizer::colorindex, cquantize, FAR, for(), GETJSAMPLE, num_rows, my_cquantizer::odither, ODITHER_MASK, row, my_cquantizer::row_index, SIZEOF, and width.
Referenced by start_pass_1_quant().
start_pass_1_quant | ( | j_decompress_ptr | cinfo, |
boolean | is_pre_scan | ||
) |
References alloc_fs_workspace(), color_quantize(), color_quantize3(), cquantize, create_colorindex(), create_odither_tables(), ERREXIT, FALSE, FAR, my_cquantizer::fserrors, i, my_cquantizer::is_padded, JDITHER_FS, JDITHER_NONE, JDITHER_ORDERED, NULL, my_cquantizer::odither, my_cquantizer::on_odd_row, my_cquantizer::pub, quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), my_cquantizer::row_index, SIZEOF, my_cquantizer::sv_actual, my_cquantizer::sv_colormap, and switch().
Referenced by jinit_1pass_quantizer().
while | ( | changed | ) |
|
static |
Referenced by make_odither_array().
boolean changed |
int i |
iroot = 1 |
Referenced by for().
int j |
Referenced by at45dbx_example_test_byte_mem(), audio_mixer_create_buffers_direct(), create_colorindex(), create_odither_tables(), draw_mandel(), draw_plasma(), dsp16_gen_saw(), dsp16_resampling_setup(), dsp16_trans_complexfft(), dsp16_trans_complexifft(), dsp16_trans_realcomplexfft(), dsp32_gen_saw(), dsp32_trans_realcomplexfft(), e_actuator_ScheduleCmdSet(), e_cptime_RecordScheduledCmd(), e_usbsys_lsusb(), fat_example_parse_cmd(), fget_struct(), fsaccess_alloc_nav_id(), host_audio_task(), jpeg_gen_optimal_table(), lodepng_decode_display(), LodePNG_UnknownChunks_copy(), main(), make_odither_array(), memp_init(), mxt_create_report_id_map(), math::matrix3d::operator()(), math::matrix4d::operator()(), player_init(), player_shutdown(), printbuf(), toggle_led(), unicode2ascii(), and usb_stream_fill_input_buffers().
int max_colors = cinfo->desired_number_of_colors |
|
static |
temp = iroot |
Referenced by BSP_USART_PrintHex(), calendar_time_between_dates(), dsp16_filt_lms(), dsp16_filt_nlms(), dsp16_op_pow(), dsp16_trans_complexfft(), dsp16_trans_complexifft(), dsp16_trans_realcomplexfft(), dsp16_vect_complex_conj(), dsp32_filt_lms(), dsp32_filt_nlms(), dsp32_op_pow(), dsp32_trans_realcomplexfft(), dsp_calculate_fft(), dsp_debug_read_q(), dsp_debug_sprint_after_radix(), dsp_op_gcd(), dsp_sprint_after_radix(), encode_one_block(), fixed_sqrt(), forward_DCT(), htest_one_block(), jpeg_add_quant_table(), LodePNG_InfoPng_swap(), main(), usb_get_descriptor(), and usb_rx_notify().
return total_colors = 1 |
Referenced by create_colormap().