[x265] [PATCH] framefilter: improvement

Min Chen chenm003 at 163.com
Wed Sep 11 07:55:43 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1378878707 -28800
# Node ID b02136097bea7c0db83ad4bfb3454a91f80eeda6
# Parent  af8cddab103e87cb7817e4809780a64573d4dad2
framefilter: improvement

diff -r af8cddab103e -r b02136097bea source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Wed Sep 11 00:03:09 2013 -0500
+++ b/source/encoder/frameencoder.cpp	Wed Sep 11 13:51:47 2013 +0800
@@ -947,9 +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);
+        for(int i = m_numRows - m_filterRowDelay; i < m_numRows; i++)
+            m_frameFilter.processRow(i);
         m_frameFilter.processRow(row);
         m_completionEvent.trigger();
     }
diff -r af8cddab103e -r b02136097bea source/encoder/framefilter.cpp
--- a/source/encoder/framefilter.cpp	Wed Sep 11 00:03:09 2013 -0500
+++ b/source/encoder/framefilter.cpp	Wed Sep 11 13:51:47 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