[x265] [PATCH 3 of 3] cleanup unused TComLoopFilter::loopFilterPic
Steve Borho
steve at borho.org
Tue Jun 17 05:12:12 CEST 2014
On Mon, Jun 16, 2014 at 9:20 PM, Min Chen <chenm003 at 163.com> wrote:
> # HG changeset patch
> # User Min Chen <chenm003 at 163.com>
> # Date 1402971550 -28800
> # Node ID a8e3cbbb1f3515a78b393b42ecd35e58548f4c61
> # Parent fe858e347daf39acd77e893f8678e571805e0477
> cleanup unused TComLoopFilter::loopFilterPic
this series is queued
> diff -r fe858e347daf -r a8e3cbbb1f35 source/Lib/TLibCommon/TComLoopFilter.cpp
> --- a/source/Lib/TLibCommon/TComLoopFilter.cpp Tue Jun 17 10:18:55 2014 +0800
> +++ b/source/Lib/TLibCommon/TComLoopFilter.cpp Tue Jun 17 10:19:10 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 fe858e347daf -r a8e3cbbb1f35 source/Lib/TLibCommon/TComLoopFilter.h
> --- a/source/Lib/TLibCommon/TComLoopFilter.h Tue Jun 17 10:18:55 2014 +0800
> +++ b/source/Lib/TLibCommon/TComLoopFilter.h Tue Jun 17 10:19:10 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)
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
--
Steve Borho
More information about the x265-devel
mailing list