On Apr 11, 2011, at 5:07 AM, Luca Barbato wrote:

> This unbreak darwin.

When was it broken?

> ---
> libswscale/Makefile            |    2 +-
> libswscale/rgb2rgb.c           |   65 ++++++++++++++++++++++++++++++++++++++
> libswscale/swscale_functions.c |   67 ----------------------------------------
> 3 files changed, 66 insertions(+), 68 deletions(-)
> delete mode 100644 libswscale/swscale_functions.c
> 
> diff --git a/libswscale/Makefile b/libswscale/Makefile
> index b8f233f..816f7a8 100644
> --- a/libswscale/Makefile
> +++ b/libswscale/Makefile
> @@ -5,7 +5,7 @@ FFLIBS = avutil
> 
> HEADERS = swscale.h
> 
> -OBJS = options.o rgb2rgb.o swscale.o swscale_functions.o utils.o yuv2rgb.o
> +OBJS = options.o rgb2rgb.o swscale.o utils.o yuv2rgb.o
> 
> OBJS-$(ARCH_BFIN)          +=  bfin/internal_bfin.o     \
>                                bfin/swscale_bfin.o      \
> diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
> index 9e27e82..cb78bf0 100644
> --- a/libswscale/rgb2rgb.c
> +++ b/libswscale/rgb2rgb.c
> @@ -29,6 +29,71 @@
> #include "swscale.h"
> #include "swscale_internal.h"
> 
> +void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb32tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb32to16)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb16to15)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb16tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb16to32)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb24to16)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*shuffle_bytes_2103)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb32tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
> +void (*rgb32tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
> +
> +void (*yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t 
> *vsrc, uint8_t *dst,
> +                   long width, long height,
> +                   long lumStride, long chromStride, long dstStride);
> +void (*yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t 
> *vsrc, uint8_t *dst,
> +                   long width, long height,
> +                   long lumStride, long chromStride, long dstStride);
> +void (*yuv422ptoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const 
> uint8_t *vsrc, uint8_t *dst,
> +                      long width, long height,
> +                      long lumStride, long chromStride, long dstStride);
> +void (*yuv422ptouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const 
> uint8_t *vsrc, uint8_t *dst,
> +                      long width, long height,
> +                      long lumStride, long chromStride, long dstStride);
> +void (*yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t 
> *vdst,
> +                   long width, long height,
> +                   long lumStride, long chromStride, long srcStride);
> +void (*rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, 
> uint8_t *vdst,
> +                    long width, long height,
> +                    long lumStride, long chromStride, long srcStride);
> +void (*planar2x)(const uint8_t *src, uint8_t *dst, long width, long height,
> +                 long srcStride, long dstStride);
> +void (*interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t 
> *dst,
> +                        long width, long height, long src1Stride,
> +                        long src2Stride, long dstStride);
> +void (*vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
> +                    uint8_t *dst1, uint8_t *dst2,
> +                    long width, long height,
> +                    long srcStride1, long srcStride2,
> +                    long dstStride1, long dstStride2);
> +void (*yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2, const uint8_t 
> *src3,
> +                     uint8_t *dst,
> +                     long width, long height,
> +                     long srcStride1, long srcStride2,
> +                     long srcStride3, long dstStride);
> +void (*uyvytoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> +                     long width, long height,
> +                     long lumStride, long chromStride, long srcStride);
> +void (*uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> +                     long width, long height,
> +                     long lumStride, long chromStride, long srcStride);
> +void (*yuyvtoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> +                     long width, long height,
> +                     long lumStride, long chromStride, long srcStride);
> +void (*yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> +                     long width, long height,
> +                     long lumStride, long chromStride, long srcStride);
> +
> #define RGB2YUV_SHIFT 8
> #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
> #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
> diff --git a/libswscale/swscale_functions.c b/libswscale/swscale_functions.c
> deleted file mode 100644
> index 0ebfa7c..0000000
> --- a/libswscale/swscale_functions.c
> +++ /dev/null
> @@ -1,67 +0,0 @@
> -#include <inttypes.h>
> -
> -
> -void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb32tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb32to16)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb32to15)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb15to16)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb16to15)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb16tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb16to32)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb24to16)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*shuffle_bytes_2103)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb32tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
> -void (*rgb32tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
> -
> -void (*yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t 
> *vsrc, uint8_t *dst,
> -                   long width, long height,
> -                   long lumStride, long chromStride, long dstStride);
> -void (*yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t 
> *vsrc, uint8_t *dst,
> -                   long width, long height,
> -                   long lumStride, long chromStride, long dstStride);
> -void (*yuv422ptoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const 
> uint8_t *vsrc, uint8_t *dst,
> -                      long width, long height,
> -                      long lumStride, long chromStride, long dstStride);
> -void (*yuv422ptouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const 
> uint8_t *vsrc, uint8_t *dst,
> -                      long width, long height,
> -                      long lumStride, long chromStride, long dstStride);
> -void (*yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t 
> *vdst,
> -                   long width, long height,
> -                   long lumStride, long chromStride, long srcStride);
> -void (*rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, 
> uint8_t *vdst,
> -                    long width, long height,
> -                    long lumStride, long chromStride, long srcStride);
> -void (*planar2x)(const uint8_t *src, uint8_t *dst, long width, long height,
> -                 long srcStride, long dstStride);
> -void (*interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t 
> *dst,
> -                        long width, long height, long src1Stride,
> -                        long src2Stride, long dstStride);
> -void (*vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
> -                    uint8_t *dst1, uint8_t *dst2,
> -                    long width, long height,
> -                    long srcStride1, long srcStride2,
> -                    long dstStride1, long dstStride2);
> -void (*yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2, const uint8_t 
> *src3,
> -                     uint8_t *dst,
> -                     long width, long height,
> -                     long srcStride1, long srcStride2,
> -                     long srcStride3, long dstStride);
> -void (*uyvytoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> -                     long width, long height,
> -                     long lumStride, long chromStride, long srcStride);
> -void (*uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> -                     long width, long height,
> -                     long lumStride, long chromStride, long srcStride);
> -void (*yuyvtoyuv420)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> -                     long width, long height,
> -                     long lumStride, long chromStride, long srcStride);
> -void (*yuyvtoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const 
> uint8_t *src,
> -                     long width, long height,
> -                     long lumStride, long chromStride, long srcStride);
> -- 
> 1.7.4.1
> 
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to