Lines Matching refs:compptr

224   jpeg_component_info *compptr;  in initial_setup()  local
280 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
281 ci++, compptr++) { in initial_setup()
282 if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR || in initial_setup()
283 compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR) in initial_setup()
286 compptr->h_samp_factor); in initial_setup()
288 compptr->v_samp_factor); in initial_setup()
292 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in initial_setup()
293 ci++, compptr++) { in initial_setup()
295 compptr->component_index = ci; in initial_setup()
305 (cinfo->max_h_samp_factor % (compptr->h_samp_factor * ssize * 2)) == 0) { in initial_setup()
309 compptr->DCT_h_scaled_size = cinfo->min_DCT_h_scaled_size * ssize; in initial_setup()
314 (cinfo->max_v_samp_factor % (compptr->v_samp_factor * ssize * 2)) == 0) { in initial_setup()
318 compptr->DCT_v_scaled_size = cinfo->min_DCT_v_scaled_size * ssize; in initial_setup()
321 if (compptr->DCT_h_scaled_size > compptr->DCT_v_scaled_size * 2) in initial_setup()
322 compptr->DCT_h_scaled_size = compptr->DCT_v_scaled_size * 2; in initial_setup()
323 else if (compptr->DCT_v_scaled_size > compptr->DCT_h_scaled_size * 2) in initial_setup()
324 compptr->DCT_v_scaled_size = compptr->DCT_h_scaled_size * 2; in initial_setup()
327 compptr->width_in_blocks = (JDIMENSION) in initial_setup()
328 jdiv_round_up((long) cinfo->jpeg_width * (long) compptr->h_samp_factor, in initial_setup()
330 compptr->height_in_blocks = (JDIMENSION) in initial_setup()
331 jdiv_round_up((long) cinfo->jpeg_height * (long) compptr->v_samp_factor, in initial_setup()
334 compptr->downsampled_width = (JDIMENSION) in initial_setup()
336 (long) (compptr->h_samp_factor * compptr->DCT_h_scaled_size), in initial_setup()
338 compptr->downsampled_height = (JDIMENSION) in initial_setup()
340 (long) (compptr->v_samp_factor * compptr->DCT_v_scaled_size), in initial_setup()
343 compptr->component_needed = TRUE; in initial_setup()
577 jpeg_component_info *compptr; in per_scan_setup() local
582 compptr = cinfo->cur_comp_info[0]; in per_scan_setup()
585 cinfo->MCUs_per_row = compptr->width_in_blocks; in per_scan_setup()
586 cinfo->MCU_rows_in_scan = compptr->height_in_blocks; in per_scan_setup()
589 compptr->MCU_width = 1; in per_scan_setup()
590 compptr->MCU_height = 1; in per_scan_setup()
591 compptr->MCU_blocks = 1; in per_scan_setup()
592 compptr->MCU_sample_width = compptr->DCT_h_scaled_size; in per_scan_setup()
593 compptr->last_col_width = 1; in per_scan_setup()
597 tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); in per_scan_setup()
598 if (tmp == 0) tmp = compptr->v_samp_factor; in per_scan_setup()
599 compptr->last_row_height = tmp; in per_scan_setup()
623 compptr = cinfo->cur_comp_info[ci]; in per_scan_setup()
625 compptr->MCU_width = compptr->h_samp_factor; in per_scan_setup()
626 compptr->MCU_height = compptr->v_samp_factor; in per_scan_setup()
627 compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; in per_scan_setup()
628 compptr->MCU_sample_width = compptr->MCU_width * compptr->DCT_h_scaled_size; in per_scan_setup()
630 tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); in per_scan_setup()
631 if (tmp == 0) tmp = compptr->MCU_width; in per_scan_setup()
632 compptr->last_col_width = tmp; in per_scan_setup()
633 tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); in per_scan_setup()
634 if (tmp == 0) tmp = compptr->MCU_height; in per_scan_setup()
635 compptr->last_row_height = tmp; in per_scan_setup()
637 mcublks = compptr->MCU_blocks; in per_scan_setup()