[x265] [PATCH] CLI: small fixes for dhdr10

Mateusz Brzostek mateusz at msystem.waw.pl
Thu Apr 20 23:55:16 CEST 2017


There is missing enter in '--help' with dhdr10 (and it should be TOOLOPT instead of TOOLVAL).

# HG changeset patch
# User Ma0 <mateuszb at poczta.onet.pl>
# Date 1492724724 -7200
#      Thu Apr 20 23:45:24 2017 +0200
# Node ID 36996838a99ff5fa75221fde6c3a91d1b108d9d2
# Parent  2c6e6c9c3da72aaddb33565d7031918fb5a37097
CLI: small fixes for dhdr10

diff -r 2c6e6c9c3da7 -r 36996838a99f source/common/param.cpp
--- a/source/common/param.cpp    Thu Apr 20 11:08:02 2017 +0530
+++ b/source/common/param.cpp    Thu Apr 20 23:45:24 2017 +0200
@@ -1474,7 +1474,7 @@
     TOOLOPT(param->rc.bStatWrite, "stats-write");
     TOOLOPT(param->rc.bStatRead,  "stats-read");
 #if ENABLE_DYNAMIC_HDR10
-    TOOLVAL(param->toneMapFile != NULL, "dhdr10-info");
+    TOOLOPT(param->toneMapFile != NULL, "dhdr10-info");
 #endif
     x265_log(param, X265_LOG_INFO, "tools:%s\n", buf);
     fflush(stderr);
diff -r 2c6e6c9c3da7 -r 36996838a99f source/x265cli.h
--- a/source/x265cli.h    Thu Apr 20 11:08:02 2017 +0530
+++ b/source/x265cli.h    Thu Apr 20 23:45:24 2017 +0200
@@ -317,8 +317,8 @@
     H1("                                 2 - i422 (4:2:2)\n");
     H1("                                 3 - i444 (4:4:4)\n");
 #if ENABLE_DYNAMIC_HDR10
-    H0("   --dhdr10-info <filename>      JSON file containing the Creative Intent Metadata to be encoded as Dynamic Tone Mapping \n");
-    H0("   --[no-]dhdr10-opt             Insert tone mapping SEI only for IDR frames and when the tone mapping information changes. Default disabled");
+    H0("   --dhdr10-info <filename>      JSON file containing the Creative Intent Metadata to be encoded as Dynamic Tone Mapping\n");
+    H0("   --[no-]dhdr10-opt             Insert tone mapping SEI only for IDR frames and when the tone mapping information changes. Default disabled\n");
 #endif
     H0("-f/--frames <integer>            Maximum number of frames to encode. Default all\n");
     H0("   --seek <integer>              First frame to encode\n");

-------------- next part --------------
# HG changeset patch
# User Ma0 <mateuszb at poczta.onet.pl>
# Date 1492724724 -7200
#      Thu Apr 20 23:45:24 2017 +0200
# Node ID 36996838a99ff5fa75221fde6c3a91d1b108d9d2
# Parent  2c6e6c9c3da72aaddb33565d7031918fb5a37097
CLI: small fixes for dhdr10

diff -r 2c6e6c9c3da7 -r 36996838a99f source/common/param.cpp
--- a/source/common/param.cpp	Thu Apr 20 11:08:02 2017 +0530
+++ b/source/common/param.cpp	Thu Apr 20 23:45:24 2017 +0200
@@ -1474,7 +1474,7 @@
     TOOLOPT(param->rc.bStatWrite, "stats-write");
     TOOLOPT(param->rc.bStatRead,  "stats-read");
 #if ENABLE_DYNAMIC_HDR10
-    TOOLVAL(param->toneMapFile != NULL, "dhdr10-info");
+    TOOLOPT(param->toneMapFile != NULL, "dhdr10-info");
 #endif
     x265_log(param, X265_LOG_INFO, "tools:%s\n", buf);
     fflush(stderr);
diff -r 2c6e6c9c3da7 -r 36996838a99f source/x265cli.h
--- a/source/x265cli.h	Thu Apr 20 11:08:02 2017 +0530
+++ b/source/x265cli.h	Thu Apr 20 23:45:24 2017 +0200
@@ -317,8 +317,8 @@
     H1("                                 2 - i422 (4:2:2)\n");
     H1("                                 3 - i444 (4:4:4)\n");
 #if ENABLE_DYNAMIC_HDR10
-    H0("   --dhdr10-info <filename>      JSON file containing the Creative Intent Metadata to be encoded as Dynamic Tone Mapping \n");
-    H0("   --[no-]dhdr10-opt             Insert tone mapping SEI only for IDR frames and when the tone mapping information changes. Default disabled");
+    H0("   --dhdr10-info <filename>      JSON file containing the Creative Intent Metadata to be encoded as Dynamic Tone Mapping\n");
+    H0("   --[no-]dhdr10-opt             Insert tone mapping SEI only for IDR frames and when the tone mapping information changes. Default disabled\n");
 #endif
     H0("-f/--frames <integer>            Maximum number of frames to encode. Default all\n");
     H0("   --seek <integer>              First frame to encode\n");


More information about the x265-devel mailing list