forked from tTh/FloatImg
fine tuning fimgfx with a script
This commit is contained in:
@@ -66,7 +66,7 @@ FloatImg src, dest;
|
||||
int foo;
|
||||
double maxval;
|
||||
|
||||
#if 1
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( '%s' %d '%s' )\n", __func__,
|
||||
sf, act, df);
|
||||
#endif
|
||||
@@ -125,7 +125,7 @@ while ((opt = getopt(argc, argv, "hk:v")) != -1) {
|
||||
}
|
||||
}
|
||||
|
||||
#if 1
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "argc %d optind %d\n", argc, optind);
|
||||
for (foo=0; foo<argc; foo++)
|
||||
fprintf(stderr, "%3d %c %s\n", foo, foo==optind?'*':' ', argv[foo]);
|
||||
@@ -144,9 +144,9 @@ if (action < 0) {
|
||||
}
|
||||
|
||||
if (verbosity) {
|
||||
fprintf(stderr, "global fvalue %f\n", global_fvalue);
|
||||
fprintf(stderr, "action %d\n", action);
|
||||
fprintf(stderr, "verbosity %d\n", verbosity);
|
||||
fprintf(stderr, " global fvalue %f\n", global_fvalue);
|
||||
fprintf(stderr, " action %d\n", action);
|
||||
fprintf(stderr, " verbosity %d\n", verbosity);
|
||||
}
|
||||
|
||||
if ((nba=fx_list[action].nbarg)) {
|
||||
@@ -155,13 +155,12 @@ if ((nba=fx_list[action].nbarg)) {
|
||||
|
||||
srcname = argv[optind+1];
|
||||
dstname = argv[optind+2];
|
||||
fprintf(stderr, "%s ==> %s\n", srcname, dstname);
|
||||
if (verbosity) fprintf(stderr, "%s ==> %s\n", srcname, dstname);
|
||||
|
||||
foo = do_an_effect(srcname, action, dstname);
|
||||
fprintf(stderr, "do an effect -> %d\n", foo);
|
||||
|
||||
|
||||
fprintf(stderr, "\n%s [done]\n", argv[0]);
|
||||
if (foo) {
|
||||
fprintf(stderr, "do an effect -> %d\n", foo);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user