[x265] [PATCH 3 of 3] cleanup unused TComLoopFilter::loopFilterPic

Min Chen chenm003 at 163.com
Mon Jun 16 11:01:29 CEST 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1402909273 -28800
# Node ID b29d9d9dc25c374fe2fa7e551a9307b38e5abb32
# Parent  01a0a522a21ff5e1a0d7e9b782bf9a7416fbe7b0
cleanup unused TComLoopFilter::loopFilterPic

diff -r 01a0a522a21f -r b29d9d9dc25c source/Lib/TLibCommon/TComLoopFilter.cpp
--- a/source/Lib/TLibCommon/TComLoopFilter.cpp	Mon Jun 16 17:00:55 2014 +0800
+++ b/source/Lib/TLibCommon/TComLoopFilter.cpp	Mon Jun 16 17:01:13 2014 +0800
@@ -108,49 +108,6 @@
     }
 }
 
-/**
- - call deblocking function for every CU
- .
- \param  pic   picture class (TComPic) pointer
- */
-void TComLoopFilter::loopFilterPic(TComPic* pic)
-{
-    // TODO: Min, thread parallelism later
-    bool edgeFilter[256];    // NOTE: the maximum LCU 64x64 have 256 partitions
-
-    // Horizontal filtering
-    for (uint32_t cuAddr = 0; cuAddr < pic->getNumCUsInFrame(); cuAddr++)
-    {
-        TComDataCU* cu = pic->getCU(cuAddr);
-
-        ::memset(m_blockingStrength[EDGE_VER], 0, sizeof(uint8_t) * m_numPartitions);
-        ::memset(edgeFilter, 0, sizeof(bool) * m_numPartitions);
-
-        // CU-based deblocking
-        xDeblockCU(cu, 0, 0, EDGE_VER, edgeFilter);
-
-        // Vertical filtering
-        // NOTE: delay one CU to avoid conflict between V and H
-        if (cuAddr > 0)
-        {
-            cu = pic->getCU(cuAddr - 1);
-            ::memset(m_blockingStrength[EDGE_HOR], 0, sizeof(uint8_t) * m_numPartitions);
-            ::memset(edgeFilter, 0, sizeof(bool) * m_numPartitions);
-
-            xDeblockCU(cu, 0, 0, EDGE_HOR, edgeFilter);
-        }
-    }
-
-    // Last H-Filter
-    {
-        TComDataCU* cu = pic->getCU(pic->getNumCUsInFrame() - 1);
-        ::memset(m_blockingStrength[EDGE_HOR], 0, sizeof(uint8_t) * m_numPartitions);
-        ::memset(edgeFilter, 0, sizeof(bool) * m_numPartitions);
-
-        xDeblockCU(cu, 0, 0, EDGE_HOR, edgeFilter);
-    }
-}
-
 void TComLoopFilter::loopFilterCU(TComDataCU* cu, int dir, bool edgeFilter[])
 {
     ::memset(m_blockingStrength[dir], 0, sizeof(uint8_t) * m_numPartitions);
diff -r 01a0a522a21f -r b29d9d9dc25c source/Lib/TLibCommon/TComLoopFilter.h
--- a/source/Lib/TLibCommon/TComLoopFilter.h	Mon Jun 16 17:00:55 2014 +0800
+++ b/source/Lib/TLibCommon/TComLoopFilter.h	Mon Jun 16 17:01:13 2014 +0800
@@ -124,9 +124,6 @@
     /// set configuration
     void setCfg(bool bLFCrossTileBoundary);
 
-    /// picture-level deblocking filter
-    void loopFilterPic(TComPic* pic);
-
     void loopFilterCU(TComDataCU* cu, int dir, bool edgeFilter[]);
 
     static int getBeta(int qp)



More information about the x265-devel mailing list