OpenMAXBellagio  0.9.3
OMX_Types.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 The Khronos Group Inc.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining
5  * a copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sublicense, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject
10  * to the following conditions:
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  */
23 
31 #ifndef OMX_Types_h
32 #define OMX_Types_h
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37 
41 #ifdef __SYMBIAN32__
42 # ifdef __OMX_EXPORTS
43 # define OMX_API __declspec(dllexport)
44 # else
45 # ifdef _WIN32
46 # define OMX_API __declspec(dllexport)
47 # else
48 # define OMX_API __declspec(dllimport)
49 # endif
50 # endif
51 #else
52 # ifdef _WIN32
53 # ifdef __OMX_EXPORTS
54 # define OMX_API __declspec(dllexport)
55 # else
56 # define OMX_API __declspec(dllimport)
57 # endif
58 # else
59 # ifdef __OMX_EXPORTS
60 # define OMX_API
61 # else
62 # define OMX_API extern
63 # endif
64 # endif
65 #endif
66 
67 #ifndef OMX_APIENTRY
68 #define OMX_APIENTRY
69 #endif
70 
74 #ifndef OMX_IN
75 #define OMX_IN
76 #endif
77 
81 #ifndef OMX_OUT
82 #define OMX_OUT
83 #endif
84 
85 
90 #ifndef OMX_INOUT
91 #define OMX_INOUT
92 #endif
93 
99 #define OMX_ALL 0xFFFFFFFF
100 
133 typedef unsigned char OMX_U8;
134 
136 typedef signed char OMX_S8;
137 
139 typedef unsigned short OMX_U16;
140 
142 typedef signed short OMX_S16;
143 
145 typedef unsigned long OMX_U32;
146 
148 typedef signed long OMX_S32;
149 
150 
151 /* Users with compilers that cannot accept the "long long" designation should
152  define the OMX_SKIP64BIT macro. It should be noted that this may cause
153  some components to fail to compile if the component was written to require
154  64 bit integral types. However, these components would NOT compile anyway
155  since the compiler does not support the way the component was written.
156 */
157 #ifndef OMX_SKIP64BIT
158 #ifdef __SYMBIAN32__
159 
160 typedef unsigned long long OMX_U64;
161 
163 typedef signed long long OMX_S64;
164 
165 #elif defined(WIN32)
166 
168 typedef unsigned __int64 OMX_U64;
169 
171 typedef signed __int64 OMX_S64;
172 
173 #else /* WIN32 */
174 
176 typedef unsigned long long OMX_U64;
177 
179 typedef signed long long OMX_S64;
180 
181 #endif /* WIN32 */
182 #endif
183 
184 
189 typedef enum OMX_BOOL {
192  OMX_BOOL_MAX = 0x7FFFFFFF
194 
199 typedef void* OMX_PTR;
200 
206 typedef char* OMX_STRING;
207 
213 typedef unsigned char* OMX_BYTE;
214 
219 typedef unsigned char OMX_UUIDTYPE[128];
220 
224 typedef enum OMX_DIRTYPE
225 {
228  OMX_DirMax = 0x7FFFFFFF
230 
234 typedef enum OMX_ENDIANTYPE
235 {
238  OMX_EndianMax = 0x7FFFFFFF
240 
241 
246 {
249  OMX_NumercialDataMax = 0x7FFFFFFF
251 
252 
254 typedef struct OMX_BU32 {
259 
260 
262 typedef struct OMX_BS32 {
267 
268 
281 #ifndef OMX_SKIP64BIT
283 #else
284 typedef struct OMX_TICKS
285 {
286  OMX_U32 nLowPart;
287  OMX_U32 nHighPart;
288 } OMX_TICKS;
289 #endif
290 #define OMX_TICKS_PER_SECOND 1000000
291 
295 typedef void* OMX_HANDLETYPE;
296 
297 typedef struct OMX_MARKTYPE
298 {
306 
307 
311 typedef void* OMX_NATIVE_DEVICETYPE;
312 
315 typedef void* OMX_NATIVE_WINDOWTYPE;
316 
328 typedef union OMX_VERSIONTYPE
329 {
330  struct
331  {
336  } s;
341 
342 #ifdef __cplusplus
343 }
344 #endif /* __cplusplus */
345 
346 #endif
347 /* File EOF */
OMX_NUMERICALDATATYPE
OMX_NUMERICALDATATYPE
Definition: OMX_Types.h:246
OMX_DirMax
@ OMX_DirMax
Definition: OMX_Types.h:228
OMX_VERSIONTYPE::nRevision
OMX_U8 nRevision
Definition: OMX_Types.h:334
OMX_EndianBig
@ OMX_EndianBig
Definition: OMX_Types.h:236
OMX_BU32
struct OMX_BU32 OMX_BU32
OMX_ENDIANTYPE
OMX_ENDIANTYPE
Definition: OMX_Types.h:235
OMX_EndianLittle
@ OMX_EndianLittle
Definition: OMX_Types.h:237
OMX_BU32
Definition: OMX_Types.h:254
OMX_BS32
Definition: OMX_Types.h:262
OMX_MARKTYPE::hMarkTargetComponent
OMX_HANDLETYPE hMarkTargetComponent
Definition: OMX_Types.h:299
OMX_U32
unsigned long OMX_U32
Definition: OMX_Types.h:145
OMX_TRUE
@ OMX_TRUE
Definition: OMX_Types.h:191
OMX_DIRTYPE
OMX_DIRTYPE
Definition: OMX_Types.h:225
OMX_VERSIONTYPE::s
struct OMX_VERSIONTYPE::@1 s
OMX_BU32::nValue
OMX_U32 nValue
Definition: OMX_Types.h:255
OMX_EndianMax
@ OMX_EndianMax
Definition: OMX_Types.h:238
OMX_BU32::nMin
OMX_U32 nMin
Definition: OMX_Types.h:256
OMX_BU32::nMax
OMX_U32 nMax
Definition: OMX_Types.h:257
OMX_TICKS
OMX_S64 OMX_TICKS
Definition: OMX_Types.h:282
OMX_VERSIONTYPE::nVersionMinor
OMX_U8 nVersionMinor
Definition: OMX_Types.h:333
OMX_HANDLETYPE
void * OMX_HANDLETYPE
Definition: OMX_Types.h:295
OMX_BOOL_MAX
@ OMX_BOOL_MAX
Definition: OMX_Types.h:192
OMX_U16
unsigned short OMX_U16
Definition: OMX_Types.h:139
OMX_S64
signed long long OMX_S64
Definition: OMX_Types.h:179
OMX_VERSIONTYPE
union OMX_VERSIONTYPE OMX_VERSIONTYPE
OMX_BS32
struct OMX_BS32 OMX_BS32
OMX_BS32::nMax
OMX_S32 nMax
Definition: OMX_Types.h:265
OMX_VERSIONTYPE::nStep
OMX_U8 nStep
Definition: OMX_Types.h:335
OMX_NATIVE_DEVICETYPE
void * OMX_NATIVE_DEVICETYPE
Definition: OMX_Types.h:311
OMX_VERSIONTYPE
Definition: OMX_Types.h:329
OMX_BS32::nValue
OMX_S32 nValue
Definition: OMX_Types.h:263
OMX_PTR
void * OMX_PTR
Definition: OMX_Types.h:199
OMX_BOOL
OMX_BOOL
Definition: OMX_Types.h:189
OMX_BYTE
unsigned char * OMX_BYTE
Definition: OMX_Types.h:213
OMX_S8
signed char OMX_S8
Definition: OMX_Types.h:136
OMX_BS32::nMin
OMX_S32 nMin
Definition: OMX_Types.h:264
OMX_MARKTYPE
Definition: OMX_Types.h:298
OMX_VERSIONTYPE::nVersionMajor
OMX_U8 nVersionMajor
Definition: OMX_Types.h:332
OMX_MARKTYPE
struct OMX_MARKTYPE OMX_MARKTYPE
OMX_U64
unsigned long long OMX_U64
Definition: OMX_Types.h:176
OMX_FALSE
@ OMX_FALSE
Definition: OMX_Types.h:190
OMX_NumericalDataSigned
@ OMX_NumericalDataSigned
Definition: OMX_Types.h:247
OMX_STRING
char * OMX_STRING
Definition: OMX_Types.h:206
OMX_UUIDTYPE
unsigned char OMX_UUIDTYPE[128]
Definition: OMX_Types.h:219
OMX_DirOutput
@ OMX_DirOutput
Definition: OMX_Types.h:227
OMX_NumercialDataMax
@ OMX_NumercialDataMax
Definition: OMX_Types.h:249
OMX_U8
unsigned char OMX_U8
Definition: OMX_Types.h:133
OMX_VERSIONTYPE::nVersion
OMX_U32 nVersion
Definition: OMX_Types.h:337
OMX_S16
signed short OMX_S16
Definition: OMX_Types.h:142
OMX_NATIVE_WINDOWTYPE
void * OMX_NATIVE_WINDOWTYPE
Definition: OMX_Types.h:315
OMX_NumericalDataUnsigned
@ OMX_NumericalDataUnsigned
Definition: OMX_Types.h:248
OMX_DirInput
@ OMX_DirInput
Definition: OMX_Types.h:226
OMX_S32
signed long OMX_S32
Definition: OMX_Types.h:148
OMX_MARKTYPE::pMarkData
OMX_PTR pMarkData
Definition: OMX_Types.h:302

Generated for OpenMAX Bellagio rel. 0.9.3 by  doxygen 1.5.1
SourceForge.net Logo