[x265] [PATCH] [slice] cleanup debug code
chen
chenm003 at 163.com
Wed Sep 7 23:40:03 CEST 2016
From e409325885d196b53d9824ee861867a696e6df51 Mon Sep 17 00:00:00 2001
From: Min Chen <min.chen at multicorewareinc.com>
Date: Wed, 7 Sep 2016 15:25:49 -0500
Subject: [PATCH] [slice] cleanup debug code
---
source/encoder/frameencoder.cpp | 10 +---------
source/encoder/framefilter.cpp | 3 ---
2 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/source/encoder/frameencoder.cpp b/source/encoder/frameencoder.cpp
index 73e7005..256eed8 100644
--- a/source/encoder/frameencoder.cpp
+++ b/source/encoder/frameencoder.cpp
@@ -630,8 +630,6 @@ void FrameEncoder::compressFrame()
}
}
- //printf("POC %2d: Row=%2d **\n", m_frame->m_poc, row);
-
enableRowEncoder(row); /* clear external dependency for this row */
if (!rowInSlice)
{
@@ -1149,8 +1147,6 @@ void FrameEncoder::processRowEncoder(int intRow, ThreadLocalData& tld)
const uint32_t bLastCuInSlice = (bLastRowInSlice & (col == numCols - 1)) ? 1 : 0;
ctu->initCTU(*m_frame, cuAddr, slice->m_sliceQp, bFirstRowInSlice, bLastRowInSlice, bLastCuInSlice);
- //printf("CU[%2d,%2d]\n", row, col);
-
if (bIsVbv)
{
if (!row)
@@ -1397,7 +1393,7 @@ void FrameEncoder::processRowEncoder(int intRow, ThreadLocalData& tld)
{
/* activate next row */
ScopedLock below(m_rows[row + 1].lock);
- //printf("POC %2d: CU(%2d,%2d) Enable\n", slice->m_poc, row + 1, col);
+
if (m_rows[row + 1].active == false &&
m_rows[row + 1].completed + 2 <= curRow.completed)
{
@@ -1475,7 +1471,6 @@ void FrameEncoder::processRowEncoder(int intRow, ThreadLocalData& tld)
{
if (rowInSlice >= m_filterRowDelay)
{
- //printf("POC %2d: Row %2d Filter Enable\n", slice->m_poc, row - m_filterRowDelay);
enableRowFilter(row - m_filterRowDelay);
/* NOTE: Activate filter if first row (row 0) */
@@ -1488,7 +1483,6 @@ void FrameEncoder::processRowEncoder(int intRow, ThreadLocalData& tld)
{
for (uint32_t i = endRowInSlicePlus1 - m_filterRowDelay; i < endRowInSlicePlus1; i++)
{
- //printf("POC %2d: Row %2d Filter Enable\n", slice->m_poc, i);
enableRowFilter(i);
}
tryWakeOne();
@@ -1505,8 +1499,6 @@ void FrameEncoder::processRowEncoder(int intRow, ThreadLocalData& tld)
tld.analysis.m_param = NULL;
curRow.busy = false;
- //printf("Row %2d done\n", row);
-
// CHECK_ME: Does it always FALSE condition?
if (ATOMIC_INC(&m_completionCount) == 2 * (int)m_numRows)
m_completionEvent.trigger();
diff --git a/source/encoder/framefilter.cpp b/source/encoder/framefilter.cpp
index 4c923d4..b9f4256 100644
--- a/source/encoder/framefilter.cpp
+++ b/source/encoder/framefilter.cpp
@@ -655,12 +655,9 @@ void FrameFilter::processPostRow(int row)
}
}
} // end of (m_param->maxSlices == 1)
- //printf("POC %2d: Row=%2d\n", m_frame->m_poc, row);
- //printf("POC %2d: Row=%2d X\n", m_frame->m_poc, row);
if (ATOMIC_INC(&m_frameEncoder->m_completionCount) == 2 * (int)m_frameEncoder->m_numRows)
{
- //printf("POC %2d: Row=%2d -->\n", m_frame->m_poc, row);
m_frameEncoder->m_completionEvent.trigger();
}
}
--
1.7.9.msysgit.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160908/61cd28e6/attachment-0001.html>
More information about the x265-devel
mailing list