From: Laurent Aimar Date: Sat, 28 Aug 2004 22:30:44 +0000 (+0000) Subject: * x264: added --quiet and --no-psnr. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d46df39630925245993e3ecde07adce618d3c30a;p=libx264 * x264: added --quiet and --no-psnr. git-svn-id: svn://svn.videolan.org/x264/trunk@44 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.c b/x264.c index c657a6fc..a82fa829 100644 --- 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;