Lines Matching refs:compptr

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()
84 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
85 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
87 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
88 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
95 compptr->downsampled_width = (JDIMENSION) in initial_setup()
96 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
98 compptr->downsampled_height = (JDIMENSION) in initial_setup()
99 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
102 compptr->component_needed = TRUE; in initial_setup()
104 compptr->quant_table = NULL; in initial_setup()
126 jpeg_component_info *compptr; in per_scan_setup() local
131 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
134 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
135 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
138 compptr->MCU_width = 1; in per_scan_setup()
139 compptr->MCU_height = 1; in per_scan_setup()
140 compptr->MCU_blocks = 1; in per_scan_setup()
141 compptr->MCU_sample_width = compptr->DCT_scaled_size; in per_scan_setup()
142 compptr->last_col_width = 1; in per_scan_setup()
146 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
147 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
148 compptr->last_row_height = tmp; in per_scan_setup()
172 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
174 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
175 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
176 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
177 compptr->MCU_sample_width = compptr->MCU_width * compptr->DCT_scaled_size; in per_scan_setup()
179 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
180 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
181 compptr->last_col_width = tmp; in per_scan_setup()
182 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
183 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
184 compptr->last_row_height = tmp; in per_scan_setup()
186 mcublks = compptr->MCU_blocks; in per_scan_setup()
223 jpeg_component_info *compptr; in latch_quant_tables() local
227 compptr = cinfo->cur_comp_info[ci]; in latch_quant_tables()
229 if (compptr->quant_table != NULL) in latch_quant_tables()
232 qtblno = compptr->quant_tbl_no; in latch_quant_tables()
241 compptr->quant_table = qtbl; in latch_quant_tables()