mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-21 23:00:04 +08:00
Add macro to check for 16bit per sample.
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
@ -291,6 +291,10 @@ void ff_yuv2packedX_altivec(SwsContext *c,
|
|||||||
const char *sws_format_name(int format);
|
const char *sws_format_name(int format);
|
||||||
|
|
||||||
//FIXME replace this with something faster
|
//FIXME replace this with something faster
|
||||||
|
#define is16BPS(x) ( \
|
||||||
|
(x)==PIX_FMT_GRAY16BE \
|
||||||
|
|| (x)==PIX_FMT_GRAY16LE \
|
||||||
|
)
|
||||||
#define isBE(x) ((x)&1)
|
#define isBE(x) ((x)&1)
|
||||||
#define isPlanarYUV(x) ( \
|
#define isPlanarYUV(x) ( \
|
||||||
(x)==PIX_FMT_YUV410P \
|
(x)==PIX_FMT_YUV410P \
|
||||||
|
Reference in New Issue
Block a user