add an extractor

This commit is contained in:
tTh
2023-01-21 09:06:36 +01:00
parent 70dc8a7638
commit b79f6851f5
5 changed files with 136 additions and 2 deletions

View File

@@ -116,12 +116,20 @@ int xs, ys, xd, yd;
int count;
float rgb[3];
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %p %p )\n", __func__, in, out, rect);
#endif
if (verbosity > 1) {
fimg_describe(in, "extractor: source");
fimg_describe(out, "extractor: destination");
// print_rectangle(rect);
}
/*
* some sanity controls, please ! XXX
*/
count = 0;
for (yd=0; yd<rect->h; yd++) {
ys = yd + rect->y;
@@ -135,7 +143,7 @@ for (yd=0; yd<rect->h; yd++) {
}
}
// fprintf(stderr, "%s: %d pix moved\n", __func__, count);
if (verbosity > 1) fprintf(stderr, "%s: %d pix moved\n", __func__, count);
return 0;
}