[x265] [PATCH] set to zero delay when loopfilter and sao inactive

Min Chen chenm003 at 163.com
Wed Sep 18 07:20:23 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1379481603 -28800
# Node ID e969d7f0f8d704de3949cd90d5cb3c89a8925815
# Parent  1dc07ca4c4ced88b535bee8febf78b48a6f65453
set to zero delay when loopfilter and sao inactive

diff -r 1dc07ca4c4ce -r e969d7f0f8d7 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Tue Sep 17 14:37:09 2013 -0500
+++ b/source/encoder/frameencoder.cpp	Wed Sep 18 13:20:03 2013 +0800
@@ -90,7 +90,7 @@
     m_top = top;
     m_cfg = top;
     m_numRows = numRows;
-    m_filterRowDelay = (m_cfg->param.saoLcuBasedOptimization && m_cfg->param.saoLcuBoundary) ? 2 : 1;
+    m_filterRowDelay = (m_cfg->param.saoLcuBasedOptimization && m_cfg->param.saoLcuBoundary) ? 2 :(m_cfg->param.bEnableSAO || m_cfg->param.bEnableLoopFilter ? 1 : 0);
 
     m_rows = new CTURow[m_numRows];
     for (int i = 0; i < m_numRows; ++i)



More information about the x265-devel mailing list