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

Michael Niedermayer michaelni
Sun Dec 20 05:04:28 CET 2009


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

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

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- 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/09d3edfd/attachment.pgp>



More information about the ffmpeg-devel mailing list