/external/libjpeg-turbo/ |
D | jdinput.c | 48 jpeg_component_info *compptr; in initial_setup() local 67 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 68 ci++, compptr++) { in initial_setup() 69 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 70 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() 73 compptr->h_samp_factor); in initial_setup() 75 compptr->v_samp_factor); in initial_setup() 95 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 96 ci++, compptr++) { in initial_setup() 98 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup() [all …]
|
D | jccoefct.c | 150 jpeg_component_info *compptr; in compress_data() local 168 compptr = cinfo->cur_comp_info[ci]; in compress_data() 169 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_data() 170 : compptr->last_col_width; in compress_data() 171 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data() 173 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data() 175 yoffset+yindex < compptr->last_row_height) { in compress_data() 176 (*cinfo->fdct->forward_DCT) (cinfo, compptr, in compress_data() 177 input_buf[compptr->component_index], in compress_data() 180 if (blockcnt < compptr->MCU_width) { in compress_data() [all …]
|
D | jdcoefct.c | 94 jpeg_component_info *compptr; in decompress_onepass() local 124 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass() 126 if (! compptr->component_needed) { in decompress_onepass() 127 blkn += compptr->MCU_blocks; in decompress_onepass() 130 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass() 131 useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in decompress_onepass() 132 : compptr->last_col_width; in decompress_onepass() 133 output_ptr = output_buf[compptr->component_index] + in decompress_onepass() 134 yoffset * compptr->_DCT_scaled_size; in decompress_onepass() 136 compptr->MCU_sample_width; in decompress_onepass() [all …]
|
D | jcmaster.c | 74 jpeg_component_info *compptr; in initial_setup() local 113 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 114 ci++, compptr++) { in initial_setup() 115 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 116 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() 119 compptr->h_samp_factor); in initial_setup() 121 compptr->v_samp_factor); in initial_setup() 125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 126 ci++, compptr++) { in initial_setup() 128 compptr->component_index = ci; in initial_setup() [all …]
|
D | transupp.c | 100 jpeg_component_info *compptr; in do_crop() local 106 compptr = dstinfo->comp_info + ci; in do_crop() 107 x_crop_blocks = x_crop_offset * compptr->h_samp_factor; in do_crop() 108 y_crop_blocks = y_crop_offset * compptr->v_samp_factor; in do_crop() 109 for (dst_blk_y = 0; dst_blk_y < compptr->height_in_blocks; in do_crop() 110 dst_blk_y += compptr->v_samp_factor) { in do_crop() 113 (JDIMENSION) compptr->v_samp_factor, TRUE); in do_crop() 117 (JDIMENSION) compptr->v_samp_factor, FALSE); in do_crop() 118 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_crop() 121 compptr->width_in_blocks); in do_crop() [all …]
|
D | jcsample.c | 59 jpeg_component_info * compptr, 125 jpeg_component_info * compptr; in sep_downsample() local 128 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample() 129 ci++, compptr++) { in sep_downsample() 131 out_ptr = output_buf[ci] + (out_row_group_index * compptr->v_samp_factor); in sep_downsample() 132 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample() 145 int_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, in int_downsample() argument 150 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample() 154 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample() 155 v_expand = cinfo->max_v_samp_factor / compptr->v_samp_factor; in int_downsample() [all …]
|
D | jdct.h | 97 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 100 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 103 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 106 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 109 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 112 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 115 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 118 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 121 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 124 (j_decompress_ptr cinfo, jpeg_component_info * compptr, [all …]
|
D | jdmainct.c | 135 jpeg_component_info *compptr; in alloc_funny_pointers() local 146 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers() 147 ci++, compptr++) { in alloc_funny_pointers() 148 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in alloc_funny_pointers() 176 jpeg_component_info *compptr; in make_funny_pointers() local 179 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers() 180 ci++, compptr++) { in make_funny_pointers() 181 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in make_funny_pointers() 216 jpeg_component_info *compptr; in set_bottom_pointers() local 219 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers() [all …]
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jdinput.c | 43 jpeg_component_info *compptr; in initial_setup() local 62 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 63 ci++, compptr++) { in initial_setup() 64 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 65 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() 68 compptr->h_samp_factor); in initial_setup() 70 compptr->v_samp_factor); in initial_setup() 80 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 81 ci++, compptr++) { in initial_setup() 82 compptr->DCT_scaled_size = DCTSIZE; in initial_setup() [all …]
|
D | fpdfapi_jccoefct.c | 151 jpeg_component_info *compptr; in compress_data() local 169 compptr = cinfo->cur_comp_info[ci]; in compress_data() 170 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_data() 171 : compptr->last_col_width; in compress_data() 172 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data() 174 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data() 176 yoffset+yindex < compptr->last_row_height) { in compress_data() 177 (*cinfo->fdct->forward_DCT) (cinfo, compptr, in compress_data() 178 input_buf[compptr->component_index], in compress_data() 181 if (blockcnt < compptr->MCU_width) { in compress_data() [all …]
|
D | fpdfapi_jdcoefct.c | 156 jpeg_component_info *compptr; in decompress_onepass() local 180 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass() 182 if (! compptr->component_needed) { in decompress_onepass() 183 blkn += compptr->MCU_blocks; in decompress_onepass() 186 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass() 187 useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in decompress_onepass() 188 : compptr->last_col_width; in decompress_onepass() 189 output_ptr = output_buf[compptr->component_index] + in decompress_onepass() 190 yoffset * compptr->DCT_scaled_size; in decompress_onepass() 191 start_col = MCU_col_num * compptr->MCU_sample_width; in decompress_onepass() [all …]
|
D | fpdfapi_jcmaster.c | 50 jpeg_component_info *compptr; in initial_setup() local 82 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 83 ci++, compptr++) { in initial_setup() 84 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 85 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() 88 compptr->h_samp_factor); in initial_setup() 90 compptr->v_samp_factor); in initial_setup() 94 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 95 ci++, compptr++) { in initial_setup() 97 compptr->component_index = ci; in initial_setup() [all …]
|
D | fpdfapi_jcsample.c | 55 (j_compress_ptr cinfo, jpeg_component_info * compptr, 120 jpeg_component_info * compptr; in sep_downsample() local 123 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample() 124 ci++, compptr++) { in sep_downsample() 126 out_ptr = output_buf[ci] + (out_row_group_index * compptr->v_samp_factor); in sep_downsample() 127 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample() 140 int_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, in int_downsample() argument 145 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample() 149 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample() 150 v_expand = cinfo->max_v_samp_factor / compptr->v_samp_factor; in int_downsample() [all …]
|
D | fpdfapi_jdmainct.c | 165 jpeg_component_info *compptr; in alloc_funny_pointers() local 176 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers() 177 ci++, compptr++) { in alloc_funny_pointers() 178 rgroup = (compptr->v_samp_factor * compptr->DCT_scaled_size) / in alloc_funny_pointers() 206 jpeg_component_info *compptr; in make_funny_pointers() local 209 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers() 210 ci++, compptr++) { in make_funny_pointers() 211 rgroup = (compptr->v_samp_factor * compptr->DCT_scaled_size) / in make_funny_pointers() 246 jpeg_component_info *compptr; in set_wraparound_pointers() local 249 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_wraparound_pointers() [all …]
|
D | fpdfapi_jddctmgr.c | 93 jpeg_component_info *compptr; in start_pass() local 98 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in start_pass() 99 ci++, compptr++) { in start_pass() 101 switch (compptr->DCT_scaled_size) { in start_pass() 142 ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->DCT_scaled_size); in start_pass() 153 if (! compptr->component_needed || idct->cur_method[ci] == method) in start_pass() 155 qtbl = compptr->quant_table; in start_pass() 166 ISLOW_MULT_TYPE * ismtbl = (ISLOW_MULT_TYPE *) compptr->dct_table; in start_pass() 183 IFAST_MULT_TYPE * ifmtbl = (IFAST_MULT_TYPE *) compptr->dct_table; in start_pass() 215 FLOAT_MULT_TYPE * fmtbl = (FLOAT_MULT_TYPE *) compptr->dct_table; in start_pass() [all …]
|
D | fpdfapi_jcmarker.c | 231 jpeg_component_info *compptr; in emit_dac() local 237 compptr = cinfo->cur_comp_info[i]; in emit_dac() 238 dc_in_use[compptr->dc_tbl_no] = 1; in emit_dac() 239 ac_in_use[compptr->ac_tbl_no] = 1; in emit_dac() 281 jpeg_component_info *compptr; in emit_sof() local 298 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in emit_sof() 299 ci++, compptr++) { in emit_sof() 300 emit_byte(cinfo, compptr->component_id); in emit_sof() 301 emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor); in emit_sof() 302 emit_byte(cinfo, compptr->quant_tbl_no); in emit_sof() [all …]
|
/external/opencv3/3rdparty/libjpeg/ |
D | jccoefct.c | 152 jpeg_component_info *compptr; in compress_data() local 171 compptr = cinfo->cur_comp_info[ci]; in compress_data() 172 forward_DCT = cinfo->fdct->forward_DCT[compptr->component_index]; in compress_data() 173 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_data() 174 : compptr->last_col_width; in compress_data() 175 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data() 176 ypos = yoffset * compptr->DCT_v_scaled_size; in compress_data() 178 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data() 180 yoffset+yindex < compptr->last_row_height) { in compress_data() 181 (*forward_DCT) (cinfo, compptr, in compress_data() [all …]
|
D | jdinput.c | 54 jpeg_component_info *compptr; in jpeg_core_output_dimensions() local 188 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_core_output_dimensions() 189 ci++, compptr++) { in jpeg_core_output_dimensions() 190 compptr->DCT_h_scaled_size = cinfo->min_DCT_h_scaled_size; in jpeg_core_output_dimensions() 191 compptr->DCT_v_scaled_size = cinfo->min_DCT_v_scaled_size; in jpeg_core_output_dimensions() 212 jpeg_component_info *compptr; in initial_setup() local 231 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 232 ci++, compptr++) { in initial_setup() 233 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 234 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() [all …]
|
D | jdcoefct.c | 157 jpeg_component_info *compptr; in decompress_onepass() local 182 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass() 184 if (! compptr->component_needed) { in decompress_onepass() 185 blkn += compptr->MCU_blocks; in decompress_onepass() 188 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass() 189 useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in decompress_onepass() 190 : compptr->last_col_width; in decompress_onepass() 191 output_ptr = output_buf[compptr->component_index] + in decompress_onepass() 192 yoffset * compptr->DCT_v_scaled_size; in decompress_onepass() 193 start_col = MCU_col_num * compptr->MCU_sample_width; in decompress_onepass() [all …]
|
D | jcmaster.c | 224 jpeg_component_info *compptr; in initial_setup() local 280 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 281 ci++, compptr++) { in initial_setup() 282 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup() 283 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup() 286 compptr->h_samp_factor); in initial_setup() 288 compptr->v_samp_factor); in initial_setup() 292 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup() 293 ci++, compptr++) { in initial_setup() 295 compptr->component_index = ci; in initial_setup() [all …]
|
D | jcmainct.c | 176 jpeg_component_info *compptr; in process_data_buffer_main() local 182 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in process_data_buffer_main() 183 ci++, compptr++) { in process_data_buffer_main() 186 ((JDIMENSION) (compptr->v_samp_factor * cinfo->min_DCT_v_scaled_size)), in process_data_buffer_main() 187 (JDIMENSION) (compptr->v_samp_factor * cinfo->min_DCT_v_scaled_size), in process_data_buffer_main() 252 jpeg_component_info *compptr; in jinit_c_main_controller() local 271 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_main_controller() 272 ci++, compptr++) { in jinit_c_main_controller() 275 compptr->width_in_blocks * ((JDIMENSION) compptr->DCT_h_scaled_size), in jinit_c_main_controller() 276 ((JDIMENSION) jround_up((long) compptr->height_in_blocks, in jinit_c_main_controller() [all …]
|
D | jdmainct.c | 166 jpeg_component_info *compptr; in alloc_funny_pointers() local 177 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers() 178 ci++, compptr++) { in alloc_funny_pointers() 179 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / in alloc_funny_pointers() 207 jpeg_component_info *compptr; in make_funny_pointers() local 210 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers() 211 ci++, compptr++) { in make_funny_pointers() 212 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / in make_funny_pointers() 247 jpeg_component_info *compptr; in set_wraparound_pointers() local 250 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_wraparound_pointers() [all …]
|
D | jdct.h | 235 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 238 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 241 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 244 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 247 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 250 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 253 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 256 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 259 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, 262 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, [all …]
|
D | jcsample.c | 55 (j_compress_ptr cinfo, jpeg_component_info * compptr, 129 jpeg_component_info * compptr; in sep_downsample() local 132 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample() 133 ci++, compptr++) { in sep_downsample() 137 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample() 150 int_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, in int_downsample() argument 156 JDIMENSION output_cols = compptr->width_in_blocks * compptr->DCT_h_scaled_size; in int_downsample() 160 h_expand = downsample->h_expand[compptr->component_index]; in int_downsample() 161 v_expand = downsample->v_expand[compptr->component_index]; in int_downsample() 199 fullsize_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, in fullsize_downsample() argument [all …]
|
D | jddctmgr.c | 94 jpeg_component_info *compptr; in start_pass() local 99 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in start_pass() 100 ci++, compptr++) { in start_pass() 102 switch ((compptr->DCT_h_scaled_size << 8) + compptr->DCT_v_scaled_size) { in start_pass() 256 compptr->DCT_h_scaled_size, compptr->DCT_v_scaled_size); in start_pass() 267 if (! compptr->component_needed || idct->cur_method[ci] == method) in start_pass() 269 qtbl = compptr->quant_table; in start_pass() 280 ISLOW_MULT_TYPE * ismtbl = (ISLOW_MULT_TYPE *) compptr->dct_table; in start_pass() 297 IFAST_MULT_TYPE * ifmtbl = (IFAST_MULT_TYPE *) compptr->dct_table; in start_pass() 330 FLOAT_MULT_TYPE * fmtbl = (FLOAT_MULT_TYPE *) compptr->dct_table; in start_pass() [all …]
|