Lines Matching refs:compptr
74 jpeg_component_info *compptr; in initial_setup() local
113 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
114 ci++, compptr++) { in initial_setup()
115 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
116 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
119 compptr->h_samp_factor); in initial_setup()
121 compptr->v_samp_factor); in initial_setup()
125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
126 ci++, compptr++) { in initial_setup()
128 compptr->component_index = ci; in initial_setup()
131 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup()
133 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
136 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
137 jdiv_round_up((long) cinfo->_jpeg_width * (long) compptr->h_samp_factor, in initial_setup()
139 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
140 jdiv_round_up((long) cinfo->_jpeg_height * (long) compptr->v_samp_factor, in initial_setup()
143 compptr->downsampled_width = (JDIMENSION) in initial_setup()
144 jdiv_round_up((long) cinfo->_jpeg_width * (long) compptr->h_samp_factor, in initial_setup()
146 compptr->downsampled_height = (JDIMENSION) in initial_setup()
147 jdiv_round_up((long) cinfo->_jpeg_height * (long) compptr->v_samp_factor, in initial_setup()
150 compptr->component_needed = TRUE; in initial_setup()
348 jpeg_component_info *compptr; in per_scan_setup() local
353 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
356 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
357 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
360 compptr->MCU_width = 1; in per_scan_setup()
361 compptr->MCU_height = 1; in per_scan_setup()
362 compptr->MCU_blocks = 1; in per_scan_setup()
363 compptr->MCU_sample_width = DCTSIZE; in per_scan_setup()
364 compptr->last_col_width = 1; in per_scan_setup()
368 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
369 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
370 compptr->last_row_height = tmp; in per_scan_setup()
394 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
396 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
397 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
398 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
399 compptr->MCU_sample_width = compptr->MCU_width * DCTSIZE; in per_scan_setup()
401 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
402 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
403 compptr->last_col_width = tmp; in per_scan_setup()
404 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
405 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
406 compptr->last_row_height = tmp; in per_scan_setup()
408 mcublks = compptr->MCU_blocks; in per_scan_setup()