[FFmpeg-devel] patch2 Add-multithreading-for-swscale-filter.patch

Paul B Mahol onemda at gmail.com
Fri Jul 19 16:47:27 EEST 2019


On 7/19/19, Nicolas George <george at nsup.org> wrote:
> Pawlowski, Slawomir (12019-07-19):
>> 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(-)
>
> See this review:
>
> https://ffmpeg.org/pipermail/ffmpeg-devel/2019-July/246770.html
>
> When sending a second version of a patch, it is nice to tell what
> changed.

Also patch should make use of ff_filter_get_nb_threads(ctx).


More information about the ffmpeg-devel mailing list