From 46fad56471d8afde3f6b1c35cbd9c5e8b88acc7c Mon Sep 17 00:00:00 2001 From: tonton th Date: Sun, 3 Jan 2021 20:34:10 +0100 Subject: [PATCH] cleanup some useless code --- Fonderie/interpolator.c | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index 838d842f..0cd98cf3 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -147,10 +147,12 @@ if (FIMG_TYPE_RGB != iarray[2]) { exit(1); /* BLAM! */ } +#if 0 if (infx) fprintf(stderr, "\tin fx #%d\n", infx); else fprintf(stderr, "\tno in fx\n"); if (outfx) fprintf(stderr, "\tout fx #%d\n", outfx); else fprintf(stderr, "\tno out fx\n"); +#endif w = iarray[0], h = iarray[1]; fprintf(stderr, "first image size : %dx%d\n", w, h); @@ -178,14 +180,8 @@ for (idx=0; idx %d\n", foo); @@ -245,12 +233,17 @@ puts("usage:\n\tinterpolator [options] "); * the options of 'fonderie' software ? */ puts("options:"); -puts("\t-S nn\tmysterious sort"); -puts("\t-F i:j\tfilter chain"); -puts("\t-L\tlist available filters"); -puts("\t-w nn\tinput effect"); -puts("\t-x nn\toutput effect"); -puts("\t-v\tincrease verbosity"); +puts("\t-S nn\t\tmysterious sort"); +puts("\t-E i:bla:k\tinput filter chain"); +puts("\t-F name:j\toutput filter chain"); +puts("\t-L\t\tlist available filters"); +puts("\t-w nn\t\tinput effect"); +puts("\t-x nn\t\toutput effect"); +puts("\t-v\t\tincrease verbosity"); + +if (verbosity) { + list_crapulors("available filters"); + } exit(0); } @@ -291,9 +284,9 @@ while ((opt = getopt(argc, argv, "E:F:hLS:vw:x:")) != -1) { } } -//#if DEBUG_LEVEL +#if DEBUG_LEVEL fprintf(stderr, "%s: argc = %d, optind = %d\n", argv[0], argc, optind); -//#endif +#endif if (3 != (argc-optind)) { fprintf(stderr, "args: [options] \n");