Go to the source code of this file.
Classes | |
| struct | my_cquantizer |
Macros | |
| #define | JPEG_INTERNALS |
| #define | ODITHER_SIZE 16 /* dimension of dither matrix */ |
| #define | ODITHER_CELLS (ODITHER_SIZE * ODITHER_SIZE) /* # cells in matrix */ |
| #define | ODITHER_MASK |
| #define | MAX_Q_COMPS 4 /* max components I can handle */ |
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_cquantizer * | my_cquantize_ptr |
Variables | |
| static const UINT8 | base_dither_matrix [ODITHER_SIZE][ODITHER_SIZE] |
| #define JPEG_INTERNALS |
Definition at line 10 of file jquant1.cpp.
| #define MAX_Q_COMPS 4 /* max components I can handle */ |
Definition at line 134 of file jquant1.cpp.
| #define ODITHER_CELLS (ODITHER_SIZE * ODITHER_SIZE) /* # cells in matrix */ |
Definition at line 69 of file jquant1.cpp.
| #define ODITHER_MASK |
Definition at line 70 of file jquant1.cpp.
| #define ODITHER_SIZE 16 /* dimension of dither matrix */ |
Definition at line 67 of file jquant1.cpp.
Definition at line 123 of file jquant1.cpp.
Definition at line 130 of file jquant1.cpp.
| typedef int LOCFSERROR |
Definition at line 124 of file jquant1.cpp.
| typedef my_cquantizer* my_cquantize_ptr |
Definition at line 164 of file jquant1.cpp.
| typedef int ODITHER_MATRIX[ODITHER_SIZE][ODITHER_SIZE] |
Definition at line 73 of file jquant1.cpp.
| typedef int(* ODITHER_MATRIX_PTR)[ODITHER_SIZE] |
Definition at line 74 of file jquant1.cpp.
| alloc_fs_workspace | ( | j_decompress_ptr | cinfo | ) |
Definition at line 763 of file jquant1.cpp.
References jpeg_decompress_struct::cquantize, my_cquantizer::fserrors, JPOOL_IMAGE, jpeg_decompress_struct::out_color_components, jpeg_decompress_struct::output_width, and SIZEOF.
Referenced by start_pass_1_quant().

| color_quantize | ( | j_decompress_ptr | cinfo, |
| JSAMPARRAY | input_buf, | ||
| JSAMPARRAY | output_buf, | ||
| int | num_rows | ||
| ) |
Definition at line 469 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, for(), GETJSAMPLE, jpeg_decompress_struct::out_color_components, output_buf, and jpeg_decompress_struct::output_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 500 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, for(), GETJSAMPLE, output_buf, and jpeg_decompress_struct::output_width.
Referenced by start_pass_1_quant().


| create_colorindex | ( | j_decompress_ptr | cinfo | ) |
Definition at line 335 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, jpeg_decompress_struct::dither_mode, FALSE, my_cquantizer::is_padded, JDITHER_ORDERED, JPOOL_IMAGE, largest_input_value(), MAXJSAMPLE, my_cquantizer::Ncolors, jpeg_decompress_struct::out_color_components, my_cquantizer::sv_actual, TRUE, and val.
Referenced by start_pass_1_quant().


| create_colormap | ( | j_decompress_ptr | cinfo | ) |
Definition at line 271 of file jquant1.cpp.
References mrpt::utils::colormap(), jpeg_decompress_struct::cquantize, JPOOL_IMAGE, my_cquantizer::Ncolors, jpeg_decompress_struct::out_color_components, output_value(), select_ncolors(), my_cquantizer::sv_actual, my_cquantizer::sv_colormap, TRACEMS1, TRACEMS4, and val.

| create_odither_tables | ( | j_decompress_ptr | cinfo | ) |
Definition at line 440 of file jquant1.cpp.
References jpeg_decompress_struct::cquantize, for(), make_odither_array(), my_cquantizer::Ncolors, my_cquantizer::odither, and jpeg_decompress_struct::out_color_components.
Referenced by start_pass_1_quant().


| finish_pass_1_quant | ( | j_decompress_ptr | ) |
Definition at line 837 of file jquant1.cpp.
| jinit_1pass_quantizer | ( | j_decompress_ptr | cinfo | ) |
Definition at line 854 of file jquant1.cpp.
Referenced by master_selection().

| largest_input_value | ( | j_decompress_ptr | cinfo, |
| int | ci, | ||
| int | j, | ||
| int | maxj | ||
| ) |
Definition at line 256 of file jquant1.cpp.
References MAXJSAMPLE, and MRPT_UNUSED_PARAM.
Referenced by create_colorindex().

