[x264-devel] [PATCH] Show more available profiles and auto hide unavailable profiles in help / fullhelp

Harfe Leier astrataro at gmail.com
Fri Sep 30 21:30:37 CEST 2011


Hide "baseline", "main", and "high" in fullhelp of high-bit builds,
and add "high422" and "high444" for all builds.

Regards,
06_taro


---

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

diff --git a/x264.c b/x264.c
index 55b0f4f..94ed89e 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 ( !(X264_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 ( !(X264_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