Commit d46df396 authored by Laurent Aimar's avatar Laurent Aimar

* x264: added --quiet and --no-psnr.


git-svn-id: svn://svn.videolan.org/x264/trunk@44 df754926-b1dd-0310-bc7b-ec298dee348c
parent cba0cd39
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment