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 || 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()
98 ci++, compptr++) { in initial_setup()
100 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup()
102 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
105 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
106 jdiv_round_up((long)cinfo->image_width * (long)compptr->h_samp_factor, in initial_setup()
108 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
109 jdiv_round_up((long)cinfo->image_height * (long)compptr->v_samp_factor, in initial_setup()
115 cinfo->master->last_MCU_col[ci] = compptr->width_in_blocks - 1; in initial_setup()
121 compptr->downsampled_width = (JDIMENSION) in initial_setup()
122 jdiv_round_up((long)cinfo->image_width * (long)compptr->h_samp_factor, in initial_setup()
124 compptr->downsampled_height = (JDIMENSION) in initial_setup()
125 jdiv_round_up((long)cinfo->image_height * (long)compptr->v_samp_factor, in initial_setup()
128 compptr->component_needed = TRUE; in initial_setup()
130 compptr->quant_table = NULL; in initial_setup()
152 jpeg_component_info *compptr; in per_scan_setup() local
157 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
160 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
161 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
164 compptr->MCU_width = 1; in per_scan_setup()
165 compptr->MCU_height = 1; in per_scan_setup()
166 compptr->MCU_blocks = 1; in per_scan_setup()
167 compptr->MCU_sample_width = compptr->_DCT_scaled_size; in per_scan_setup()
168 compptr->last_col_width = 1; in per_scan_setup()
172 tmp = (int)(compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
173 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
174 compptr->last_row_height = tmp; in per_scan_setup()
198 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
200 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
201 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
202 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
203 compptr->MCU_sample_width = compptr->MCU_width * in per_scan_setup()
204 compptr->_DCT_scaled_size; in per_scan_setup()
206 tmp = (int)(compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
207 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
208 compptr->last_col_width = tmp; in per_scan_setup()
209 tmp = (int)(compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
210 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
211 compptr->last_row_height = tmp; in per_scan_setup()
213 mcublks = compptr->MCU_blocks; in per_scan_setup()
250 jpeg_component_info *compptr; in latch_quant_tables() local
254 compptr = cinfo->cur_comp_info[ci]; in latch_quant_tables()
256 if (compptr->quant_table != NULL) in latch_quant_tables()
259 qtblno = compptr->quant_tbl_no; in latch_quant_tables()
268 compptr->quant_table = qtbl; in latch_quant_tables()