[x265] [PATCH] framefilter: we not need a row delay on loopfilter disable mode, more clear code to call processRow on last rows

Min Chen chenm003 at 163.com
Wed Sep 11 16:32:00 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1378909245 -28800
# Node ID 543412d6e98e1047ed4722f9780268753b4bf8dc
# Parent  9a956054f2f7971e7eab05281bc0857558091d87
framefilter: we not need a row delay on loopfilter disable mode, more clear code to call processRow on last rows

diff -r 9a956054f2f7 -r 543412d6e98e source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Wed Sep 11 22:19:59 2013 +0800
+++ b/source/encoder/frameencoder.cpp	Wed Sep 11 22:20:45 2013 +0800
@@ -947,10 +947,8 @@
     // this row of CTUs has been encoded
     if (row == m_numRows - 1)
     {
-        int lag = m_filterRowDelay;
-        while (--lag)
-            m_frameFilter.processRow(row - lag);
-        m_frameFilter.processRow(row);
+         for(int i = m_numRows - m_filterRowDelay; i < m_numRows; i++)
+             m_frameFilter.processRow(i);
         m_completionEvent.trigger();
     }
 }
diff -r 9a956054f2f7 -r 543412d6e98e source/encoder/framefilter.cpp
--- a/source/encoder/framefilter.cpp	Wed Sep 11 22:19:59 2013 +0800
+++ b/source/encoder/framefilter.cpp	Wed Sep 11 22:20:45 2013 +0800
@@ -104,10 +104,7 @@
 
     if (!m_cfg->param.bEnableLoopFilter)
     {
-        if (row > 0)
-            processRowPost(row - 1);
-        if (row == m_numRows - 1)
-            processRowPost(row);
+        processRowPost(row);
         return;
     }
 



More information about the x265-devel mailing list