on verra demain

This commit is contained in:
2020-12-29 00:54:15 +01:00
parent e7ad5188ca
commit b8e5bbf3cc
8 changed files with 53 additions and 9 deletions

View File

@@ -24,7 +24,9 @@ if (foo) {
return foo;
}
if (verbosity) fprintf(stderr, "%-20s %d x %d\n",path, numbers[0], numbers[1]);
if (verbosity) {
fprintf(stderr, "%-20s %dx%d\n", path, numbers[0], numbers[1]);
}
if (FIMG_TYPE_RGB != numbers[2]) {
fprintf(stderr, "file %s, %d : bad type\n", path, numbers[2]);
@@ -51,6 +53,7 @@ int main(int argc, char *argv[])
{
int foo, idx;
int opt;
int compte = 0;
int to_gray = 0;
char *output_file = "out.fimg";
@@ -97,6 +100,7 @@ for (idx=optind; idx<argc; idx++) {
}
fimg_add_2(&temp, &accu);
}
compte++;
}
if (to_gray) {
@@ -119,6 +123,7 @@ if (verbosity) {
fprintf(stderr, "err %d on fimg_get_minmax_rgb\n", foo);
return foo;
}
printf("Count %d\n", compte);
printf("Rmin %12.4g Rmax %12.4g delta %12g\n",
vals[0], vals[1], vals[1]-vals[0]);
printf("Gmin %12.4g Gmax %12.4g %12g\n",