diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-12 16:01:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-12 16:01:17 +0000 |
commit | ec1bca2a0f66b12c8a4a527b99447209188eb313 (patch) | |
tree | f00c24da880da243b70843164e1596e2200c5144 /libswscale/swscale_internal.h | |
parent | 35445d29f546051549e9867460e6ea5a3838ebef (diff) | |
download | ffmpeg-ec1bca2a0f66b12c8a4a527b99447209188eb313.tar.gz |
Add support for PIX_FMT_MONOWHITE as output format.
Originally committed as revision 27586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index a401175a26..9d82662483 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -249,6 +249,7 @@ const char *sws_format_name(int format); || (x)==PIX_FMT_RGB4 \ || (x)==PIX_FMT_RGB4_BYTE \ || (x)==PIX_FMT_MONOBLACK \ + || (x)==PIX_FMT_MONOWHITE \ ) #define isBGR(x) ( \ (x)==PIX_FMT_BGR32 \ @@ -260,6 +261,7 @@ const char *sws_format_name(int format); || (x)==PIX_FMT_BGR4 \ || (x)==PIX_FMT_BGR4_BYTE \ || (x)==PIX_FMT_MONOBLACK \ + || (x)==PIX_FMT_MONOWHITE \ ) static inline int fmt_depth(int fmt) @@ -290,6 +292,7 @@ static inline int fmt_depth(int fmt) case PIX_FMT_RGB4_BYTE: return 4; case PIX_FMT_MONOBLACK: + case PIX_FMT_MONOWHITE: return 1; default: return 0; |