[x265] [PATCH 15 of 24] sao: cleanup unused processSaoUnitRow()
Min Chen
chenm003 at 163.com
Tue Dec 8 00:54:52 CET 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1449511587 21600
# Node ID 42a01b5f1c7cb70522e9d516c22af69c0b1e8cf0
# Parent 86558049b77fa9838a4048229cc76ee9587356b8
sao: cleanup unused processSaoUnitRow()
---
source/encoder/sao.cpp | 70 ------------------------------------------------
1 files changed, 0 insertions(+), 70 deletions(-)
diff -r 86558049b77f -r 42a01b5f1c7c source/encoder/sao.cpp
--- a/source/encoder/sao.cpp Mon Dec 07 12:06:24 2015 -0600
+++ b/source/encoder/sao.cpp Mon Dec 07 12:06:27 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