Lines Matching defs:compptr
45 jpeg_component_info *compptr;
64 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
65 ci++, compptr++) {
66 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR ||
67 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR)
70 compptr->h_samp_factor);
72 compptr->v_samp_factor);
82 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
83 ci++, compptr++) {
84 compptr->DCT_scaled_size = DCTSIZE;
86 compptr->width_in_blocks = (JDIMENSION)
87 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,
89 compptr->height_in_blocks = (JDIMENSION)
90 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,
97 compptr->downsampled_width = (JDIMENSION)
98 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,
100 compptr->downsampled_height = (JDIMENSION)
101 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,
104 compptr->component_needed = TRUE;
106 compptr->quant_table = NULL;
128 jpeg_component_info *compptr;
133 compptr = cinfo->cur_comp_info[0];
136 cinfo->MCUs_per_row = compptr->width_in_blocks;
137 cinfo->MCU_rows_in_scan = compptr->height_in_blocks;
140 compptr->MCU_width = 1;
141 compptr->MCU_height = 1;
142 compptr->MCU_blocks = 1;
143 compptr->MCU_sample_width = compptr->DCT_scaled_size;
144 compptr->last_col_width = 1;
148 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor);
149 if (tmp == 0) tmp = compptr->v_samp_factor;
150 compptr->last_row_height = tmp;
174 compptr = cinfo->cur_comp_info[ci];
176 compptr->MCU_width = compptr->h_samp_factor;
177 compptr->MCU_height = compptr->v_samp_factor;
178 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height;
179 compptr->MCU_sample_width = compptr->MCU_width * compptr->DCT_scaled_size;
181 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width);
182 if (tmp == 0) tmp = compptr->MCU_width;
183 compptr->last_col_width = tmp;
187 % compptr->MCU_width);
188 if (tmp == 0) tmp = compptr->MCU_width;
189 compptr->last_col_width = tmp;
193 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height);
194 if (tmp == 0) tmp = compptr->MCU_height;
195 compptr->last_row_height = tmp;
197 mcublks = compptr->MCU_blocks;
241 jpeg_component_info *compptr;
245 compptr = cinfo->cur_comp_info[ci];
247 if (compptr->quant_table != NULL)
250 qtblno = compptr->quant_tbl_no;
259 compptr->quant_table = qtbl;