| make_odither_array | ( | j_decompress_ptr | cinfo, |
| int | ncolors | ||
| ) |
Definition at line 402 of file jquant1.cpp.
References base_dither_matrix, JPOOL_IMAGE, MAXJSAMPLE, ODITHER_CELLS, ODITHER_SIZE, and SIZEOF.
Referenced by create_odither_tables().

| new_color_map_1_quant | ( | j_decompress_ptr | cinfo | ) |
Definition at line 844 of file jquant1.cpp.
References ERREXIT.
| output_value | ( | j_decompress_ptr | cinfo, |
| int | ci, | ||
| int | j, | ||
| int | maxj | ||
| ) |
Definition at line 241 of file jquant1.cpp.
References MAXJSAMPLE, and MRPT_UNUSED_PARAM.
Referenced by create_colormap().

| quantize3_ord_dither | ( | j_decompress_ptr | cinfo, |
| JSAMPARRAY | input_buf, | ||
| JSAMPARRAY | output_buf, | ||
| int | num_rows | ||
| ) |
Definition at line 587 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, for(), GETJSAMPLE, my_cquantizer::odither, ODITHER_MASK, output_buf, jpeg_decompress_struct::output_width, and my_cquantizer::row_index.
Referenced by start_pass_1_quant().


| quantize_fs_dither | ( | j_decompress_ptr | cinfo, |
| JSAMPARRAY | input_buf, | ||
| JSAMPARRAY | output_buf, | ||
| int | num_rows | ||
| ) |
Definition at line 634 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, FALSE, FAR, for(), my_cquantizer::fserrors, GETJSAMPLE, jzero_far(), my_cquantizer::on_odd_row, jpeg_decompress_struct::out_color_components, output_buf, jpeg_decompress_struct::output_width, range_limit, RIGHT_SHIFT, jpeg_decompress_struct::sample_range_limit, SHIFT_TEMPS, SIZEOF, my_cquantizer::sv_colormap, and TRUE.
Referenced by start_pass_1_quant().


| quantize_ord_dither | ( | j_decompress_ptr | cinfo, |
| JSAMPARRAY | input_buf, | ||
| JSAMPARRAY | output_buf, | ||
| int | num_rows | ||
| ) |
Definition at line 530 of file jquant1.cpp.
References my_cquantizer::colorindex, jpeg_decompress_struct::cquantize, FAR, for(), GETJSAMPLE, jzero_far(), my_cquantizer::odither, ODITHER_MASK, jpeg_decompress_struct::out_color_components, output_buf, jpeg_decompress_struct::output_width, my_cquantizer::row_index, and SIZEOF.
Referenced by start_pass_1_quant().


| select_ncolors | ( | j_decompress_ptr | cinfo, |
| int | Ncolors[] | ||
| ) |
Definition at line 181 of file jquant1.cpp.
References jpeg_decompress_struct::desired_number_of_colors, ERREXIT1, FALSE, JCS_RGB, jpeg_decompress_struct::out_color_components, jpeg_decompress_struct::out_color_space, and TRUE.
Referenced by create_colormap().

| start_pass_1_quant | ( | j_decompress_ptr | cinfo, |
| boolean | is_pre_scan | ||
| ) |
Definition at line 782 of file jquant1.cpp.
References jpeg_decompress_struct::actual_number_of_colors, alloc_fs_workspace(), color_quantize(), color_quantize3(), jpeg_decompress_struct::colormap, jpeg_decompress_struct::cquantize, create_colorindex(), create_odither_tables(), jpeg_decompress_struct::dither_mode, ERREXIT, FALSE, FAR, my_cquantizer::fserrors, my_cquantizer::is_padded, JDITHER_FS, JDITHER_NONE, JDITHER_ORDERED, jzero_far(), MRPT_UNUSED_PARAM, my_cquantizer::odither, my_cquantizer::on_odd_row, jpeg_decompress_struct::out_color_components, jpeg_decompress_struct::output_width, my_cquantizer::pub, quantize3_ord_dither(), quantize_fs_dither(), quantize_ord_dither(), my_cquantizer::row_index, SIZEOF, my_cquantizer::sv_actual, and my_cquantizer::sv_colormap.

|
static |
Definition at line 76 of file jquant1.cpp.
Referenced by make_odither_array().
| Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 63ea9d1f1 Thu Nov 23 00:06:53 2017 +0100 at mar 26 may 2026 12:19:29 CEST |