[x265] [PATCH 2 of 4] cli: add -P short option for --profile
Steve Borho
steve at borho.org
Tue Apr 28 22:39:59 CEST 2015
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1430248693 18000
# Tue Apr 28 14:18:13 2015 -0500
# Node ID 2184362dd1cb6c13adf6c6ff93db2ea2f22645f0
# Parent 0183918ae416a5201a0f5048f87936bde044c9cd
cli: add -P short option for --profile
diff -r 0183918ae416 -r 2184362dd1cb doc/reST/cli.rst
--- a/doc/reST/cli.rst Tue Apr 28 15:05:54 2015 -0500
+++ b/doc/reST/cli.rst Tue Apr 28 14:18:13 2015 -0500
@@ -422,7 +422,7 @@
Profile, Level, Tier
====================
-.. option:: --profile <string>
+.. option:: --profile, -P <string>
Enforce the requirements of the specified profile, ensuring the
output stream will be decodable by a decoder which supports that
diff -r 0183918ae416 -r 2184362dd1cb source/x265cli.h
--- a/source/x265cli.h Tue Apr 28 15:05:54 2015 -0500
+++ b/source/x265cli.h Tue Apr 28 14:18:13 2015 -0500
@@ -30,7 +30,7 @@
namespace x265 {
#endif
-static const char short_options[] = "o:p:f:F:r:I:i:b:s:t:q:m:hwV?";
+static const char short_options[] = "o:P:p:f:F:r:I:i:b:s:t:q:m:hwV?";
static const struct option long_options[] =
{
{ "help", no_argument, NULL, 'h' },
@@ -47,7 +47,7 @@
{ "no-pme", no_argument, NULL, 0 },
{ "pme", no_argument, NULL, 0 },
{ "log-level", required_argument, NULL, 0 },
- { "profile", required_argument, NULL, 0 },
+ { "profile", required_argument, NULL, 'P' },
{ "level-idc", required_argument, NULL, 0 },
{ "high-tier", no_argument, NULL, 0 },
{ "no-high-tier", no_argument, NULL, 0 },
@@ -260,7 +260,7 @@
H0(" --[no-]ssim Enable reporting SSIM metric scores. Default %s\n", OPT(param->bEnableSsim));
H0(" --[no-]psnr Enable reporting PSNR metric scores. Default %s\n", OPT(param->bEnablePsnr));
H0("\nProfile, Level, Tier:\n");
- H0(" --profile <string> Enforce an encode profile: main, main10, mainstillpicture\n");
+ H0("-P/--profile <string> Enforce an encode profile: main, main10, mainstillpicture\n");
H0(" --level-idc <integer|float> Force a minimum required decoder level (as '5.0' or '50')\n");
H0(" --[no-]high-tier If a decoder level is specified, this modifier selects High tier of that level\n");
H0(" --[no-]allow-non-conformance Allow the encoder to generate profile NONE bitstreams. Default %s\n", OPT(param->bAllowNonConformance));
More information about the x265-devel
mailing list