water patch

This commit is contained in:
2020-12-10 19:19:35 +01:00
parent b03e674056
commit 966ae9e465
10 changed files with 160 additions and 69 deletions

View File

@@ -23,6 +23,8 @@ int convert_to_gray; /* WTF ? */
#define LMAX 255.0
#define TIMER 1
#define STK 0
/* ----------------------------------------------------------- */
int essai_filterstack(char *fname)
@@ -31,7 +33,7 @@ int foo;
FloatImg image;
double debut, fin;
filterstack_list(__func__);
filterstack_list(STK, __func__);
foo = fimg_create_from_dump(fname, &image);
if (foo) {
@@ -43,7 +45,7 @@ srand(getpid()); srand48(getpid());
debut = fimg_timer_set(TIMER);
foo = filterstack_run(&image, 0);
foo = filterstack_run(STK, &image, 0);
if (foo) {
fprintf(stderr, "filterstack run --> %d\n", foo);
return foo;
@@ -92,7 +94,7 @@ while ((opt = getopt(argc, argv, "hF:v")) != -1) {
fprintf(stderr, "%s : argc = %d, optind = %d\n", argv[0], argc, optind);
#endif
foo = parse_filter_chain(filterchain);
foo = parse_filter_chain(STK, filterchain);
if (foo) {
fprintf(stderr, "err %d in parse_filter_chain\n", foo);
exit(1);