[x265] [PATCH] Encoder: avoid blocking in getEncodedPicture() for zero latency when multiple slices are enabled
Pradeep Ramachandran
pradeep at multicorewareinc.com
Tue Nov 14 08:54:28 CET 2017
On Mon, Nov 13, 2017 at 7:27 PM, <ashok at multicorewareinc.com> wrote:
> # 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.
>
Gains look impressive. Patch pushed to default branch.
>
> 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);
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171114/5a5bf72d/attachment.html>
More information about the x265-devel
mailing list