Home
last modified time | relevance | path

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

12

/external/libjpeg-turbo/
Djdinput.c48 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 || in initial_setup()
70 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup()
71 compptr->v_samp_factor <= 0 || in initial_setup()
72 compptr->v_samp_factor > MAX_SAMP_FACTOR) in initial_setup()
75 compptr->h_samp_factor); in initial_setup()
77 compptr->v_samp_factor); in initial_setup()
97 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
[all …]
Djccoefct.c149 jpeg_component_info *compptr; in compress_data() local
167 compptr = cinfo->cur_comp_info[ci]; in compress_data()
168 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width : in compress_data()
169 compptr->last_col_width; in compress_data()
170 xpos = MCU_col_num * compptr->MCU_sample_width; in compress_data()
172 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_data()
174 yoffset + yindex < compptr->last_row_height) { in compress_data()
175 (*cinfo->fdct->forward_DCT) (cinfo, compptr, in compress_data()
176 input_buf[compptr->component_index], in compress_data()
179 if (blockcnt < compptr->MCU_width) { in compress_data()
[all …]
Dtransupp.c92 dequant_comp(j_decompress_ptr cinfo, jpeg_component_info *compptr, in dequant_comp() argument
102 qtblptr = compptr->quant_table; in dequant_comp()
103 for (blk_y = 0; blk_y < compptr->height_in_blocks; in dequant_comp()
104 blk_y += compptr->v_samp_factor) { in dequant_comp()
107 (JDIMENSION)compptr->v_samp_factor, TRUE); in dequant_comp()
108 for (offset_y = 0; offset_y < compptr->v_samp_factor; offset_y++) { in dequant_comp()
110 for (blk_x = 0; blk_x < compptr->width_in_blocks; blk_x++) { in dequant_comp()
122 requant_comp(j_decompress_ptr cinfo, jpeg_component_info *compptr, in requant_comp() argument
133 qtblptr = compptr->quant_table; in requant_comp()
134 for (blk_y = 0; blk_y < compptr->height_in_blocks; in requant_comp()
[all …]
Djcmaster.c86 jpeg_component_info *compptr; in initial_setup() local
125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
126 ci++, compptr++) { in initial_setup()
127 if (compptr->h_samp_factor <= 0 || in initial_setup()
128 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup()
129 compptr->v_samp_factor <= 0 || in initial_setup()
130 compptr->v_samp_factor > MAX_SAMP_FACTOR) in initial_setup()
133 compptr->h_samp_factor); in initial_setup()
135 compptr->v_samp_factor); in initial_setup()
139 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
[all …]
Djcsample.c61 jpeg_component_info *compptr,
127 jpeg_component_info *compptr; in sep_downsample() local
130 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_downsample()
131 ci++, compptr++) { in sep_downsample()
133 out_ptr = output_buf[ci] + (out_row_group_index * compptr->v_samp_factor); in sep_downsample()
134 (*downsample->methods[ci]) (cinfo, compptr, in_ptr, out_ptr); in sep_downsample()
147 int_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in int_downsample() argument
152 JDIMENSION output_cols = compptr->width_in_blocks * DCTSIZE; in int_downsample()
156 h_expand = cinfo->max_h_samp_factor / compptr->h_samp_factor; in int_downsample()
157 v_expand = cinfo->max_v_samp_factor / compptr->v_samp_factor; in int_downsample()
[all …]
Djdcoefct.c94 jpeg_component_info *compptr; in decompress_onepass() local
126 compptr = cinfo->cur_comp_info[ci]; in decompress_onepass()
128 if (!compptr->component_needed) { in decompress_onepass()
129 blkn += compptr->MCU_blocks; in decompress_onepass()
132 inverse_DCT = cinfo->idct->inverse_DCT[compptr->component_index]; in decompress_onepass()
134 compptr->MCU_width : compptr->last_col_width; in decompress_onepass()
135 output_ptr = output_buf[compptr->component_index] + in decompress_onepass()
136 yoffset * compptr->_DCT_scaled_size; in decompress_onepass()
138 compptr->MCU_sample_width; in decompress_onepass()
139 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in decompress_onepass()
[all …]
Djdct.h98 jpeg_component_info *compptr, JCOEFPTR coef_block,
101 jpeg_component_info *compptr, JCOEFPTR coef_block,
104 jpeg_component_info *compptr, JCOEFPTR coef_block,
107 jpeg_component_info *compptr, JCOEFPTR coef_block,
110 jpeg_component_info *compptr, JCOEFPTR coef_block,
113 jpeg_component_info *compptr, JCOEFPTR coef_block,
116 jpeg_component_info *compptr, JCOEFPTR coef_block,
119 jpeg_component_info *compptr, JCOEFPTR coef_block,
122 jpeg_component_info *compptr, JCOEFPTR coef_block,
125 jpeg_component_info *compptr, JCOEFPTR coef_block,
[all …]
Djdmainct.c140 jpeg_component_info *compptr; in alloc_funny_pointers() local
151 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers()
152 ci++, compptr++) { in alloc_funny_pointers()
153 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in alloc_funny_pointers()
181 jpeg_component_info *compptr; in make_funny_pointers() local
184 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers()
185 ci++, compptr++) { in make_funny_pointers()
186 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in make_funny_pointers()
221 jpeg_component_info *compptr; in set_bottom_pointers() local
224 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers()
[all …]
Djdsample.c67 jpeg_component_info *compptr; in sep_upsample() local
72 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in sep_upsample()
73 ci++, compptr++) { in sep_upsample()
77 (*upsample->methods[ci]) (cinfo, compptr, in sep_upsample()
126 fullsize_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in fullsize_upsample() argument
139 noop_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in noop_upsample() argument
158 int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in int_upsample() argument
170 h_expand = upsample->h_expand[compptr->component_index]; in int_upsample()
171 v_expand = upsample->v_expand[compptr->component_index]; in int_upsample()
202 h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in h2v1_upsample() argument
[all …]
Djddctmgr.c101 jpeg_component_info *compptr; in start_pass() local
106 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in start_pass()
107 ci++, compptr++) { in start_pass()
109 switch (compptr->_DCT_scaled_size) { in start_pass()
225 ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->_DCT_scaled_size); in start_pass()
236 if (!compptr->component_needed || idct->cur_method[ci] == method) in start_pass()
238 qtbl = compptr->quant_table; in start_pass()
249 ISLOW_MULT_TYPE *ismtbl = (ISLOW_MULT_TYPE *)compptr->dct_table; in start_pass()
266 IFAST_MULT_TYPE *ifmtbl = (IFAST_MULT_TYPE *)compptr->dct_table; in start_pass()
298 FLOAT_MULT_TYPE *fmtbl = (FLOAT_MULT_TYPE *)compptr->dct_table; in start_pass()
[all …]
Djcmarker.c236 jpeg_component_info *compptr; in emit_dac() local
242 compptr = cinfo->cur_comp_info[i]; in emit_dac()
245 dc_in_use[compptr->dc_tbl_no] = 1; in emit_dac()
248 ac_in_use[compptr->ac_tbl_no] = 1; in emit_dac()
292 jpeg_component_info *compptr; in emit_sof() local
308 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in emit_sof()
309 ci++, compptr++) { in emit_sof()
310 emit_byte(cinfo, compptr->component_id); in emit_sof()
311 emit_byte(cinfo, (compptr->h_samp_factor << 4) + compptr->v_samp_factor); in emit_sof()
312 emit_byte(cinfo, compptr->quant_tbl_no); in emit_sof()
[all …]
Djsimd_none.c107 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument
114 jpeg_component_info *compptr, in jsimd_h2v2_smooth_downsample() argument
120 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument
144 jsimd_int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_int_upsample() argument
150 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument
156 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument
180 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument
186 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument
192 jsimd_h1v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h1v2_fancy_upsample() argument
326 jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_idct_2x2() argument
[all …]
Djcprepct.c139 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()
177 expand_bottom_edge(output_buf[ci], 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()
269 jpeg_component_info *compptr; in create_context_buffer() local
280 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in create_context_buffer()
281 ci++, compptr++) { in create_context_buffer()
288 (JDIMENSION)(((long)compptr->width_in_blocks * DCTSIZE * in create_context_buffer()
[all …]
Djsimd.h44 jpeg_component_info *compptr,
51 jpeg_component_info *compptr,
56 jpeg_component_info *compptr,
65 jpeg_component_info *compptr,
69 jpeg_component_info *compptr,
73 jpeg_component_info *compptr,
82 jpeg_component_info *compptr,
86 jpeg_component_info *compptr,
90 jpeg_component_info *compptr,
Djsimddct.h42 jpeg_component_info *compptr, JCOEFPTR coef_block,
45 jpeg_component_info *compptr, JCOEFPTR coef_block,
48 jpeg_component_info *compptr, JCOEFPTR coef_block,
51 jpeg_component_info *compptr,
60 jpeg_component_info *compptr,
64 jpeg_component_info *compptr,
68 jpeg_component_info *compptr,
Djdmaster.c98 jpeg_component_info *compptr; in jpeg_core_output_dimensions() local
232 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_core_output_dimensions()
233 ci++, compptr++) { in jpeg_core_output_dimensions()
234 compptr->_DCT_h_scaled_size = cinfo->_min_DCT_h_scaled_size; in jpeg_core_output_dimensions()
235 compptr->_DCT_v_scaled_size = cinfo->_min_DCT_v_scaled_size; in jpeg_core_output_dimensions()
264 jpeg_component_info *compptr; in jpeg_calc_output_dimensions() local
281 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jpeg_calc_output_dimensions()
282 ci++, compptr++) { in jpeg_calc_output_dimensions()
286 (compptr->h_samp_factor * ssize * 2) == 0) && in jpeg_calc_output_dimensions()
288 (compptr->v_samp_factor * ssize * 2) == 0)) { in jpeg_calc_output_dimensions()
[all …]
Djctrans.c302 jpeg_component_info *compptr; in compress_output() local
306 compptr = cinfo->cur_comp_info[ci]; in compress_output()
308 ((j_common_ptr)cinfo, coef->whole_image[compptr->component_index], in compress_output()
309 coef->iMCU_row_num * compptr->v_samp_factor, in compress_output()
310 (JDIMENSION)compptr->v_samp_factor, FALSE); in compress_output()
321 compptr = cinfo->cur_comp_info[ci]; in compress_output()
322 start_col = MCU_col_num * compptr->MCU_width; in compress_output()
323 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width : in compress_output()
324 compptr->last_col_width; in compress_output()
325 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { in compress_output()
[all …]
Djdmainct.h55 jpeg_component_info *compptr; in set_wraparound_pointers() local
58 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_wraparound_pointers()
59 ci++, compptr++) { in set_wraparound_pointers()
60 rgroup = (compptr->v_samp_factor * compptr->_DCT_scaled_size) / in set_wraparound_pointers()
Dturbojpeg.c767 jpeg_component_info *compptr; in tjEncodeYUVPlanes() local
835 compptr = &cinfo->comp_info[i]; in tjEncodeYUVPlanes()
837 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
838 compptr->h_samp_factor, 32) * in tjEncodeYUVPlanes()
851 PAD((compptr->width_in_blocks * cinfo->max_h_samp_factor * DCTSIZE) / in tjEncodeYUVPlanes()
852 compptr->h_samp_factor, 32) * row]; in tjEncodeYUVPlanes()
855 (JSAMPLE *)malloc(PAD(compptr->width_in_blocks * DCTSIZE, 32) * in tjEncodeYUVPlanes()
856 compptr->v_samp_factor + 32); in tjEncodeYUVPlanes()
859 tmpbuf2[i] = (JSAMPROW *)malloc(sizeof(JSAMPROW) * compptr->v_samp_factor); in tjEncodeYUVPlanes()
862 for (row = 0; row < compptr->v_samp_factor; row++) { in tjEncodeYUVPlanes()
[all …]
Djcmainct.c135 jpeg_component_info *compptr; in jinit_c_main_controller() local
154 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_c_main_controller()
155 ci++, compptr++) { in jinit_c_main_controller()
158 compptr->width_in_blocks * DCTSIZE, in jinit_c_main_controller()
159 (JDIMENSION)(compptr->v_samp_factor * DCTSIZE)); in jinit_c_main_controller()
/external/libjpeg-turbo/simd/i386/
Djsimd.c389 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument
394 compptr->v_samp_factor, in jsimd_h2v2_downsample()
395 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample()
399 compptr->v_samp_factor, in jsimd_h2v2_downsample()
400 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample()
404 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample()
409 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument
414 compptr->v_samp_factor, in jsimd_h2v1_downsample()
415 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample()
419 compptr->v_samp_factor, in jsimd_h2v1_downsample()
[all …]
/external/libjpeg-turbo/simd/x86_64/
Djsimd.c340 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument
345 compptr->v_samp_factor, in jsimd_h2v2_downsample()
346 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample()
350 compptr->v_samp_factor, in jsimd_h2v2_downsample()
351 compptr->width_in_blocks, input_data, in jsimd_h2v2_downsample()
356 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument
361 compptr->v_samp_factor, in jsimd_h2v1_downsample()
362 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample()
366 compptr->v_samp_factor, in jsimd_h2v1_downsample()
367 compptr->width_in_blocks, input_data, in jsimd_h2v1_downsample()
[all …]
/external/libjpeg-turbo/simd/arm/aarch32/
Djsimd.c382 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument
386 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample()
391 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument
395 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v1_downsample()
433 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument
441 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument
500 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument
504 compptr->downsampled_width, input_data, in jsimd_h2v2_fancy_upsample()
509 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument
513 compptr->downsampled_width, input_data, in jsimd_h2v1_fancy_upsample()
[all …]
/external/libjpeg-turbo/simd/arm/aarch64/
Djsimd.c450 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_downsample() argument
454 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v2_downsample()
459 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_downsample() argument
463 compptr->v_samp_factor, compptr->width_in_blocks, in jsimd_h2v1_downsample()
501 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_upsample() argument
509 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_upsample() argument
568 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v2_fancy_upsample() argument
572 compptr->downsampled_width, input_data, in jsimd_h2v2_fancy_upsample()
577 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr, in jsimd_h2v1_fancy_upsample() argument
581 compptr->downsampled_width, input_data, in jsimd_h2v1_fancy_upsample()
[all …]
/external/libcups/tools/
Dippevepcl.c314 *compptr; /* Pointer into compression buffer */ in pcl_write_line() local
373 compptr = pcl_comp; in pcl_write_line()
383 *compptr++ = 0x00; in pcl_write_line()
384 *compptr++ = *outptr++; in pcl_write_line()
403 *compptr++ = (unsigned char)(257 - count); in pcl_write_line()
404 *compptr++ = *outptr++; in pcl_write_line()
424 *compptr++ = (unsigned char)(count - 1); in pcl_write_line()
426 memcpy(compptr, start, count); in pcl_write_line()
427 compptr += count; in pcl_write_line()
445 printf("\033*b%dW", (int)(compptr - pcl_comp)); in pcl_write_line()
[all …]

12