[FFmpeg-devel] [PATCH] Set horizontal scaler's src offsets in context in sws_init_swScale().

Ramiro Polla ramiro.polla
Sun Dec 20 17:21:40 CET 2009


On Sun, Dec 20, 2009 at 9:54 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sun, Dec 20, 2009 at 02:59:53AM -0200, Ramiro Polla wrote:
>> On Sun, Dec 20, 2009 at 2:04 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> > On Sun, Dec 20, 2009 at 01:43:11AM -0200, Ramiro Polla wrote:
>> >> Hi,
>> >>
>> >> This and the following patches try to move the use of checks for flags
>> >> and src/dstFormat to sws_init_swScale() instead of checking every time
>> >> the functions are run.
>> >>
>> >> Ramiro Polla
>> >
>> >> ?swscale_internal.h | ? ?4 ++++
>> >> ?swscale_template.c | ? 39 ++++++++++++++++++++-------------------
>> >> ?2 files changed, 24 insertions(+), 19 deletions(-)
>> >> 796e0c1adf3cb5c85df43a8c501002e44c611dd5 ?0001-Set-horizontal-scaler-s-src-offsets-in-context-in-sw.patch
>> >> From ad7a2e30312e60877b48b33dbc16cf75e8e52f07 Mon Sep 17 00:00:00 2001
>> >> From: Ramiro Polla <ramiro.polla at gmail.com>
>> >> Date: Sun, 20 Dec 2009 01:29:44 -0200
>> >> Subject: [PATCH] Set horizontal scaler's src offsets in context in sws_init_swScale().
>> >>
>> >> ---
>> >> ?swscale_internal.h | ? ?4 ++++
>> >> ?swscale_template.c | ? 39 ++++++++++++++++++++-------------------
>> >> ?2 files changed, 24 insertions(+), 19 deletions(-)
>> >>
>> >> diff --git a/swscale_internal.h b/swscale_internal.h
>> >> index ec696e9..c4098d1 100644
>> >> --- a/swscale_internal.h
>> >> +++ b/swscale_internal.h
>> >> @@ -273,6 +273,10 @@ typedef struct SwsContext {
>> >> ? ? ? ? ? ? ? ? ? ? int xInc, const int16_t *filter, const int16_t *filterPos,
>> >> ? ? ? ? ? ? ? ? ? ? long filterSize);
>> >>
>> >> + ? ?int lumSrcOffset;
>> >> + ? ?int chrSrcOffset;
>> >> + ? ?int alpSrcOffset;
>> >
>> > these need some doxy explaining what they are
>>
>> Updated.
>
>> ?swscale_internal.h | ? ?4 ++++
>> ?swscale_template.c | ? 39 ++++++++++++++++++++-------------------
>> ?2 files changed, 24 insertions(+), 19 deletions(-)
>> 2f93331909b3def6ef4dc6916f35657c518239b5 ?src_offset.diff
>
> ok

Applied.



More information about the ffmpeg-devel mailing list