[FFmpeg-devel] [PATCH 1/3 v2] avutil: merge slice threading implementation from avcodec and avfilter

Muhammad Faiz mfcc64 at gmail.com
Tue Jul 18 10:14:19 EEST 2017


On Wed, Jul 12, 2017 at 8:44 PM, Muhammad Faiz <mfcc64 at gmail.com> wrote:
> Rework it to improve performance. Now mutex is not shared by workers,
> instead each worker has its own mutex and condition variable. This
> reduces lock contention between workers. Also use atomic variable for
> counter.
>
> The interface also allows execute to run special function on main
> thread, requested by Ronald.
>
> Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> ---
>  libavutil/Makefile      |   1 +
>  libavutil/slicethread.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++
>  libavutil/slicethread.h |  52 ++++++++++
>  3 files changed, 312 insertions(+)
>  create mode 100644 libavutil/slicethread.c
>  create mode 100644 libavutil/slicethread.h
>

I'm going to push the patchset tomorrow.

Thank's


More information about the ffmpeg-devel mailing list