Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:compptr

48   jpeg_component_info *compptr;
67 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
68 ci++, compptr++) {
69 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR ||
70 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR)
73 compptr->h_samp_factor);
75 compptr->v_samp_factor);
95 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
96 ci++, compptr++) {
98 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE;
100 compptr->DCT_scaled_size = DCTSIZE;
103 compptr->width_in_blocks = (JDIMENSION)
104 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,
106 compptr->height_in_blocks = (JDIMENSION)
107 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,
113 cinfo->master->last_MCU_col[ci] = compptr->width_in_blocks - 1;
119 compptr->downsampled_width = (JDIMENSION)
120 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,
122 compptr->downsampled_height = (JDIMENSION)
123 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,
126 compptr->component_needed = TRUE;
128 compptr->quant_table = NULL;
150 jpeg_component_info *compptr;
155 compptr = cinfo->cur_comp_info[0];
158 cinfo->MCUs_per_row = compptr->width_in_blocks;
159 cinfo->MCU_rows_in_scan = compptr->height_in_blocks;
162 compptr->MCU_width = 1;
163 compptr->MCU_height = 1;
164 compptr->MCU_blocks = 1;
165 compptr->MCU_sample_width = compptr->_DCT_scaled_size;
166 compptr->last_col_width = 1;
170 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor);
171 if (tmp == 0) tmp = compptr->v_samp_factor;
172 compptr->last_row_height = tmp;
196 compptr = cinfo->cur_comp_info[ci];
198 compptr->MCU_width = compptr->h_samp_factor;
199 compptr->MCU_height = compptr->v_samp_factor;
200 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height;
201 compptr->MCU_sample_width = compptr->MCU_width * compptr->_DCT_scaled_size;
203 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width);
204 if (tmp == 0) tmp = compptr->MCU_width;
205 compptr->last_col_width = tmp;
206 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height);
207 if (tmp == 0) tmp = compptr->MCU_height;
208 compptr->last_row_height = tmp;
210 mcublks = compptr->MCU_blocks;
247 jpeg_component_info *compptr;
251 compptr = cinfo->cur_comp_info[ci];
253 if (compptr->quant_table != NULL)
256 qtblno = compptr->quant_tbl_no;
265 compptr->quant_table = qtbl;