Mercurial > mplayer.hg
diff libswscale/swscale_internal.h @ 29174:d467f9cc89c6
Add macro to check for 16bit per sample.
author | michael |
---|---|
date | Tue, 21 Apr 2009 00:03:00 +0000 |
parents | 091f16266a60 |
children | d18426e37f13 |
line wrap: on
line diff
--- a/libswscale/swscale_internal.h Tue Apr 21 00:01:59 2009 +0000 +++ b/libswscale/swscale_internal.h Tue Apr 21 00:03:00 2009 +0000 @@ -291,6 +291,10 @@ const char *sws_format_name(int format); //FIXME replace this with something faster +#define is16BPS(x) ( \ + (x)==PIX_FMT_GRAY16BE \ + || (x)==PIX_FMT_GRAY16LE \ + ) #define isBE(x) ((x)&1) #define isPlanarYUV(x) ( \ (x)==PIX_FMT_YUV410P \