]> granicus.if.org Git - libx264/commitdiff
* x264: added --quiet and --no-psnr.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 28 Aug 2004 22:30:44 +0000 (22:30 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 28 Aug 2004 22:30:44 +0000 (22:30 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@44 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index c657a6fc2af0d50e14f3efb2d867988cd8ba7bf9..a82fa8299a1a8f6e443877becf07b087c59bf8cf 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -135,6 +135,8 @@ static void Help( void )
              "  -o, --output                Specify output file\n"
              "\n"
              "      --no-asm                Disable any CPU optims\n"
+             "      --no-psnr               Disable PSNR computaion\n"
+             "      --quiet                 Quiet Mode\n"
              "\n",
             X264_BUILD
            );
@@ -170,6 +172,8 @@ static int  Parse( int argc, char **argv,
 #define OPT_RCSTATS 264
 #define OPT_RCEQ 265
 #define OPT_QCOMP 266
+#define OPT_NOPSNR 267
+#define OPT_QUIET 268
 
         static struct option long_options[] =
         {
@@ -199,6 +203,8 @@ static int  Parse( int argc, char **argv,
             { "stats",   required_argument, NULL, OPT_RCSTATS },
             { "rceq",    required_argument, NULL, OPT_RCEQ },
             { "qcomp",   required_argument, NULL, OPT_QCOMP },
+            { "no-psnr", no_argument,       NULL, OPT_NOPSNR },
+            { "quiet",   no_argument,       NULL, OPT_QUIET },
             {0, 0, 0, 0}
         };
 
@@ -333,6 +339,13 @@ static int  Parse( int argc, char **argv,
             case OPT_QCOMP:
                 param->rc.f_qcompress = atof(optarg);
                 break;
+
+            case OPT_NOPSNR:
+                param->analyse.b_psnr = 0;
+                break;
+            case OPT_QUIET:
+                param->i_log_level = X264_LOG_NONE;
+                break;
             default:
                 fprintf( stderr, "unknown option (%c)\n", optopt );
                 return -1;