Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
WsbTypes.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | Wasabi - Types
4 |
5 | $Id: WsbTypes.h 10793 2014-06-25 12:46:08Z jebaseelir $
6 | Original author: Julien Boeuf
7 |
8 | This software is provided to you pursuant to your agreement
9 | with Intertrust Technologies Corporation ("Intertrust").
10 | This software may be used only in accordance with the terms
11 | of the agreement.
12 |
13 | Copyright (c) 2003-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
21  #ifndef _WSB_TYPES_H_
22  #define _WSB_TYPES_H_
23 
24 /*----------------------------------------------------------------------
25 | includes
26 +---------------------------------------------------------------------*/
27 #include "WsbConfig.h"
28 
29 /*----------------------------------------------------------------------
30 | generic types
31 +---------------------------------------------------------------------*/
36 typedef unsigned int WSB_UInt32;
37 typedef signed int WSB_Int32;
38 typedef unsigned short WSB_UInt16;
39 typedef signed short WSB_Int16;
40 typedef unsigned char WSB_UInt8;
41 typedef signed char WSB_Int8;
42 typedef float WSB_Float;
44 /* 64-bit types */
45 #if !defined(WSB_CONFIG_HAVE_INT64)
46 #error "64 bit types are not supported on this target"
47 #endif
48 typedef WSB_CONFIG_INT64_TYPE WSB_Int64;
49 typedef unsigned WSB_CONFIG_INT64_TYPE WSB_UInt64;
50 typedef unsigned WSB_CONFIG_INT64_TYPE WSB_LargeSize;
51 typedef unsigned WSB_CONFIG_INT64_TYPE WSB_Position;
52 
53 /*----------------------------------------------------------------------
54 | macros
55 +---------------------------------------------------------------------*/
56 #if !defined(NULL)
57 #if defined (__cplusplus)
58 #define NULL 0
59 #else
60 #define NULL ((void*) 0)
61 #endif
62 #endif
63 
64 /*----------------------------------------------------------------------
65 | types
66 +---------------------------------------------------------------------*/
71 typedef enum {
72  WSB_FALSE = 0,
74 } WSB_Boolean;
75 
83 typedef int WSB_Result;
84 
94 
99 
105 
110 
116 
122 
128 
133 
137 typedef struct {
145 } WSB_DateTime;
146 
150 typedef struct {
155 } WSB_TimeCode;
156 
157 typedef struct {
161 
162 typedef struct {
172  /* WSB_CString data_type; */
174 
178 typedef struct {
179  const unsigned char* data;
181 } WSB_ByteArray;
182 
185 #endif /* _WSB_TYPES_H_ */
Definition: WsbTypes.h:73
WSB_UInt32 WSB_Range
An unsigned integer used to represent the difference between a maximum value and a minimum value...
Definition: WsbTypes.h:115
WSB_Int32 day
Definition: WsbTypes.h:140
unsigned WSB_CONFIG_INT64_TYPE WSB_Position
Definition: WsbTypes.h:51
WSB_Int32 seconds
Definition: WsbTypes.h:143
signed char WSB_Int8
8-bit signed integer
Definition: WsbTypes.h:41
Definition: WsbTypes.h:157
unsigned char WSB_UInt8
8-bit unsigned integer
Definition: WsbTypes.h:40
unsigned WSB_CONFIG_INT64_TYPE WSB_LargeSize
Definition: WsbTypes.h:50
WSB_UInt16 channel_count
Number of channels.
Definition: WsbTypes.h:170
WSB_UInt64 duration
Duration in milliseconds.
Definition: WsbTypes.h:168
WSB_Boolean
Boolean type used for variables that can be true (WSB_TRUE) or false (WSB_FALSE). ...
Definition: WsbTypes.h:71
An untyped array of bytes.
Definition: WsbTypes.h:178
const unsigned char * data
Pointer to the bytes in the array.
Definition: WsbTypes.h:179
signed short WSB_Int16
16-bit signed integer
Definition: WsbTypes.h:39
WSB_LargeSize range
Range of possible offsets.
Definition: WsbTypes.h:159
WSB_UInt32 WSB_Ordinal
An unsigned integer that represents a position in a sequence (such as an index into a list of element...
Definition: WsbTypes.h:127
WSB_UInt32 WSB_Flags
Type used to represent a bit pattern signifying a combination of flags that can be on or off...
Definition: WsbTypes.h:93
Definition: WsbTypes.h:72
Definition: WsbTypes.h:162
WSB_Int32 month
Definition: WsbTypes.h:139
unsigned WSB_CONFIG_INT64_TYPE WSB_UInt64
Definition: WsbTypes.h:49
WSB_UInt32 average_bitrate
Average bitrate.
Definition: WsbTypes.h:165
WSB_UInt8 m
Definition: WsbTypes.h:152
WSB_UInt8 h
Definition: WsbTypes.h:151
WSB_Int32 year
Definition: WsbTypes.h:138
WSB_LargeSize offset
Offset from start (between 0 and range)
Definition: WsbTypes.h:158
WSB_Int32 minutes
Definition: WsbTypes.h:142
WSB_Int32 milliseconds
Definition: WsbTypes.h:144
WSB_UInt32 nominal_bitrate
Nominal bitrate.
Definition: WsbTypes.h:164
WSB_UInt32 WSB_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: WsbTypes.h:121
int WSB_Result
Signed integer value representing a function or method result (return value).
Definition: WsbTypes.h:83
float WSB_Float
IEEE float.
Definition: WsbTypes.h:42
WSB_Size data_size
Number of bytes in the array.
Definition: WsbTypes.h:180
WSB_CONFIG_INT64_TYPE WSB_Int64
Definition: WsbTypes.h:48
WSB_Flags flags
Stream Flags.
Definition: WsbTypes.h:171
WSB_UInt32 WSB_Mask
An unsigned integer used to represent a bit mask.
Definition: WsbTypes.h:98
unsigned short WSB_UInt16
16-bit unsigned integer
Definition: WsbTypes.h:38
WSB_UInt8 WSB_Byte
An 8-bit byte.
Definition: WsbTypes.h:132
unsigned int WSB_UInt32
32-bit (or more) unsigned integer
Definition: WsbTypes.h:36
WSB_Int32 hours
Definition: WsbTypes.h:141
WSB_Mask mask
Mask indicating which fields are valid.
Definition: WsbTypes.h:163
signed int WSB_Int32
32-bit (or more) signed integer
Definition: WsbTypes.h:37
WSB_Int32 WSB_Offset
A signed integer used to represent an offset from a base position value.
Definition: WsbTypes.h:109
WSB_UInt8 f
Definition: WsbTypes.h:154
A date and time.
Definition: WsbTypes.h:137
WSB_UInt64 size
Size in bytes.
Definition: WsbTypes.h:167
WSB_UInt32 sample_rate
Sample rate in Hz.
Definition: WsbTypes.h:169
WSB_UInt32 WSB_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: WsbTypes.h:104
WSB_UInt8 s
Definition: WsbTypes.h:153
WSB_UInt32 instant_bitrate
Instant bitrate.
Definition: WsbTypes.h:166
A timecode suitable for media stream position.
Definition: WsbTypes.h:150