[x265] [PATCH] param: log CBR if vbvMaxrate, abr bitrate and vbv bufsize are equal

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Thu Jun 5 08:44:11 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1401950608 -19800
#      Thu Jun 05 12:13:28 2014 +0530
# Node ID 21c0d24fe9f6b8c20115b64f36c95e184b7aa78a
# Parent  817c25f5ace136c60100dabb128dda6056c86bfb
param: log CBR if vbvMaxrate, abr bitrate and vbv bufsize are equal

diff -r 817c25f5ace1 -r 21c0d24fe9f6 source/common/param.cpp
--- a/source/common/param.cpp	Thu Jun 05 11:43:17 2014 +0530
+++ b/source/common/param.cpp	Thu Jun 05 12:13:28 2014 +0530
@@ -1130,7 +1130,11 @@
     else switch (param->rc.rateControlMode)
     {
     case X265_RC_ABR:
-        x265_log(param, X265_LOG_INFO, "Rate Control / AQ-Strength / CUTree : ABR-%d kbps / %0.1f / %d\n", param->rc.bitrate,
+        if (param->rc.vbvMaxBitrate == param->rc.bitrate && param->rc.vbvMaxBitrate == param->rc.vbvBufferSize)
+            x265_log(param, X265_LOG_INFO, "Rate Control / AQ-Strength / CUTree : CBR-%d kbps / %0.1f / %d\n", param->rc.bitrate,
+                     param->rc.aqStrength, param->rc.cuTree);
+        else
+            x265_log(param, X265_LOG_INFO, "Rate Control / AQ-Strength / CUTree : ABR-%d kbps / %0.1f / %d\n", param->rc.bitrate,
                  param->rc.aqStrength, param->rc.cuTree);
         break;
     case X265_RC_CQP:


More information about the x265-devel mailing list