[FFmpeg-devel] [PATCH 1/4] dnxhddec: implement slice multithreading

Michael Niedermayer michaelni at gmx.at
Sun Sep 27 01:08:18 CEST 2015


On Sat, Sep 26, 2015 at 02:42:27PM +0200, Christophe Gisquet wrote:
> Hi,
> 
> 2015-09-26 1:52 GMT+02:00 Michael Niedermayer <michaelni at gmx.at>:
> > This segfaults with http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2125/DNxHDtest2.mov
> 
> Patch reworked:
> - Preallocate RowContext to avoid reloading it
> - Use of init_thread_copy due to that
> - Fix crashes due to mishandling of code around execute2
> 
> The speed of slice-threading is equivalent to frame-threading, which
> makes the later less attractive. Several decoders forgo implementing
> it.
> 
> -- 
> Christophe

>  dnxhddec.c |  219 ++++++++++++++++++++++++++++++++++++-------------------------
>  1 file changed, 131 insertions(+), 88 deletions(-)
> ac3cc1371c16164255c05afcbcb7cd72b86fd475  0003-dnxhddec-implement-slice-multithreading.patch
> From 354a8e016e1e10a4288534782104479aae3e62a9 Mon Sep 17 00:00:00 2001
> From: Christophe Gisquet <christophe.gisquet at gmail.com>
> Date: Fri, 25 Sep 2015 08:56:43 +0200
> Subject: [PATCH 3/5] dnxhddec: implement slice multithreading
> 
> Around 3x speedup with 4 threads. Maybe more mb lines should be
> batched per thread, but that's good enough for a first try.

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150927/f1698265/attachment.sig>


More information about the ffmpeg-devel mailing list