# HG changeset patch
# User Shazeb Nawaz Khan <[email protected]>
# Date 1381230853 -19800
#      Tue Oct 08 16:44:13 2013 +0530
# Node ID b79ed7a252bba3cc293054c314287f722c8b3b3f
# Parent  9b3a427a1009d1853bbdc30abe1fd891864e6b38
Use unweighted pixels before interpolation for Luma in Motion Compensation

diff -r 9b3a427a1009 -r b79ed7a252bb source/Lib/TLibCommon/TComPrediction.cpp
--- a/source/Lib/TLibCommon/TComPrediction.cpp  Tue Oct 08 11:12:12 2013 +0530
+++ b/source/Lib/TLibCommon/TComPrediction.cpp  Tue Oct 08 16:44:13 2013 +0530
@@ -265,7 +265,7 @@
                 MV mv = cu->getCUMvField(picList)->getMv(partAddr);
                 cu->clipMv(mv);
 
-                xPredInterLumaBlk(cu, cu->getSlice()->m_mref[picList][refId], 
partAddr, &mv, width, height, predYuv);
+                xPredInterLumaBlk(cu, cu->getSlice()->getRefPic(picList, 
refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
                 xPredInterChromaBlk(cu, cu->getSlice()->getRefPic(picList, 
refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
 
                 xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, 
picList, predYuv);
@@ -305,7 +305,7 @@
                 MV mv = cu->getCUMvField(picList)->getMv(partAddr);
                 cu->clipMv(mv);
 
-                xPredInterLumaBlk(cu, cu->getSlice()->m_mref[picList][refId], 
partAddr, &mv, width, height, predYuv);
+                xPredInterLumaBlk(cu, cu->getSlice()->getRefPic(picList, 
refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
                 xPredInterChromaBlk(cu, cu->getSlice()->getRefPic(picList, 
refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
 
                 xWeightedPredictionUni(cu, pcMbYuv, partAddr, width, height, 
picList, predYuv);
@@ -422,7 +422,7 @@
             MV mv = cu->getCUMvField(picList)->getMv(partAddr);
             cu->clipMv(mv);
 
-            xPredInterLumaBlk(cu, cu->getSlice()->m_mref[picList][refId], 
partAddr, &mv, width, height, outPredYuv);
+            xPredInterLumaBlk(cu, cu->getSlice()->getRefPic(picList, 
refId)->getPicYuvRec(), partAddr, &mv, width, height, pcMbYuv);
             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);
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to