• Home
  • Raw
  • Download

Lines Matching refs:compptr

86   jpeg_component_info *compptr;  in initial_setup()  local
125 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
126 ci++, compptr++) { in initial_setup()
127 if (compptr->h_samp_factor <= 0 || in initial_setup()
128 compptr->h_samp_factor > MAX_SAMP_FACTOR || in initial_setup()
129 compptr->v_samp_factor <= 0 || in initial_setup()
130 compptr->v_samp_factor > MAX_SAMP_FACTOR) in initial_setup()
133 compptr->h_samp_factor); in initial_setup()
135 compptr->v_samp_factor); in initial_setup()
139 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
140 ci++, compptr++) { in initial_setup()
142 compptr->component_index = ci; in initial_setup()
145 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size = DCTSIZE; in initial_setup()
147 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
150 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
151 jdiv_round_up((long)cinfo->_jpeg_width * (long)compptr->h_samp_factor, in initial_setup()
153 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
154 jdiv_round_up((long)cinfo->_jpeg_height * (long)compptr->v_samp_factor, in initial_setup()
157 compptr->downsampled_width = (JDIMENSION) in initial_setup()
158 jdiv_round_up((long)cinfo->_jpeg_width * (long)compptr->h_samp_factor, in initial_setup()
160 compptr->downsampled_height = (JDIMENSION) in initial_setup()
161 jdiv_round_up((long)cinfo->_jpeg_height * (long)compptr->v_samp_factor, in initial_setup()
164 compptr->component_needed = TRUE; in initial_setup()
361 jpeg_component_info *compptr; in per_scan_setup() local
366 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
369 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
370 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
373 compptr->MCU_width = 1; in per_scan_setup()
374 compptr->MCU_height = 1; in per_scan_setup()
375 compptr->MCU_blocks = 1; in per_scan_setup()
376 compptr->MCU_sample_width = DCTSIZE; in per_scan_setup()
377 compptr->last_col_width = 1; in per_scan_setup()
381 tmp = (int)(compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
382 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
383 compptr->last_row_height = tmp; in per_scan_setup()
407 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
409 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
410 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
411 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
412 compptr->MCU_sample_width = compptr->MCU_width * DCTSIZE; in per_scan_setup()
414 tmp = (int)(compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
415 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
416 compptr->last_col_width = tmp; in per_scan_setup()
417 tmp = (int)(compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
418 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
419 compptr->last_row_height = tmp; in per_scan_setup()
421 mcublks = compptr->MCU_blocks; in per_scan_setup()