[x265] change '--limit-refs' info from 1/0 to on/off

Mateusz mateuszb at poczta.onet.pl
Tue Apr 12 20:16:36 CEST 2016


Change displayed info about '--limit-refs' to better understanding by user.

Example: change from
x265 [info]: References / ref-limit  cu / depth  : 5 / 0 / 1
to
x265 [info]: References / ref-limit  cu / depth  : 5 / off / on
-------------- next part --------------
diff -r 40afead3177d source/common/param.cpp
--- a/source/common/param.cpp	Sat Apr 09 19:32:28 2016 +0530
+++ b/source/common/param.cpp	Tue Apr 12 19:54:56 2016 +0200
@@ -1307,8 +1307,9 @@
     x265_log(param, X265_LOG_INFO, "Lookahead / bframes / badapt        : %d / %d / %d\n", param->lookaheadDepth, param->bframes, param->bFrameAdaptive);
     x265_log(param, X265_LOG_INFO, "b-pyramid / weightp / weightb       : %d / %d / %d\n",
              param->bBPyramid, param->bEnableWeightedPred, param->bEnableWeightedBiPred);
-    x265_log(param, X265_LOG_INFO, "References / ref-limit  cu / depth  : %d / %d / %d\n",
-             param->maxNumReferences, !!(param->limitReferences & X265_REF_LIMIT_CU), !!(param->limitReferences & X265_REF_LIMIT_DEPTH));
+    x265_log(param, X265_LOG_INFO, "References / ref-limit  cu / depth  : %d / %s / %s\n",
+             param->maxNumReferences, (param->limitReferences & X265_REF_LIMIT_CU) ? "on" : "off",
+             (param->limitReferences & X265_REF_LIMIT_DEPTH) ? "on" : "off");
 
     if (param->rc.aqMode)
         x265_log(param, X265_LOG_INFO, "AQ: mode / str / qg-size / cu-tree  : %d / %0.1f / %d / %d\n", param->rc.aqMode,


More information about the x265-devel mailing list