All pastes #741084 Raw Edit

Something

public text v1 · immutable
·published 2007-10-18 13:27 UTC
rendered paste body
Index: test/test.c
===================================================================
--- test/test.c (revision 1030)
+++ test/test.c (working copy)
@@ -1122,7 +1122,22 @@
             case '8':
                 if( optarg != NULL )
                 {
-                    denoise_opt = strdup( optarg );
+                    if (!( strcmp( optarg, "weak" ) ))
+                    {
+                        denoise_opt = "2:1:2:3";
+                    }
+                    else if (!( strcmp( optarg, "medium" ) ))
+                    {
+                        denoise_opt = "3:2:2:3";
+                    }
+                    else if (!( strcmp( optarg, "strong" ) ))
+                    {
+                        denoise_opt = "7:7:5:5";
+                    }
+                    else
+                    {
+                        denoise_opt = strdup( optarg );
+                    }
                 }
                 denoise = 1;
                 break;