[x265] [PATCH] framefilter: improvement [updated]

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


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1378909245 -28800
# Node ID a6ed1c1e16cb411ae6ca96788d2b10e88abd5306
# Parent  9a956054f2f7971e7eab05281bc0857558091d87
framefilter: improvement [updated]

diff -r 9a956054f2f7 -r a6ed1c1e16cb 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 a6ed1c1e16cb 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