Lines Matching refs:x

65 	if (crop->x < 0 || crop->x>=src->sx || crop->y<0 || crop->y>=src->sy) {  in gdImageCrop()
70 if ((src->sx - crop->width) < crop->x) { in gdImageCrop()
71 crop->width = src->sx - crop->x; in gdImageCrop()
78 printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x, crop->y, crop->wid… in gdImageCrop()
85 memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4); in gdImageCrop()
88 int x; in gdImageCrop() local
90 for (x = crop->x; x < (crop->x + crop->width); x++) { in gdImageCrop()
91 dst->pixels[y - crop->y][x - crop->x] = src->pixels[y][x]; in gdImageCrop()
119 int x,y; in gdImageCropAuto() local
123 crop.x = 0; in gdImageCropAuto()
160 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
161 int c2 = gdImageGetPixel(im, x, y); in gdImageCropAuto()
176 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
177 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
188 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
190 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
193 crop.x = x - 1; in gdImageCropAuto()
196 for (x = width - 1; match && x >= 0; x--) { in gdImageCropAuto()
198 match = (color == gdImageGetPixel(im, x,y)); in gdImageCropAuto()
201 crop.width = x - crop.x + 2; in gdImageCropAuto()
202 if (crop.x <= 0 || crop.y <= 0 || crop.width <= 0 || crop.height <= 0) { in gdImageCropAuto()
232 int x,y; in gdImageCropThreshold() local
236 crop.x = 0; in gdImageCropThreshold()
256 for (x = 0; match && x < width; x++) { in gdImageCropThreshold()
257 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
272 for (x = 0; match && x < width; x++) { in gdImageCropThreshold()
273 match = (gdColorMatch(im, color, gdImageGetPixel(im, x, y), threshold)) > 0; in gdImageCropThreshold()
284 for (x = 0; match && x < width; x++) { in gdImageCropThreshold()
286 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
289 crop.x = x - 1; in gdImageCropThreshold()
292 for (x = width - 1; match && x >= 0; x--) { in gdImageCropThreshold()
294 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
297 crop.width = x - crop.x + 2; in gdImageCropThreshold()