[FFmpeg-devel] [PATCH] Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.

Michael Niedermayer michaelni
Sun Dec 20 13:05:26 CET 2009


On Sun, Dec 20, 2009 at 01:44:04AM -0200, Ramiro Polla wrote:
> .

>  swscale_internal.h |    4 
>  swscale_template.c |  386 ++++++++++++++++++++++++++---------------------------
>  2 files changed, 196 insertions(+), 194 deletions(-)
> 94b7203e5183bc2ceb5131656d9c70208d2b034a  0003-Move-fast-bilinear-scaler-code-to-the-existing-h-yc.patch
> From f9a094384bb6f99da7cd2d2b84754e23774c6c35 Mon Sep 17 00:00:00 2001
> From: Ramiro Polla <ramiro.polla at gmail.com>
> Date: Sun, 20 Dec 2009 01:32:48 -0200
> Subject: [PATCH] Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.
> 
> ---
>  swscale_internal.h |    4 +-
>  swscale_template.c |  386 ++++++++++++++++++++++++++--------------------------
>  2 files changed, 196 insertions(+), 194 deletions(-)
> 
> diff --git a/swscale_internal.h b/swscale_internal.h
> index 0dab9f6..6957e57 100644
> --- a/swscale_internal.h
> +++ b/swscale_internal.h
> @@ -262,10 +262,10 @@ typedef struct SwsContext {
>                               const uint8_t *src1, const uint8_t *src2,
>                               long width, uint32_t *pal);

>      void (*hyscale_fast)(struct SwsContext *c,
> -                         int16_t *dst, int dstWidth,
> +                         int16_t *dst, long dstWidth,
>                           const uint8_t *src, int srcW, int xInc);
>      void (*hcscale_fast)(struct SwsContext *c,
> -                         int16_t *dst, int dstWidth,
> +                         int16_t *dst, long dstWidth,
>                           const uint8_t *src1, const uint8_t *src2,
>                           int srcW, int xInc);
>  

these need doxy (seperate patch of course)
and hcscale_internal() seems a poor name (seperate patch of course)
[...9


>  #if defined(PIC)
> -        DECLARE_ALIGNED(8, uint64_t, ebxsave);
> +    DECLARE_ALIGNED(8, uint64_t, ebxsave);
>  #endif
> -        if (canMMX2BeUsed) {
> -            __asm__ volatile(
> +    if (canMMX2BeUsed) {
> +        __asm__ volatile(
>  #if defined(PIC)
> -                "mov               %%"REG_b", %5        \n\t"
> +            "mov          %%"REG_b", %6         \n\t"

ehm

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

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- 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/033c170a/attachment.pgp>



More information about the ffmpeg-devel mailing list