[x265] [PATCH] rc: obtain estimatedFrameCost from lowres.satdCost

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Mon Oct 21 19:40:26 CEST 2013


# HG changeset patch
# User Aarthi Thirumalai<aarthi at multicorewareinc.com>
# Date 1382377214 -19800
#      Mon Oct 21 23:10:14 2013 +0530
# Node ID 42aeb1249a2a4599eb30c305023d780ec2aaccde
# Parent  8bee2e580fd438b3fbf631c71cbdbbf8e3eef2ff
rc: obtain estimatedFrameCost from lowres.satdCost

diff -r 8bee2e580fd4 -r 42aeb1249a2a source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Mon Oct 21 23:04:38 2013 +0530
+++ b/source/encoder/ratecontrol.cpp	Mon Oct 21 23:10:14 2013 +0530
@@ -182,7 +182,9 @@
     {
     case X265_RC_ABR:
     {
-        lastSatd = l->getEstimatedPictureCost(pic);
+        if (pic->m_lowres.satdCost < 0)
+            l->getEstimatedPictureCost(pic);
+        lastSatd = pic->m_lowres.satdCost;
         double q = qScale2qp(rateEstimateQscale(rce));
         qp = Clip3(MIN_QP, MAX_QP, (int)(q + 0.5));
         rce->qpaRc = q;


More information about the x265-devel mailing list