[x265] [PATCH] slicetype: fix incorrect initialization of fenc->rowSatds when wpp is enabled

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Sun Apr 27 12:00:46 CEST 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1398592832 -19800
#      Sun Apr 27 15:30:32 2014 +0530
# Node ID eb5811392e1451326300f359e190792c4a0336e9
# Parent  7baf8b8ecfdc98c33f45a04ebb3cc8cfcc4a1788
slicetype: fix incorrect initialization of fenc->rowSatds when wpp is enabled.

diff -r 7baf8b8ecfdc -r eb5811392e14 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Fri Apr 25 11:01:12 2014 +0800
+++ b/source/encoder/slicetype.cpp	Sun Apr 27 15:30:32 2014 +0530
@@ -1300,6 +1300,9 @@
         {
             rows[i].init();
             rows[i].me.setSourcePlane(fenc->lowresPlane[0], fenc->lumaStride);
+            if (!fenc->bIntraCalculated)
+                fenc->rowSatds[0][0][i] = 0;
+            fenc->rowSatds[b - p0][p1 - b][i] = 0;
         }
 
         rowsCompleted = false;
@@ -1485,10 +1488,6 @@
     Lowres *fenc = frames[curb];
     ReferencePlanes *wfref0 = weightedRef.isWeighted ? &weightedRef : frames[curp0];
 
-    if (!fenc->bIntraCalculated)
-        fenc->rowSatds[0][0][realrow] = 0;
-    fenc->rowSatds[curb - curp0][curp1 - curb][realrow] = 0;
-
     /* Lowres lookahead goes backwards because the MVs are used as
      * predictors in the main encode.  This considerably improves MV
      * prediction overall. */


More information about the x265-devel mailing list