[x265] [PATCH] weightb: reinitialize weight table when weightb is off

kavitha at multicorewareinc.com kavitha at multicorewareinc.com
Thu Jun 5 09:37:13 CEST 2014


# HG changeset patch
# User Kavitha Sampath <kavitha at multicorewareinc.com>
# Date 1401953733 -19800
#      Thu Jun 05 13:05:33 2014 +0530
# Node ID 490f6db62c88ee2f90f66c8a5d85ad0976f89770
# Parent  495874699b0d8a77d3112df9b3a9d951428ec987
weightb: reinitialize weight table when weightb is off

diff -r 495874699b0d -r 490f6db62c88 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Thu Jun 05 11:41:43 2014 +0530
+++ b/source/encoder/frameencoder.cpp	Thu Jun 05 13:05:33 2014 +0530
@@ -498,6 +498,10 @@
         X265_CHECK(slice->getPPS()->getUseWP(), "weightp not enabled in PPS, but in use\n");
         weightAnalyse(*slice, *m_cfg->m_param);
     }
+    else
+    {
+        slice->resetWpScaling();
+    }
 
     // Generate motion references
     int numPredDir = slice->isInterP() ? 1 : slice->isInterB() ? 2 : 0;


More information about the x265-devel mailing list