Silicon Software Logo

fgrab_struct.h Source File

fgrab_struct.h
Go to the documentation of this file.
1 
14 #ifndef FGRAB_STRUCT_H
15 #define FGRAB_STRUCT_H
16 
17 #pragma warning(push)
18 #pragma warning(disable: 4005)
19 #if defined(_MSC_VER) && (_MSC_VER < 1600)
20 #include <msinttypes/stdint.h>
21 #else
22 #include <stdint.h>
23 #endif
24 #pragma warning(pop)
25 
26 #ifdef _MSC_VER
27 #pragma pack(push)
28 #pragma pack(8)
29 #endif /* _WIN32 */
30 
31 #ifdef __GNUC__
32 #if __WORDSIZE == 64
33 #define FGLIB_PTRALIGN(x) unsigned int x;
34 #else /* __WORDSIZE == 64 */
35 #define FGLIB_PTRALIGN(x)
36 #endif /* BITS_PER_LONG > 32 */
37 #else /* __GNUC__ */
38 #define FGLIB_PTRALIGN(x)
39 #endif /* __GNUC__ */
40 
41 #include "fgrab_define.h"
42 
43 typedef struct LookupTable_s {
44  unsigned int *lut;
45  unsigned int id;
46  unsigned int nrOfElements;
47  unsigned int format;
48  unsigned char number;
49 } LookupTable;
50 
51 typedef struct KneeLookupTable_s {
52  double *value;
53  double *reserved;
54  unsigned int id;
55  unsigned int nrOfElements;
56  unsigned int format;
57  unsigned char number;
59 
60 
61 typedef struct ShadingParameter_s {
62  unsigned char *offset;
63  unsigned char *cmult;
64  float *mult;
65  unsigned int nrOfElements;
66  int width;
67  int height;
68  int set;
70 
71 typedef struct LineShadingParameter_s {
72  unsigned int mShadingData[4096];
75 
76 typedef struct FieldParameterInt_s {
77  uint32_t value;
78  unsigned int index;
80 
81 typedef struct FieldParameterDouble_s {
82  double value;
83  unsigned int index;
85 
115  unsigned int index;
116  unsigned int count;
117  FGLIB_PTRALIGN(_pad)
118  union {
119  int32_t *p_int32_t;
120  uint32_t *p_uint32_t;
121  int64_t *p_int64_t;
122  uint64_t *p_uint64_t;
123  double *p_double;
124  void *ptr;
125  };
126 };
127 
128 #ifndef __cplusplus
130 #endif
131 
132 struct FgApcControl {
133  unsigned int version;
134  FGLIB_PTRALIGN(_pad)
136  void *data;
137  unsigned int timeout;
138  unsigned int flags;
139 };
140 
141 #ifndef __cplusplus
142 typedef struct FgApcControl FgApcControl;
143 #endif
144 
152 typedef struct Fg_Struct_s Fg_Struct;
153 
155  unsigned int version;
156  unsigned int _pad;
157  unsigned int notify[64];
158  uint64_t timestamp[64];
159  unsigned int length;
160  uint16_t data[254];
161 };
162 
163 
182 #ifdef _MSC_VER
183 #pragma pack(pop)
184 #endif /* _WIN32 */
185 #undef FGLIB_PTRALIGN
186 
187 #endif
unsigned int flags
Definition: fgrab_struct.h:138
struct KneeLookupTable_s KneeLookupTable
unsigned int id
Definition: fgrab_struct.h:45
float * mult
Definition: fgrab_struct.h:64
unsigned int length
Definition: fgrab_struct.h:159
void * data
Definition: fgrab_struct.h:136
unsigned int format
Definition: fgrab_struct.h:47
Constant and enum definitions.
unsigned char number
Definition: fgrab_struct.h:48
Definition: fgrab_struct.h:132
FgParamTypes
Definition: fgrab_define.h:217
unsigned int index
Definition: fgrab_struct.h:115
Definition: fgrab_struct.h:51
Definition: fgrab_struct.h:154
uint64_t * p_uint64_t
Definition: fgrab_struct.h:122
unsigned int timeout
Definition: fgrab_struct.h:137
unsigned int nrOfElements
Definition: fgrab_struct.h:46
Definition: fgrab_struct.h:71
int width
Definition: fgrab_struct.h:66
unsigned int index
Definition: fgrab_struct.h:78
unsigned int mShadingData[4096]
Definition: fgrab_struct.h:72
double * p_double
Definition: fgrab_struct.h:123
Definition: fgrab_struct.h:43
struct ShadingParameter_s ShadingParameter
unsigned int version
Definition: fgrab_struct.h:155
Definition: fgrab_struct.h:61
unsigned int id
Definition: fgrab_struct.h:54
#define FGLIB_PTRALIGN(x)
Definition: fgrab_struct.h:38
unsigned int * lut
Definition: fgrab_struct.h:44
enum FgParamTypes vtype
Definition: fgrab_struct.h:114
Definition: fgrab_struct.h:113
Definition: fgrab_struct.h:81
double * reserved
Definition: fgrab_struct.h:53
struct LineShadingParameter_s LineShadingParameter
int height
Definition: fgrab_struct.h:67
int set
Definition: fgrab_struct.h:68
double value
Definition: fgrab_struct.h:82
unsigned int nrOfElements
Definition: fgrab_struct.h:55
Fg_ApcFunc_t func
Definition: fgrab_struct.h:135
struct LookupTable_s LookupTable
unsigned char * cmult
Definition: fgrab_struct.h:63
double * value
Definition: fgrab_struct.h:52
int mNoOfPixelsInit
Definition: fgrab_struct.h:73
void * ptr
Definition: fgrab_struct.h:124
unsigned char * offset
Definition: fgrab_struct.h:62
unsigned int count
Definition: fgrab_struct.h:116
unsigned int index
Definition: fgrab_struct.h:83
int32_t * p_int32_t
Definition: fgrab_struct.h:119
Definition: fgrab_struct.h:76
uint32_t * p_uint32_t
Definition: fgrab_struct.h:120
struct FieldParameterDouble_s FieldParameterDouble
unsigned int nrOfElements
Definition: fgrab_struct.h:65
unsigned int format
Definition: fgrab_struct.h:56
unsigned int _pad
Definition: fgrab_struct.h:156
uint32_t value
Definition: fgrab_struct.h:77
struct Fg_Struct_s Fg_Struct
The structure for a framegrabber.
Definition: fgrab_struct.h:152
struct FieldParameterInt_s FieldParameterInt
unsigned int version
Definition: fgrab_struct.h:133
unsigned char number
Definition: fgrab_struct.h:57
int64_t * p_int64_t
Definition: fgrab_struct.h:121
int(* Fg_ApcFunc_t)(frameindex_t imgNr, void *data)
Definition: fgrab_define.h:1535