Home | History | Annotate | Download | only in jpeg

Lines Matching defs:compptr

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