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

Michael Niedermayer michaelni
Sun Dec 20 12:54:02 CET 2009


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091220/d9058d36/attachment.pgp>



More information about the ffmpeg-devel mailing list