From 56702531e2ca3541e92ea6a329be70591a3a45b5 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 21 Apr 2009 00:03:00 +0000 Subject: Add macro to check for 16bit per sample. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29215 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 3552e92657..5c56ffe7ba 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -291,6 +291,10 @@ void ff_yuv2packedX_altivec(SwsContext *c, 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 \ -- cgit v1.2.3