[x265] [PATCH 1 of 2] framepp: loopfilter simplify and remove redundant getDeblockingFilterDisable()

Min Chen chenm003 at 163.com
Tue Aug 6 06:02:43 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1375760818 -28800
# Node ID 40ccd100e265d93fcaeae1e9269302723c9b4933
# Parent  03880135c31b82085dd981d93b617f3dfa2e80e9
framepp: loopfilter simplify and remove redundant getDeblockingFilterDisable()

diff -r 03880135c31b -r 40ccd100e265 source/Lib/TLibCommon/TComLoopFilter.cpp
--- a/source/Lib/TLibCommon/TComLoopFilter.cpp	Mon Aug 05 18:00:30 2013 -0500
+++ b/source/Lib/TLibCommon/TComLoopFilter.cpp	Tue Aug 06 11:46:58 2013 +0800
@@ -350,16 +350,12 @@
     // We can't here when DeblockingDisable flag is true
     assert(!cu->getSlice()->getDeblockingFilterDisable());
 
-    if ((uiX == 0) || cu->getSlice()->getDeblockingFilterDisable())
+    if (uiX == 0)
     {
         m_stLFCUParam.bLeftEdge = false;
     }
     else
     {
-        m_stLFCUParam.bLeftEdge = true;
-    }
-    if (m_stLFCUParam.bLeftEdge)
-    {
         pcTempCU = cu->getPULeft(uiTempPartIdx, absZOrderIdx, !true, !m_bLFCrossTileBoundary);
         if (pcTempCU)
         {
@@ -371,18 +367,13 @@
         }
     }
 
-    if ((uiY == 0) || cu->getSlice()->getDeblockingFilterDisable())
+    if (uiY == 0)
     {
         m_stLFCUParam.bTopEdge = false;
     }
     else
     {
-        m_stLFCUParam.bTopEdge = true;
-    }
-    if (m_stLFCUParam.bTopEdge)
-    {
         pcTempCU = cu->getPUAbove(uiTempPartIdx, absZOrderIdx, !true, false, !m_bLFCrossTileBoundary);
-
         if (pcTempCU)
         {
             m_stLFCUParam.bTopEdge = true;



More information about the x265-devel mailing list