Mercurial > mplayer.hg
comparison loader/qtx/qtxsdk/components.h @ 11412:ec3dac7d17a0
Warning fixes (approved by A'rpi).
author | rathann |
---|---|
date | Sat, 08 Nov 2003 00:26:51 +0000 |
parents | 08d7e1718dd0 |
children | a9e2fda933be |
comparison
equal
deleted
inserted
replaced
11411:cb070e67a9c9 | 11412:ec3dac7d17a0 |
---|---|
16 typedef unsigned short UInt16; | 16 typedef unsigned short UInt16; |
17 typedef signed short SInt16; | 17 typedef signed short SInt16; |
18 typedef unsigned long UInt32; | 18 typedef unsigned long UInt32; |
19 typedef signed long SInt32; | 19 typedef signed long SInt32; |
20 | 20 |
21 #define FOUR_CHAR_CODE(x) ((unsigned long)(x)) /* otherwise compiler will complain about values with high bit set */ | 21 #define FOUR_CHAR_CODE(a,b,c,d) ((unsigned long)(a)<<24 | (unsigned long)(b)<<16 | (unsigned long)(c)<<8 | (unsigned long)(d)) /* otherwise compiler will complain about values with high bit set */ |
22 | 22 |
23 // codec private shit: | 23 // codec private shit: |
24 typedef void *GlobalsPtr; | 24 typedef void *GlobalsPtr; |
25 typedef void **Globals; | 25 typedef void **Globals; |
26 | 26 |
152 typedef ImageDescription * ImageDescriptionPtr; | 152 typedef ImageDescription * ImageDescriptionPtr; |
153 typedef ImageDescriptionPtr * ImageDescriptionHandle; | 153 typedef ImageDescriptionPtr * ImageDescriptionHandle; |
154 | 154 |
155 /* values for PixMap.pixelFormat*/ | 155 /* values for PixMap.pixelFormat*/ |
156 enum { | 156 enum { |
157 k16LE555PixelFormat = FOUR_CHAR_CODE('L555'), /* 16 bit LE rgb 555 (PC)*/ | 157 k16LE555PixelFormat = FOUR_CHAR_CODE('L','5','5','5'), /* 16 bit LE rgb 555 (PC)*/ |
158 k16LE5551PixelFormat = FOUR_CHAR_CODE('5551'), /* 16 bit LE rgb 5551*/ | 158 k16LE5551PixelFormat = FOUR_CHAR_CODE('5','5','5','1'), /* 16 bit LE rgb 5551*/ |
159 k16BE565PixelFormat = FOUR_CHAR_CODE('B565'), /* 16 bit BE rgb 565*/ | 159 k16BE565PixelFormat = FOUR_CHAR_CODE('B','5','6','5'), /* 16 bit BE rgb 565*/ |
160 k16LE565PixelFormat = FOUR_CHAR_CODE('L565'), /* 16 bit LE rgb 565*/ | 160 k16LE565PixelFormat = FOUR_CHAR_CODE('L','5','6','5'), /* 16 bit LE rgb 565*/ |
161 k24BGRPixelFormat = FOUR_CHAR_CODE('24BG'), /* 24 bit bgr */ | 161 k24BGRPixelFormat = FOUR_CHAR_CODE('2','4','B','G'), /* 24 bit bgr */ |
162 k32BGRAPixelFormat = FOUR_CHAR_CODE('BGRA'), /* 32 bit bgra (Matrox)*/ | 162 k32BGRAPixelFormat = FOUR_CHAR_CODE('B','G','R','A'), /* 32 bit bgra (Matrox)*/ |
163 k32ABGRPixelFormat = FOUR_CHAR_CODE('ABGR'), /* 32 bit abgr */ | 163 k32ABGRPixelFormat = FOUR_CHAR_CODE('A','B','G','R'), /* 32 bit abgr */ |
164 k32RGBAPixelFormat = FOUR_CHAR_CODE('RGBA'), /* 32 bit rgba */ | 164 k32RGBAPixelFormat = FOUR_CHAR_CODE('R','G','B','A'), /* 32 bit rgba */ |
165 kYUVSPixelFormat = FOUR_CHAR_CODE('yuvs'), /* YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'*/ | 165 kYUVSPixelFormat = FOUR_CHAR_CODE('y','u','v','s'), /* YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'*/ |
166 kYUVUPixelFormat = FOUR_CHAR_CODE('yuvu'), /* YUV 4:2:2 byte ordering 16-signed*/ | 166 kYUVUPixelFormat = FOUR_CHAR_CODE('y','u','v','u'), /* YUV 4:2:2 byte ordering 16-signed*/ |
167 kYVU9PixelFormat = FOUR_CHAR_CODE('YVU9'), /* YVU9 Planar 9*/ | 167 kYVU9PixelFormat = FOUR_CHAR_CODE('Y','V','U','9'), /* YVU9 Planar 9*/ |
168 kYUV411PixelFormat = FOUR_CHAR_CODE('Y411'), /* YUV 4:1:1 Interleaved 16*/ | 168 kYUV411PixelFormat = FOUR_CHAR_CODE('Y','4','1','1'), /* YUV 4:1:1 Interleaved 16*/ |
169 kYVYU422PixelFormat = FOUR_CHAR_CODE('YVYU'), /* YVYU 4:2:2 byte ordering 16*/ | 169 kYVYU422PixelFormat = FOUR_CHAR_CODE('Y','V','Y','U'), /* YVYU 4:2:2 byte ordering 16*/ |
170 kUYVY422PixelFormat = FOUR_CHAR_CODE('UYVY'), /* UYVY 4:2:2 byte ordering 16*/ | 170 kUYVY422PixelFormat = FOUR_CHAR_CODE('U','Y','V','Y'), /* UYVY 4:2:2 byte ordering 16*/ |
171 kYUV211PixelFormat = FOUR_CHAR_CODE('Y211'), /* YUV 2:1:1 Packed 8*/ | 171 kYUV211PixelFormat = FOUR_CHAR_CODE('Y','2','1','1'), /* YUV 2:1:1 Packed 8*/ |
172 k2vuyPixelFormat = FOUR_CHAR_CODE('2vuy') /* UYVY 4:2:2 byte ordering 16*/ | 172 k2vuyPixelFormat = FOUR_CHAR_CODE('2','v','u','y') /* UYVY 4:2:2 byte ordering 16*/ |
173 }; | 173 }; |
174 | 174 |
175 struct __attribute__((__packed__)) PixMapExtension { | 175 struct __attribute__((__packed__)) PixMapExtension { |
176 long extSize; /*size of struct, duh!*/ | 176 long extSize; /*size of struct, duh!*/ |
177 unsigned long pmBits; /*pixmap attributes bitfield*/ | 177 unsigned long pmBits; /*pixmap attributes bitfield*/ |