Lines Matching defs:xoffset
155 jpeg_crop_scanline(j_decompress_ptr cinfo, JDIMENSION *xoffset,
166 if (!xoffset || !width)
169 /* xoffset and width must fall within the output image dimensions. */
170 if (*width == 0 || *xoffset + *width > cinfo->output_width)
177 /* Ensuring the proper alignment of xoffset is tricky. At minimum, it
190 * require that xoffset be a multiple of the maximum MCU column width of all
200 /* Adjust xoffset to the nearest iMCU boundary <= the requested value */
201 input_xoffset = *xoffset;
202 *xoffset = (input_xoffset / align) * align;
209 *width = *width + input_xoffset - *xoffset;
215 cinfo->master->first_iMCU_col = (JDIMENSION)(long)(*xoffset) / (long)align;
217 (JDIMENSION)jdiv_round_up((long)(*xoffset + cinfo->output_width),
238 (JDIMENSION)(long)(*xoffset * hsf) / (long)align;
240 (JDIMENSION)jdiv_round_up((long)((*xoffset + cinfo->output_width) * hsf),