[x265] [PATCH 15 of 15] sao: cleanup unused processSaoUnitRow()

Min Chen chenm003 at 163.com
Wed Dec 2 18:28:38 CET 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1449076385 21600
# Node ID 330cfe6d0528fd5016f658fcc7f14ddf986dc61f
# Parent  a6d88a08af3d48cb804aa61819bd45ee685d1f59
sao: cleanup unused processSaoUnitRow()
---
 source/encoder/sao.cpp |   70 ------------------------------------------------
 1 files changed, 0 insertions(+), 70 deletions(-)

diff -r a6d88a08af3d -r 330cfe6d0528 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp	Wed Dec 02 11:13:00 2015 -0600
+++ b/source/encoder/sao.cpp	Wed Dec 02 11:13:05 2015 -0600
@@ -603,76 +603,6 @@
     }
 }
 
-/* Process SAO all units */
-void SAO::processSaoUnitRow(SaoCtuParam* ctuParam, int idxY, int plane)
-{
-    PicYuv* reconPic = m_frame->m_reconPic;
-    intptr_t stride = plane ? reconPic->m_strideC : reconPic->m_stride;
-    uint32_t picWidth  = m_param->sourceWidth;
-    int ctuWidth  = g_maxCUSize;
-    int ctuHeight = g_maxCUSize;
-
-    if (plane)
-    {
-        picWidth  >>= m_hChromaShift;
-        ctuWidth  >>= m_hChromaShift;
-        ctuHeight >>= m_vChromaShift;
-    }
-
-    int addr = idxY * m_numCuInWidth;
-    pixel* rec = reconPic->getPlaneAddr(plane, addr);
-
-    for (int i = 0; i < ctuHeight + 1; i++)
-    {
-        m_tmpL1[plane][i] = rec[0];
-        rec += stride;
-    }
-
-    for (int idxX = 0; idxX < m_numCuInWidth; idxX++)
-    {
-        addr = idxY * m_numCuInWidth + idxX;
-
-        bool mergeLeftFlag = ctuParam[addr].mergeMode == SAO_MERGE_LEFT;
-        int typeIdx = ctuParam[addr].typeIdx;
-
-        if (idxX != (m_numCuInWidth - 1))
-        {
-            rec = reconPic->getPlaneAddr(plane, addr);
-            for (int i = 0; i < ctuHeight + 1; i++)
-            {
-                m_tmpL2[plane][i] = rec[ctuWidth - 1];
-                rec += stride;
-            }
-        }
-
-        if (typeIdx >= 0)
-        {
-            if (!mergeLeftFlag)
-            {
-                if (typeIdx == SAO_BO)
-                {
-                    memset(m_offsetBo[plane], 0, sizeof(m_offsetBo[0]));
-
-                    for (int i = 0; i < SAO_NUM_OFFSET; i++)
-                        m_offsetBo[plane][((ctuParam[addr].bandPos + i) & (SAO_NUM_BO_CLASSES - 1))] = (int8_t)(ctuParam[addr].offset[i] << SAO_BIT_INC);
-                }
-                else // if (typeIdx == SAO_EO_0 || typeIdx == SAO_EO_1 || typeIdx == SAO_EO_2 || typeIdx == SAO_EO_3)
-                {
-                    int offset[NUM_EDGETYPE];
-                    offset[0] = 0;
-                    for (int i = 0; i < SAO_NUM_OFFSET; i++)
-                        offset[i + 1] = ctuParam[addr].offset[i] << SAO_BIT_INC;
-
-                    for (int edgeType = 0; edgeType < NUM_EDGETYPE; edgeType++)
-                        m_offsetEo[plane][edgeType] = (int8_t)offset[s_eoTable[edgeType]];
-                }
-            }
-            processSaoCu(addr, typeIdx, plane);
-        }
-        std::swap(m_tmpL1[plane], m_tmpL2[plane]);
-    }
-}
-
 /* Process SAO unit */
 void SAO::processSaoUnitCuLuma(SaoCtuParam* ctuParam, int idxY, int idxX)
 {



More information about the x265-devel mailing list