[x265] [PATCH] bug fix for passing bLuma and bChroma as separate arguments

sumalatha at multicorewareinc.com sumalatha at multicorewareinc.com
Mon Oct 21 09:25:29 CEST 2013


# HG changeset patch
# User Sumalatha Polureddy
# Date 1382340318 -19800
# Node ID 24e84716091af51b74a4328966245748716113dc
# Parent  fabb25ae4db4a06073decead3836521a14b5bde9
bug fix for passing bLuma and bChroma as separate arguments

if there are default arguments other than bLuma and bChroma, those default values
(bRound, refIdx) are not passed during the function call(addWeightBi(),
xWeightedPredictionUni())

diff -r fabb25ae4db4 -r 24e84716091a source/Lib/TLibCommon/TComPrediction.cpp
--- a/source/Lib/TLibCommon/TComPrediction.cpp	Sat Oct 19 18:08:07 2013 +0800
+++ b/source/Lib/TLibCommon/TComPrediction.cpp	Mon Oct 21 12:55:18 2013 +0530
@@ -269,7 +269,7 @@
                 if (bChroma)
                     xPredInterChromaBlk(cu, cu->getSlice()->getRefPic(picList, refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
 
-                xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, picList, predYuv, bLuma, bChroma);
+                xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, picList, predYuv, -1, bLuma, bChroma);
             }
             else
             {
@@ -311,7 +311,7 @@
                 if (bChroma)
                     xPredInterChromaBlk(cu, cu->getSlice()->getRefPic(picList, refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
 
-                xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, picList, predYuv, bLuma, bChroma);
+                xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, picList, predYuv, -1, bLuma, bChroma);
             }
             else
             {
@@ -433,7 +433,7 @@
             if (bChroma)
                 xPredInterChromaBlk(cu, cu->getSlice()->getRefPic(picList, refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
 
-            xWeightedPredictionUni(cu, &m_predShortYuv[0], partAddr, width, height, REF_PIC_LIST_0, outPredYuv, bLuma, bChroma);
+            xWeightedPredictionUni(cu, &m_predShortYuv[0], partAddr, width, height, REF_PIC_LIST_0, outPredYuv, -1, bLuma, bChroma);
         }
     }
     else
diff -r fabb25ae4db4 -r 24e84716091a source/Lib/TLibCommon/TComWeightPrediction.cpp
--- a/source/Lib/TLibCommon/TComWeightPrediction.cpp	Sat Oct 19 18:08:07 2013 +0800
+++ b/source/Lib/TLibCommon/TComWeightPrediction.cpp	Mon Oct 21 12:55:18 2013 +0530
@@ -580,7 +580,7 @@
 
     if (refIdx0 >= 0 && refIdx1 >= 0)
     {
-        addWeightBi(srcYuv0, srcYuv1, partIdx, width, height, pwp0, pwp1, outDstYuv, bLuma, bChroma);
+        addWeightBi(srcYuv0, srcYuv1, partIdx, width, height, pwp0, pwp1, outDstYuv, true, bLuma, bChroma);
     }
     else if (refIdx0 >= 0 && refIdx1 <  0)
     {
@@ -616,7 +616,7 @@
 
     if (refIdx0 >= 0 && refIdx1 >= 0)
     {
-        addWeightBi(srcYuv0, srcYuv1, partIdx, width, height, pwp0, pwp1, outDstYuv, bLuma, bChroma);
+        addWeightBi(srcYuv0, srcYuv1, partIdx, width, height, pwp0, pwp1, outDstYuv, true, bLuma, bChroma);
     }
     else if (refIdx0 >= 0 && refIdx1 <  0)
     {


More information about the x265-devel mailing list