Lines Matching refs:compptr
50 jpeg_component_info *compptr; in initial_setup() local
82 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
83 ci++, compptr++) { in initial_setup()
84 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
85 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
88 compptr->h_samp_factor); in initial_setup()
90 compptr->v_samp_factor); in initial_setup()
94 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
95 ci++, compptr++) { in initial_setup()
97 compptr->component_index = ci; in initial_setup()
99 compptr->DCT_scaled_size = DCTSIZE; in initial_setup()
101 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
102 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
104 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
105 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
108 compptr->downsampled_width = (JDIMENSION) in initial_setup()
109 jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor, in initial_setup()
111 compptr->downsampled_height = (JDIMENSION) in initial_setup()
112 jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor, in initial_setup()
115 compptr->component_needed = TRUE; in initial_setup()
313 jpeg_component_info *compptr; in per_scan_setup() local
318 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
321 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
322 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
325 compptr->MCU_width = 1; in per_scan_setup()
326 compptr->MCU_height = 1; in per_scan_setup()
327 compptr->MCU_blocks = 1; in per_scan_setup()
328 compptr->MCU_sample_width = DCTSIZE; in per_scan_setup()
329 compptr->last_col_width = 1; in per_scan_setup()
333 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
334 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
335 compptr->last_row_height = tmp; in per_scan_setup()
359 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
361 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
362 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
363 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
364 compptr->MCU_sample_width = compptr->MCU_width * DCTSIZE; in per_scan_setup()
366 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
367 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
368 compptr->last_col_width = tmp; in per_scan_setup()
369 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
370 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
371 compptr->last_row_height = tmp; in per_scan_setup()
373 mcublks = compptr->MCU_blocks; in per_scan_setup()