3 The tool with multiple enhancements and manipulations of pictures
6 Copyright (C) 2022 Balthasar SzczepaĆski
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Affero General Public License as
10 published by the Free Software Foundation, either version 3 of the
11 License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Affero General Public License for more details.
18 You should have received a copy of the GNU Affero General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 Requires Dev Image Library (libdevil) (http://openil.sourceforge.net/)
23 on Pentium III libdevil must be recompiled with
24 --disable-ssl2 --disable-ssl3
25 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572954)
39 #include "pal_unmix.h"
40 #include "pal_mixdiff.h"
41 #include "remap_t_1.h"
43 int main (int argc, char **argv)
46 char *error_text = NO_STR;
51 finish(EINVAL, "No mode selected.\n");
55 finish(r, INIT_FAILED);
57 if (strcmp(argv[1], "nofading")==0)
58 f = &subtool_nofading;
59 else if (strcmp(argv[1], "info")==0)
61 else if (strcmp(argv[1], "bluenh")==0)
63 else if (strcmp(argv[1], "reveal")==0)
65 else if (strcmp(argv[1], "diff")==0)
67 else if (strcmp(argv[1], "npb")==0)
69 else if (strcmp(argv[1], "pal_mix")==0)
71 else if (strcmp(argv[1], "pal_unmix")==0)
72 f = &subtool_pal_unmix;
73 else if (strcmp(argv[1], "pal_mixdiff")==0)
74 f = &subtool_pal_mixdiff;
75 else if (strcmp(argv[1], "remap_t_1")==0)
76 f = &subtool_remap_t_1;
78 finish(EINVAL, "Unknown mode.\n");
80 r = f(argc, argv, 2, &error_text);
83 finish(r, error_text);