Mercurial > mplayer.hg
diff libswscale/swscale_internal.h @ 27490:651ebfa4b7db
Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.
author | michael |
---|---|
date | Thu, 04 Sep 2008 21:59:15 +0000 |
parents | 92479ee7ad6e |
children | 2550d0c5bcb6 |
line wrap: on
line diff
--- a/libswscale/swscale_internal.h Thu Sep 04 20:46:36 2008 +0000 +++ b/libswscale/swscale_internal.h Thu Sep 04 21:59:15 2008 +0000 @@ -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 @@ ) #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 @@ ) #define isBGR(x) ( \ (x)==PIX_FMT_BGR32 \ + || (x)==PIX_FMT_BGR32_1 \ || (x)==PIX_FMT_BGR24 \ || (x)==PIX_FMT_BGR565 \ || (x)==PIX_FMT_BGR555 \