1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

added some macros for rgb/bgr

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2792 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-09 23:49:03 +00:00
parent aabf596111
commit dc28bd3450

View File

@ -20,6 +20,12 @@
#define IMGFMT_BGR24 (IMGFMT_BGR|24)
#define IMGFMT_BGR32 (IMGFMT_BGR|32)
#define IMGFMT_IS_RGB(fmt) ((fmt&IMGFMT_RGB_MASK)==IMGFMT_RGB)
#define IMGFMT_IS_BGR(fmt) ((fmt&IMGFMT_BGR_MASK)==IMGFMT_BGR)
#define IMGFMT_RGB_DEPTH(fmt) (fmt&~IMGFMT_RGB)
#define IMGFMT_BGR_DEPTH(fmt) (fmt&~IMGFMT_BGR)
/* Planar YUV Formats */