[FFmpeg-devel] [PATCH] avfilter/scale.c: factorize ff_scale_eval_dimensions

Gyan ffmpeg at gyani.pro
Sun Dec 8 12:46:07 EET 2019



On 08-12-2019 10:03 am, Gyan wrote:
>
>
> On 07-12-2019 11:47 pm, Michael Niedermayer wrote:
>> On Sat, Dec 07, 2019 at 12:08:53PM +0530, Gyan wrote:
>>
>>>   doc/filters.texi             |   40 +++++++++++++++++++++++++++++
>>>   libavfilter/scale.c          |   59 
>>> ++++++++++++++++++++++++++++++++++---------
>>>   libavfilter/scale.h          |   20 ++++++++++++++
>>>   libavfilter/vf_scale.c       |   28 ++------------------
>>>   libavfilter/vf_scale_cuda.c  |   11 ++++++++
>>>   libavfilter/vf_scale_npp.c   |   11 ++++++++
>>>   libavfilter/vf_scale_vaapi.c |   11 ++++++++
>>>   7 files changed, 144 insertions(+), 36 deletions(-)
>>> f0a65d11857e709ee7cdf862ba108c765c4f5a2f 
>>> v2-0001-avfilter-scale.c-factorize-ff_scale_eval_dimensio.patch
>>>  From 863c6feac1790560f7bdc29358cfcd0e5ee370f6 Mon Sep 17 00:00:00 2001
>>> From: Gyan Doshi <ffmpeg at gyani.pro>
>>> Date: Mon, 2 Dec 2019 21:11:21 +0530
>>> Subject: [PATCH v2] avfilter/scale.c: factorize 
>>> ff_scale_eval_dimensions
>>>
>>> Adjustment of evaluated values shifted to ff_adjust_scale_dimensions
>>> Shifted code for force_original_aspect_ratio and force_divisble_by from
>>> vf_scale so it is now available for scale_cuda, scale_npp and
>>> scale_vaapi as well.
>>> ---
>>>   doc/filters.texi             | 40 ++++++++++++++++++++++++
>>>   libavfilter/scale.c          | 59 
>>> +++++++++++++++++++++++++++++-------
>>>   libavfilter/scale.h          | 20 ++++++++++++
>>>   libavfilter/vf_scale.c       | 28 ++---------------
>>>   libavfilter/vf_scale_cuda.c  | 11 +++++++
>>>   libavfilter/vf_scale_npp.c   | 11 +++++++
>>>   libavfilter/vf_scale_vaapi.c | 11 +++++++
>>>   7 files changed, 144 insertions(+), 36 deletions(-)
>> The changes should be ok i think.
>
> Will push in a few hours.

Pushed with a couple of doc typos also corrected as 
1b4f473d181abaa0ff4e2d63862f61763a5a6860

Gyan


More information about the ffmpeg-devel mailing list