comparison libvo/img_format.h @ 2791:8ef2ab5cd47f

added some macros for rgb/bgr
author alex
date Fri, 09 Nov 2001 23:49:03 +0000
parents ad3a6bcad1d7
children 1632d6824a68
comparison
equal deleted inserted replaced
2790:98769cea155c 2791:8ef2ab5cd47f
17 #define IMGFMT_BGR8 (IMGFMT_BGR|8) 17 #define IMGFMT_BGR8 (IMGFMT_BGR|8)
18 #define IMGFMT_BGR15 (IMGFMT_BGR|15) 18 #define IMGFMT_BGR15 (IMGFMT_BGR|15)
19 #define IMGFMT_BGR16 (IMGFMT_BGR|16) 19 #define IMGFMT_BGR16 (IMGFMT_BGR|16)
20 #define IMGFMT_BGR24 (IMGFMT_BGR|24) 20 #define IMGFMT_BGR24 (IMGFMT_BGR|24)
21 #define IMGFMT_BGR32 (IMGFMT_BGR|32) 21 #define IMGFMT_BGR32 (IMGFMT_BGR|32)
22
23 #define IMGFMT_IS_RGB(fmt) ((fmt&IMGFMT_RGB_MASK)==IMGFMT_RGB)
24 #define IMGFMT_IS_BGR(fmt) ((fmt&IMGFMT_BGR_MASK)==IMGFMT_BGR)
25
26 #define IMGFMT_RGB_DEPTH(fmt) (fmt&~IMGFMT_RGB)
27 #define IMGFMT_BGR_DEPTH(fmt) (fmt&~IMGFMT_BGR)
22 28
23 29
24 /* Planar YUV Formats */ 30 /* Planar YUV Formats */
25 31
26 #define IMGFMT_YVU9 0x39555659 32 #define IMGFMT_YVU9 0x39555659