diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-04 21:59:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-04 21:59:15 +0000 |
commit | 9990e4269c37d77a26777a98e42c59179bdda7fb (patch) | |
tree | 21355d417f8bf71e09d31e56d7b1807f672579a1 /libswscale/swscale_internal.h | |
parent | 6b682df2337eeec0fceafc1a54b8c7d1804d03cf (diff) | |
download | ffmpeg-9990e4269c37d77a26777a98e42c59179bdda7fb.tar.gz |
Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.
Originally committed as revision 27522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index a14e85cf30..2efaa23bf5 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -34,6 +34,12 @@ #define VOFW 2048 #define VOF (VOFW*2) +#ifdef WORDS_BIGENDIAN +#define ALT32_CORR (-1) +#else +#define ALT32_CORR 1 +#endif + typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); @@ -222,6 +228,7 @@ const char *sws_format_name(int format); ) #define isRGB(x) ( \ (x)==PIX_FMT_RGB32 \ + || (x)==PIX_FMT_RGB32_1 \ || (x)==PIX_FMT_RGB24 \ || (x)==PIX_FMT_RGB565 \ || (x)==PIX_FMT_RGB555 \ @@ -232,6 +239,7 @@ const char *sws_format_name(int format); ) #define isBGR(x) ( \ (x)==PIX_FMT_BGR32 \ + || (x)==PIX_FMT_BGR32_1 \ || (x)==PIX_FMT_BGR24 \ || (x)==PIX_FMT_BGR565 \ || (x)==PIX_FMT_BGR555 \ |