[FFmpeg-devel] patch2 Add-multithreading-for-swscale-filter.patch
Michael Niedermayer
michael at niedermayer.cc
Fri Jul 19 21:29:33 EEST 2019
On Fri, Jul 19, 2019 at 12:36:48PM +0000, Pawlowski, Slawomir wrote:
> From 3ce39207e95eb4697abb0fbaccd37cc451559e49 Mon Sep 17 00:00:00 2001
> From: Slawomir Pawlowski <slawomir.pawlowski at intel.com>
> Date: Fri, 19 Jul 2019 13:16:16 +0200
> Subject: [PATCH] Add multithreading for swscale filter.
>
> Use with option "-filter_scale_threads <num_threads>"
> Split slice in scaler in to parts.
>
> Signed-off-by: Slawomir Pawlowski <slawomir.pawlowski at intel.com>
> Signed-off-by: Tomasz Szumski <tomasz.szumski at intel.com>
> ---
> fftools/ffmpeg.h | 1 +
> fftools/ffmpeg_filter.c | 3 +
> fftools/ffmpeg_opt.c | 7 +
> libavfilter/avfilter.h | 18 ++
> libavfilter/avfiltergraph.c | 4 +
> libavfilter/vf_scale.c | 4 +
> libswscale/options.c | 3 +
> libswscale/slice.c | 32 +++-
> libswscale/swscale.c | 414 +++++++++++++++++++++++++++++-------------
> libswscale/swscale_internal.h | 46 +++++
> libswscale/utils.c | 152 +++++++++++++++-
> 11 files changed, 547 insertions(+), 137 deletions(-)
didnt really review the code yet but it fails to build on mingw64
CC libswscale/alphablend.o
In file included from src/libswscale/alphablend.c:21:0:
src/libswscale/swscale_internal.h:665:5: error: unknown type name ‘pthread_t’
pthread_t f_thread;
^
src/libswscale/swscale_internal.h:666:5: error: unknown type name ‘pthread_cond_t’
pthread_cond_t process_cond;
^
src/libswscale/swscale_internal.h:667:5: error: unknown type name ‘pthread_cond_t’
pthread_cond_t finish_cond;
^
src/libswscale/swscale_internal.h:668:5: error: unknown type name ‘pthread_mutex_t’
pthread_mutex_t process_mutex;
^
src/libswscale/swscale_internal.h:669:5: error: unknown type name ‘pthread_mutex_t’
pthread_mutex_t finish_mutex;
^
make: *** [libswscale/alphablend.o] Error 1
You have new mail in /var/mail/michael
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190719/b9048edf/attachment.sig>
More information about the ffmpeg-devel
mailing list