Home
last modified time | relevance | path

Searched refs:compptr (Results 1 – 25 of 61) sorted by relevance

123

/external/pdfium/core/src/fxcodec/libjpeg/
Dfpdfapi_jdinput.c44 jpeg_component_info *compptr; in initial_setup() local
63 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
64 ci++, compptr++) { in initial_setup()
65 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
66 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
69 compptr->h_samp_factor); in initial_setup()
71 compptr->v_samp_factor); in initial_setup()
81 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
82 ci++, compptr++) { in initial_setup()
83 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
[all …]
Dfpdfapi_jccoefct.c152 jpeg_component_info *compptr; in compress_data() local
170 compptr = cinfo->cur_comp_info[ci]; in compress_data()
171 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_data()
172 : compptr->last_col_width; in compress_data()
173 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data()
175 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data()
177 yoffset+yindex < compptr->last_row_height) { in compress_data()
178 (*cinfo->fdct->forward_DCT) (cinfo, compptr, in compress_data()
179 input_buf[compptr->component_index], in compress_data()
182 if (blockcnt < compptr->MCU_width) { in compress_data()
[all …]
Dfpdfapi_jdcoefct.c157 jpeg_component_info *compptr; in decompress_onepass() local
181 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass()
183 if (! compptr->component_needed) { in decompress_onepass()
184 blkn += compptr->MCU_blocks; in decompress_onepass()
187 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass()
188 useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in decompress_onepass()
189 : compptr->last_col_width; in decompress_onepass()
190 output_ptr = output_buf[compptr->component_index] + in decompress_onepass()
191 yoffset * compptr->DCT_scaled_size; in decompress_onepass()
192 start_col = MCU_col_num * compptr->MCU_sample_width; in decompress_onepass()
[all …]
Dfpdfapi_jcmaster.c51 jpeg_component_info *compptr; in initial_setup() local
83 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
84 ci++, compptr++) { in initial_setup()
85 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
86 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
89 compptr->h_samp_factor); in initial_setup()
91 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->component_index = ci; in initial_setup()
[all …]
Dfpdfapi_jcsample.c56 (j_compress_ptr cinfo, jpeg_component_info * compptr,
121 jpeg_component_info * compptr; in sep_downsample() local
124 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample()
125 ci++, compptr++) { in sep_downsample()
127 out_ptr = output_buf[ci] + (out_row_group_index * compptr->v_samp_factor); in sep_downsample()
128 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample()
141 int_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, in int_downsample() argument
146 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample()
150 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample()
151 v_expand = cinfo->max_v_samp_factor / compptr->v_samp_factor; in int_downsample()
[all …]
Dfpdfapi_jdmainct.c166 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_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_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 …]
Dfpdfapi_jddctmgr.c94 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_scaled_size) { in start_pass()
143 ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->DCT_scaled_size); in start_pass()
154 if (! compptr->component_needed || idct->cur_method[ci] == method) in start_pass()
156 qtbl = compptr->quant_table; in start_pass()
167 ISLOW_MULT_TYPE * ismtbl = (ISLOW_MULT_TYPE *) compptr->dct_table; in start_pass()
184 IFAST_MULT_TYPE * ifmtbl = (IFAST_MULT_TYPE *) compptr->dct_table; in start_pass()
216 FLOAT_MULT_TYPE * fmtbl = (FLOAT_MULT_TYPE *) compptr->dct_table; in start_pass()
[all …]
Dfpdfapi_jcmarker.c232 jpeg_component_info *compptr; in emit_dac() local
238 compptr = cinfo->cur_comp_info[i]; in emit_dac()
239 dc_in_use[compptr->dc_tbl_no] = 1; in emit_dac()
240 ac_in_use[compptr->ac_tbl_no] = 1; in emit_dac()
282 jpeg_component_info *compptr; in emit_sof() local
299 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in emit_sof()
300 ci++, compptr++) { in emit_sof()
301 emit_byte(cinfo, compptr->component_id); in emit_sof()
302 emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor); in emit_sof()
303 emit_byte(cinfo, compptr->quant_tbl_no); in emit_sof()
[all …]
Dfpdfapi_jdsample.c29 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
98 jpeg_component_info * compptr; in sep_upsample() local
103 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_upsample()
104 ci++, compptr++) { in sep_upsample()
108 (*upsample->methods[ci]) (cinfo, compptr, in sep_upsample()
158 fullsize_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in fullsize_upsample() argument
171 noop_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in noop_upsample() argument
190 int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in int_upsample() argument
202 h_expand = upsample->h_expand[compptr->component_index]; in int_upsample()
203 v_expand = upsample->v_expand[compptr->component_index]; in int_upsample()
[all …]
Dfpdfapi_jcmainct.c176 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 main->cur_iMCU_row * (compptr->v_samp_factor * DCTSIZE), in process_data_buffer_main()
187 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE), writing); in process_data_buffer_main()
250 jpeg_component_info *compptr; in jinit_c_main_controller() local
269 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_main_controller()
270 ci++, compptr++) { in jinit_c_main_controller()
273 compptr->width_in_blocks * DCTSIZE, in jinit_c_main_controller()
274 (JDIMENSION) jround_up((long) compptr->height_in_blocks, in jinit_c_main_controller()
[all …]
Dfpdfapi_jcprepct.c138 jpeg_component_info * compptr; in pre_process_data() local
175 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data()
176 ci++, compptr++) { in pre_process_data()
178 compptr->width_in_blocks * DCTSIZE, in pre_process_data()
179 (int) (*out_row_group_ctr * compptr->v_samp_factor), in pre_process_data()
180 (int) (out_row_groups_avail * compptr->v_samp_factor)); in pre_process_data()
273 jpeg_component_info * compptr; in create_context_buffer() local
284 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer()
285 ci++, compptr++) { in create_context_buffer()
292 (JDIMENSION) (((long) compptr->width_in_blocks * DCTSIZE * in create_context_buffer()
[all …]
Dfpdfapi_jctrans.c290 jpeg_component_info *compptr; in compress_output() local
294 compptr = cinfo->cur_comp_info[ci]; in compress_output()
296 ((j_common_ptr) cinfo, coef->whole_image[compptr->component_index], in compress_output()
297 coef->iMCU_row_num * compptr->v_samp_factor, in compress_output()
298 (JDIMENSION) compptr->v_samp_factor, FALSE); in compress_output()
309 compptr = cinfo->cur_comp_info[ci]; in compress_output()
310 start_col = MCU_col_num * compptr->MCU_width; in compress_output()
311 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_output()
312 : compptr->last_col_width; in compress_output()
313 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_output()
[all …]
/external/jpeg/
Djdinput.c45 jpeg_component_info *compptr; in initial_setup() local
64 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
65 ci++, compptr++) { in initial_setup()
66 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
67 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
70 compptr->h_samp_factor); in initial_setup()
72 compptr->v_samp_factor); in initial_setup()
82 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
83 ci++, compptr++) { in initial_setup()
84 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
[all …]
Dtransupp.c75 jpeg_component_info *compptr; in do_flip_h() local
85 compptr = dstinfo->comp_info + ci; in do_flip_h()
86 comp_width = MCU_cols * compptr->h_samp_factor; in do_flip_h()
87 for (blk_y = 0; blk_y < compptr->height_in_blocks; in do_flip_h()
88 blk_y += compptr->v_samp_factor) { in do_flip_h()
91 (JDIMENSION) compptr->v_samp_factor, TRUE); in do_flip_h()
92 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in do_flip_h()
125 jpeg_component_info *compptr; in do_flip_v() local
137 compptr = dstinfo->comp_info + ci; in do_flip_v()
138 comp_height = MCU_rows * compptr->v_samp_factor; in do_flip_v()
[all …]
Djccoefct.c151 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 …]
Djcmaster.c50 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 …]
Djdcoefct.c156 jpeg_component_info *compptr; in decompress_onepass() local
193 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass()
195 if (! compptr->component_needed) { in decompress_onepass()
196 blkn += compptr->MCU_blocks; in decompress_onepass()
199 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass()
200 useful_width = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in decompress_onepass()
201 : compptr->last_col_width; in decompress_onepass()
202 output_ptr = output_buf[compptr->component_index] + in decompress_onepass()
203 yoffset * compptr->DCT_scaled_size; in decompress_onepass()
204 start_col = MCU_col_num * compptr->MCU_sample_width; in decompress_onepass()
[all …]
Djcsample.c55 (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 …]
Djdmainct.c165 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 …]
Djddctmgr.c35 void jpeg_idct_armv6 (j_decompress_ptr cinfo, jpeg_component_info * compptr, in jpeg_idct_armv6() argument
39 IFAST_MULT_TYPE *dct_table = (IFAST_MULT_TYPE *)compptr->dct_table; in jpeg_idct_armv6()
47 extern void jpeg_idct_intelsse (j_decompress_ptr cinfo, jpeg_component_info * compptr,
125 jpeg_component_info *compptr; in start_pass() local
130 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in start_pass()
131 ci++, compptr++) { in start_pass()
133 switch (compptr->DCT_scaled_size) { in start_pass()
222 ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->DCT_scaled_size); in start_pass()
233 if (! compptr->component_needed || idct->cur_method[ci] == method) in start_pass()
235 qtbl = compptr->quant_table; in start_pass()
[all …]
Djcmarker.c231 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 …]
Djdsample.c28 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
97 jpeg_component_info * compptr; in sep_upsample() local
102 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_upsample()
103 ci++, compptr++) { in sep_upsample()
107 (*upsample->methods[ci]) (cinfo, compptr, in sep_upsample()
157 fullsize_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in fullsize_upsample() argument
170 noop_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in noop_upsample() argument
189 int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, in int_upsample() argument
201 h_expand = upsample->h_expand[compptr->component_index]; in int_upsample()
202 v_expand = upsample->v_expand[compptr->component_index]; in int_upsample()
[all …]
Djcmainct.c175 jpeg_component_info *compptr; in process_data_buffer_main() local
181 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in process_data_buffer_main()
182 ci++, compptr++) { in process_data_buffer_main()
185 main->cur_iMCU_row * (compptr->v_samp_factor * DCTSIZE), in process_data_buffer_main()
186 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE), writing); in process_data_buffer_main()
249 jpeg_component_info *compptr; in jinit_c_main_controller() local
268 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_main_controller()
269 ci++, compptr++) { in jinit_c_main_controller()
272 compptr->width_in_blocks * DCTSIZE, in jinit_c_main_controller()
273 (JDIMENSION) jround_up((long) compptr->height_in_blocks, in jinit_c_main_controller()
[all …]
Djcprepct.c137 jpeg_component_info * compptr; in pre_process_data() local
174 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in pre_process_data()
175 ci++, compptr++) { in pre_process_data()
177 compptr->width_in_blocks * DCTSIZE, in pre_process_data()
178 (int) (*out_row_group_ctr * compptr->v_samp_factor), in pre_process_data()
179 (int) (out_row_groups_avail * compptr->v_samp_factor)); in pre_process_data()
272 jpeg_component_info * compptr; in create_context_buffer() local
283 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer()
284 ci++, compptr++) { in create_context_buffer()
291 (JDIMENSION) (((long) compptr->width_in_blocks * DCTSIZE * in create_context_buffer()
[all …]
Djctrans.c289 jpeg_component_info *compptr; in compress_output() local
293 compptr = cinfo->cur_comp_info[ci]; in compress_output()
295 ((j_common_ptr) cinfo, coef->whole_image[compptr->component_index], in compress_output()
296 coef->iMCU_row_num * compptr->v_samp_factor, in compress_output()
297 (JDIMENSION) compptr->v_samp_factor, FALSE); in compress_output()
308 compptr = cinfo->cur_comp_info[ci]; in compress_output()
309 start_col = MCU_col_num * compptr->MCU_width; in compress_output()
310 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width in compress_output()
311 : compptr->last_col_width; in compress_output()
312 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_output()
[all …]

123