Lines Matching refs:offsets

5380   struct offset offsets;  in getCropOffsets()  local
5387 memset(&offsets, '\0', sizeof(struct offset)); in getCropOffsets()
5399 if (computeInputPixelOffsets(crop, image, &offsets)) in getCropOffsets()
5412 offsets.tmargin = 0; in getCropOffsets()
5413 offsets.lmargin = 0; in getCropOffsets()
5414 offsets.bmargin = 0; in getCropOffsets()
5415 offsets.rmargin = 0; in getCropOffsets()
5416 offsets.crop_width = image->width; in getCropOffsets()
5417 offsets.crop_length = image->length; in getCropOffsets()
5418 offsets.startx = 0; in getCropOffsets()
5419 offsets.endx = image->width - 1; in getCropOffsets()
5420 offsets.starty = 0; in getCropOffsets()
5421 offsets.endy = image->length - 1; in getCropOffsets()
5428 offsets.tmargin, offsets.lmargin, offsets.bmargin, offsets.rmargin); in getCropOffsets()
5430 offsets.crop_width, offsets.crop_length); in getCropOffsets()
5464 zlength = offsets.crop_length; in getCropOffsets()
5465 crop->regionlist[i].y1 = offsets.starty; in getCropOffsets()
5466 crop->regionlist[i].y2 = offsets.endy; in getCropOffsets()
5468 crop->regionlist[i].x1 = offsets.startx + in getCropOffsets()
5469 (uint32)(offsets.crop_width * 1.0 * (seg - 1) / total); in getCropOffsets()
5470 test = (int32)offsets.startx + in getCropOffsets()
5471 (int32)(offsets.crop_width * 1.0 * seg / total); in getCropOffsets()
5491 zwidth = offsets.crop_width; in getCropOffsets()
5492 crop->regionlist[i].x1 = offsets.startx; in getCropOffsets()
5493 crop->regionlist[i].x2 = offsets.endx; in getCropOffsets()
5495 test = offsets.endy - (uint32)(offsets.crop_length * 1.0 * seg / total); in getCropOffsets()
5501 test = offsets.endy - (offsets.crop_length * 1.0 * (seg - 1) / total); in getCropOffsets()
5521 zlength = offsets.crop_length; in getCropOffsets()
5522 crop->regionlist[i].y1 = offsets.starty; in getCropOffsets()
5523 crop->regionlist[i].y2 = offsets.endy; in getCropOffsets()
5525 crop->regionlist[i].x1 = offsets.startx + in getCropOffsets()
5526 (uint32)(offsets.crop_width * (total - seg) * 1.0 / total); in getCropOffsets()
5527 test = offsets.startx + in getCropOffsets()
5528 (offsets.crop_width * (total - seg + 1) * 1.0 / total); in getCropOffsets()
5549 zwidth = offsets.crop_width; in getCropOffsets()
5550 crop->regionlist[i].x1 = offsets.startx; in getCropOffsets()
5551 crop->regionlist[i].x2 = offsets.endx; in getCropOffsets()
5553 … crop->regionlist[i].y1 = offsets.starty + (uint32)(offsets.crop_length * 1.0 * (seg - 1) / total); in getCropOffsets()
5554 test = offsets.starty + (uint32)(offsets.crop_length * 1.0 * seg / total); in getCropOffsets()