Lines Matching refs:crop
23 @@ -5194,26 +5194,30 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
24 y1 = _TIFFClampDoubleToUInt32(crop->corners[i].Y1);
25 y2 = _TIFFClampDoubleToUInt32(crop->corners[i].Y2);
28 - crop->regionlist[i].x1 = 0;
34 + crop->regionlist[i].x1 = image->width - 1;
36 crop->regionlist[i].x1 = (uint32_t) (x1 - 1);
39 - crop->regionlist[i].x2 = image->width - 1;
41 - crop->regionlist[i].x2 = (uint32_t) (x2 - 1);
43 + crop->regionlist[i].x2 = image->width - 1;
45 + crop->regionlist[i].x2 = (uint32_t)(x2 - 1);
47 zwidth = crop->regionlist[i].x2 - crop->regionlist[i].x1 + 1;
50 - crop->regionlist[i].y1 = 0;
52 - crop->regionlist[i].y1 = (uint32_t) (y1 - 1);
54 + crop->regionlist[i].y1 = image->length - 1;
56 + crop->regionlist[i].y1 = (uint32_t)(y1 - 1);
59 crop->regionlist[i].y2 = image->length - 1;
61 - crop->regionlist[i].y2 = (uint32_t) (y2 - 1);
63 + crop->regionlist[i].y2 = (uint32_t)(y2 - 1);
65 zlength = crop->regionlist[i].y2 - crop->regionlist[i].y1 + 1;
67 @@ -5376,7 +5380,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
75 "Invalid left/right margins and /or image crop width requested");
76 @@ -5385,7 +5389,7 @@ computeInputPixelOffsets(struct crop_mask *crop, struct image_data *image,
84 "Invalid top/bottom margins and /or image crop length requested");