[x265] cli: add --ipratio and --pbratio

Satoshi Nakagawa nakagawa424 at oki.com
Thu Jun 26 09:22:52 CEST 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1403706071 -32400
#      Wed Jun 25 23:21:11 2014 +0900
# Node ID 3ca045895945f0afc6b4d1b1868feb00382796a3
# Parent  09450ac6dc7d0f495582bf327488612755df1719
cli: add --ipratio and --pbratio

diff -r 09450ac6dc7d -r 3ca045895945 source/common/param.cpp
--- a/source/common/param.cpp	Tue Jun 24 15:41:55 2014 +0900
+++ b/source/common/param.cpp	Wed Jun 25 23:21:11 2014 +0900
@@ -633,6 +633,8 @@
     OPT("aud") p->bEnableAccessUnitDelimiters = atobool(value);
     OPT("b-pyramid") p->bBPyramid = atobool(value);
     OPT("hrd") p->bEmitHRDSEI = atobool(value);
+    OPT2("ipratio", "ip-factor") p->rc.ipFactor = atof(value);
+    OPT2("pbratio", "pb-factor") p->rc.pbFactor = atof(value);
     OPT("aq-mode") p->rc.aqMode = atoi(value);
     OPT("aq-strength") p->rc.aqStrength = atof(value);
     OPT("vbv-maxrate") p->rc.vbvMaxBitrate = atoi(value);
diff -r 09450ac6dc7d -r 3ca045895945 source/x265.cpp
--- a/source/x265.cpp	Tue Jun 24 15:41:55 2014 +0900
+++ b/source/x265.cpp	Wed Jun 25 23:21:11 2014 +0900
@@ -142,6 +142,8 @@
     { "qp",             required_argument, NULL, 'q' },
     { "aq-mode",        required_argument, NULL, 0 },
     { "aq-strength",    required_argument, NULL, 0 },
+    { "ipratio",        required_argument, NULL, 0 },
+    { "pbratio",        required_argument, NULL, 0 },
     { "cbqpoffs",       required_argument, NULL, 0 },
     { "crqpoffs",       required_argument, NULL, 0 },
     { "rd",             required_argument, NULL, 0 },
@@ -394,6 +396,8 @@
     H0("   --aq-mode <integer>           Mode for Adaptive Quantization - 0:none 1:uniform AQ 2:auto variance. Default %d\n", param->rc.aqMode);
     H0("   --aq-strength <float>         Reduces blocking and blurring in flat and textured areas.(0 to 3.0). Default %f\n", param->rc.aqStrength);
     H0("   --[no-]cutree                 Enable cutree for Adaptive Quantization. Default %s\n", OPT(param->rc.cuTree));
+    H0("   --ipratio <float>             QP factor between I and P. Default %f\n", param->rc.ipFactor);
+    H0("   --pbratio <float>             QP factor between P and B. Default %f\n", param->rc.pbFactor);
     H0("   --cbqpoffs <integer>          Chroma Cb QP Offset. Default %d\n", param->cbQpOffset);
     H0("   --crqpoffs <integer>          Chroma Cr QP Offset. Default %d\n", param->crQpOffset);
     H0("   --[no-]hrd                    Enable HRD parameters signalling. Default %s\n", OPT(param->bEmitHRDSEI));


More information about the x265-devel mailing list