|
|
|
@ -34,9 +34,11 @@ int xs, ys, xd, yd;
|
|
|
|
|
int count;
|
|
|
|
|
float rgb[3];
|
|
|
|
|
|
|
|
|
|
fimg_describe(in, "source");
|
|
|
|
|
fimg_describe(out, "destination");
|
|
|
|
|
print_rectangle(rect);
|
|
|
|
|
if (verbosity) {
|
|
|
|
|
fimg_describe(in, "source");
|
|
|
|
|
fimg_describe(out, "destination");
|
|
|
|
|
print_rectangle(rect);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
count = 0;
|
|
|
|
|
for (yd=0; yd<rect->h; yd++) {
|
|
|
|
@ -53,7 +55,7 @@ for (yd=0; yd<rect->h; yd++) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fprintf(stderr, "%s: %d pix moved\n", __func__, count);
|
|
|
|
|
// fprintf(stderr, "%s: %d pix moved\n", __func__, count);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
@ -67,7 +69,7 @@ Rectangle zone;
|
|
|
|
|
char *infile = "foo.fimg";
|
|
|
|
|
char *outfile = "out.fimg";
|
|
|
|
|
|
|
|
|
|
verbosity = 1;
|
|
|
|
|
verbosity = 0;
|
|
|
|
|
|
|
|
|
|
if (3 != argc) {
|
|
|
|
|
fprintf(stderr, "usage\n\t %s infile.fimg outfile.???\n",
|
|
|
|
|