]> bicyclesonthemoon.info Git - ott/enhance/blobdiff - enhance.c
makefile cleanup and safety (don't rm -rf)
[ott/enhance] / enhance.c
index 7fc3a7522caf7f3a5693fc991aae7a398ce21fea..2e0056b07fbfea964969bb1d9ac5ceb8f825f1c1 100644 (file)
--- a/enhance.c
+++ b/enhance.c
@@ -1,7 +1,7 @@
 /*
 enhance.c
 The tool with multiple enhancements and manipulations of pictures
-29.11.2022
+03.12.2022
 
 Copyright (C) 2022  Balthasar SzczepaƄski
 
@@ -35,6 +35,10 @@ on Pentium III libdevil must be recompiled with
 #include "reveal.h"
 #include "diff.h"
 #include "npb.h"
+#include "pal_mix.h"
+#include "pal_unmix.h"
+#include "pal_mixdiff.h"
+#include "remap_t_1.h"
 
 int main (int argc, char **argv)
 {
@@ -60,6 +64,16 @@ int main (int argc, char **argv)
                f = &subtool_reveal;
        else if (strcmp(argv[1], "diff")==0)
                f = &subtool_diff;
+       else if (strcmp(argv[1], "npb")==0)
+               f = &subtool_npb;
+       else if (strcmp(argv[1], "pal_mix")==0)
+               f = &subtool_pal_mix;
+       else if (strcmp(argv[1], "pal_unmix")==0)
+               f = &subtool_pal_unmix;
+       else if (strcmp(argv[1], "pal_mixdiff")==0)
+               f = &subtool_pal_mixdiff;
+       else if (strcmp(argv[1], "remap_t_1")==0)
+               f = &subtool_remap_t_1;
        else
                finish(EINVAL, "Unknown mode.\n");