[x265] [PATCH] Encoder: avoid blocking in getEncodedPicture() for zero latency when multiple slices are enabled

ashok at multicorewareinc.com ashok at multicorewareinc.com
Mon Nov 13 14:57:43 CET 2017


# HG changeset patch
# User Ashok Kumar Mishra <ashok at multicorewareinc.com>
# Date 1510320768 -19800
#      Fri Nov 10 19:02:48 2017 +0530
# Node ID c4632652c590397bd875ee2ca05c8c2f1284f792
# Parent  563cbe1f4a21dcfe2117ccaa874b713d94434f92
Encoder: avoid blocking in getEncodedPicture() for zero latency when multiple slices are enabled
Improved performance by 10 - 15 fps depending upon preset and number of slices.

diff -r 563cbe1f4a21 -r c4632652c590 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Nov 08 17:08:18 2017 +0530
+++ b/source/encoder/encoder.cpp	Fri Nov 10 19:02:48 2017 +0530
@@ -387,7 +387,7 @@
         }
     }
 
-    m_bZeroLatency = !m_param->bframes && !m_param->lookaheadDepth && m_param->frameNumThreads == 1;
+    m_bZeroLatency = !m_param->bframes && !m_param->lookaheadDepth && m_param->frameNumThreads == 1 && m_param->maxSlices == 1;
 
     m_aborted |= parseLambdaFile(m_param);
 


More information about the x265-devel mailing list