[x264-devel] Improve profile help

Harfe Leier git at videolan.org
Sat Oct 22 02:30:23 CEST 2011


x264 | branch: master | Harfe Leier <astrataro at gmail.com> | Fri Sep 30 12:49:33 2011 -0700| [6eac7c35a5da6c176cedc2644c53ff9d019f7fb0] | committer: Jason Garrett-Glaser

Improve profile help
List high422/high444 profiles, and don't show non-high-bit-depth profiles in high bit depth builds.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=6eac7c35a5da6c176cedc2644c53ff9d019f7fb0
---

 x264.c |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/x264.c b/x264.c
index 55b0f4f..1e78b27 100644
--- a/x264.c
+++ b/x264.c
@@ -425,7 +425,9 @@ static void help( x264_param_t *defaults, int longhelp )
     H0( "\n" );
     H0( "      --profile <string>      Force the limits of an H.264 profile\n"
         "                                  Overrides all settings.\n" );
-    H2( "                                  - baseline:\n"
+    H2(
+#if BIT_DEPTH==8
+        "                                  - baseline:\n"
         "                                    --no-8x8dct --bframes 0 --no-cabac\n"
         "                                    --cqm flat --weightp 0\n"
         "                                    No interlaced.\n"
@@ -435,10 +437,24 @@ static void help( x264_param_t *defaults, int longhelp )
         "                                    No lossless.\n"
         "                                  - high:\n"
         "                                    No lossless.\n"
+#endif
         "                                  - high10:\n"
         "                                    No lossless.\n"
-        "                                    Support for bit depth 8-10.\n" );
-        else H0( "                                  - baseline,main,high,high10\n" );
+        "                                    Support for bit depth 8-10.\n"
+        "                                  - high422:\n"
+        "                                    No lossless.\n"
+        "                                    Support for bit depth 8-10.\n"
+        "                                    Support for 4:2:0/4:2:2 chroma subsampling.\n"
+        "                                  - high444:\n"
+        "                                    Support for bit depth 8-10.\n"
+        "                                    Support for 4:2:0/4:2:2/4:4:4 chroma subsampling.\n" );
+        else H0(
+#if BIT_DEPTH==8
+        "                                  - baseline,main,high,high10,high422,high444\n"
+#else
+        "                                  - high10,high422,high444\n"
+#endif
+               );
     H0( "      --preset <string>       Use a preset to select encoding settings [medium]\n"
         "                                  Overridden by user settings.\n" );
     H2( "                                  - ultrafast:\n"



More information about the x264-devel mailing list