Lines Matching refs:compptr

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()
100 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
103 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
104 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
106 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
107 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
113 cinfo->master->last_MCU_col[ci] = compptr->width_in_blocks - 1; in initial_setup()
119 compptr->downsampled_width = (JDIMENSION) in initial_setup()
120 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
122 compptr->downsampled_height = (JDIMENSION) in initial_setup()
123 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
126 compptr->component_needed = TRUE; in initial_setup()
128 compptr->quant_table = NULL; in initial_setup()
150 jpeg_component_info *compptr; in per_scan_setup() local
155 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
158 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
159 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
162 compptr->MCU_width = 1; in per_scan_setup()
163 compptr->MCU_height = 1; in per_scan_setup()
164 compptr->MCU_blocks = 1; in per_scan_setup()
165 compptr->MCU_sample_width = compptr->_DCT_scaled_size; in per_scan_setup()
166 compptr->last_col_width = 1; in per_scan_setup()
170 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
171 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
172 compptr->last_row_height = tmp; in per_scan_setup()
196 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
198 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
199 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
200 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
201 compptr->MCU_sample_width = compptr->MCU_width * compptr->_DCT_scaled_size; in per_scan_setup()
203 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
204 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
205 compptr->last_col_width = tmp; in per_scan_setup()
206 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
207 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
208 compptr->last_row_height = tmp; in per_scan_setup()
210 mcublks = compptr->MCU_blocks; in per_scan_setup()
247 jpeg_component_info *compptr; in latch_quant_tables() local
251 compptr = cinfo->cur_comp_info[ci]; in latch_quant_tables()
253 if (compptr->quant_table != NULL) in latch_quant_tables()
256 qtblno = compptr->quant_tbl_no; in latch_quant_tables()
265 compptr->quant_table = qtbl; in latch_quant_tables()