cli: restore -O, -I, -P, -U, and -g options
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 13 May 2015 20:27:24 +0000 (20:27 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 13 May 2015 20:27:24 +0000 (20:27 +0000)
I inadvertainly disabled them when "simplifying" things.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7176 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index 33624dafb7dc93e0cda6c1302834752dc71fe9f6..2a01f32e04a1e751042cc234fdd357d7fa62de4b 100644 (file)
@@ -1759,12 +1759,12 @@ static int ParseOptions( int argc, char ** argv )
             { "format",      required_argument, NULL,    'f' },
             { "input",       required_argument, NULL,    'i' },
             { "output",      required_argument, NULL,    'o' },
-            { "optimize",    no_argument,       &mp4_optimize, 1 },
+            { "optimize",    no_argument,       NULL,        'O' },
             { "no-optimize", no_argument,       &mp4_optimize, 0 },
-            { "ipod-atom",   no_argument,       &ipod_atom,    1 },
+            { "ipod-atom",   no_argument,       NULL,        'I' },
             { "no-ipod-atom",no_argument,       &ipod_atom,    0 },
-            { "use-opencl",  no_argument,       &use_opencl,   1 },
-            { "use-hwd",     no_argument,       &use_hwd,      1 },
+            { "use-opencl",  no_argument,       NULL,        'P' },
+            { "use-hwd",     no_argument,       NULL,        'U' },
             { "no-hwd",      no_argument,       &use_hwd,      0 },
 
             { "title",       required_argument, NULL,    't' },
@@ -1816,7 +1816,7 @@ static int ParseOptions( int argc, char ** argv )
             { "no-detelecine", no_argument,     &detelecine_disable,  1 },
             { "decomb",      optional_argument, NULL,    '5' },
             { "no-decomb",   no_argument,       &decomb_disable,      1 },
-            { "grayscale",   no_argument,       &grayscale,    1 },
+            { "grayscale",   no_argument,       NULL,        'g' },
             { "no-grayscale",no_argument,       &grayscale,    0 },
             { "rotate",      optional_argument, NULL,   ROTATE_FILTER },
             { "non-anamorphic",  no_argument, &anamorphic_mode, 0 },
@@ -1983,6 +1983,18 @@ static int ParseOptions( int argc, char ** argv )
             case 'o':
                 output = strdup( optarg );
                 break;
+            case 'O':
+                mp4_optimize = 1;
+                break;
+            case 'I':
+                ipod_atom = 1;
+                break;
+            case 'P':
+                use_opencl = 1;
+                break;
+            case 'U':
+                use_hwd = 1;
+                break;
             case 't':
                 titleindex = atoi( optarg );
                 break;
@@ -2227,6 +2239,9 @@ static int ParseOptions( int argc, char ** argv )
                     decomb = strdup("default");
                 }
                 break;
+            case 'g':
+                grayscale = 1;
+                break;
             case ROTATE_FILTER:
                 free(rotate);
                 if (optarg != NULL)