fg_struct.h Source File

fg_struct.h
Go to the documentation of this file.
1
14#ifndef __FG_STRUCT_H
15#define __FG_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 "fg_define.h"
42#include "fg_error_codes.h"
43
44typedef struct LookupTable_s {
45 unsigned int *lut;
46 unsigned int id;
47 unsigned int nrOfElements;
48 unsigned int format;
49 unsigned char number;
51
52typedef struct KneeLookupTable_s {
53 double *value;
54 double *reserved;
55 unsigned int id;
56 unsigned int nrOfElements;
57 unsigned int format;
58 unsigned char number;
60
61
62typedef struct ShadingParameter_s {
63 unsigned char *offset;
64 unsigned char *cmult;
65 float *mult;
66 unsigned int nrOfElements;
67 size_t width; //int
68 size_t height; //int
69 int set;
71
76
77typedef struct FieldParameterInt_s {
78 uint32_t value;
79 unsigned int index;
81
82typedef struct FieldParameterDouble_s {
83 double value;
84 unsigned int index;
86
116 unsigned int index;
117 unsigned int count;
118 FGLIB_PTRALIGN(_pad)
119 union {
120 int32_t *p_int32_t;
121 uint32_t *p_uint32_t;
122 int64_t *p_int64_t;
123 uint64_t *p_uint64_t;
124 double *p_double;
125 void *ptr;
126 };
127};
128
129#ifndef __cplusplus
131#endif
132
134 unsigned int version;
135 FGLIB_PTRALIGN(_pad)
137 void *data;
138 unsigned int timeout;
139 unsigned int flags;
140};
141
142#ifndef __cplusplus
144#endif
145
153typedef struct Fg_Struct_s Fg_Struct;
154
156 unsigned int version;
157 unsigned int _pad;
158 unsigned int notify[64];
159 uint64_t timestamp[64];
160 unsigned int length;
161 uint16_t data[254];
162};
163
164
183#ifdef _MSC_VER
184#pragma pack(pop)
185#endif /* _WIN32 */
186#undef FGLIB_PTRALIGN
187
188#endif
Constant and enum definitions.
FgParamTypes
Definition fg_define.h:217
int(* Fg_ApcFunc_t)(frameindex_t imgNr, void *data)
Definition fg_define.h:1359
Constant and enum definitions.
#define FGLIB_PTRALIGN(x)
Definition fg_struct.h:38
struct LineShadingParameter_s LineShadingParameter
struct FieldParameterDouble_s FieldParameterDouble
struct ShadingParameter_s ShadingParameter
struct Fg_Struct_s Fg_Struct
The structure for a framegrabber.
Definition fg_struct.h:153
struct FieldParameterInt_s FieldParameterInt
struct KneeLookupTable_s KneeLookupTable
struct LookupTable_s LookupTable
Definition fg_struct.h:133
unsigned int flags
Definition fg_struct.h:139
unsigned int version
Definition fg_struct.h:134
Fg_ApcFunc_t func
Definition fg_struct.h:136
void * data
Definition fg_struct.h:137
unsigned int timeout
Definition fg_struct.h:138
Definition fg_struct.h:114
enum FgParamTypes vtype
Definition fg_struct.h:115
unsigned int index
Definition fg_struct.h:116
void * ptr
Definition fg_struct.h:125
int32_t * p_int32_t
Definition fg_struct.h:120
unsigned int count
Definition fg_struct.h:117
uint32_t * p_uint32_t
Definition fg_struct.h:121
int64_t * p_int64_t
Definition fg_struct.h:122
uint64_t * p_uint64_t
Definition fg_struct.h:123
double * p_double
Definition fg_struct.h:124
Definition fg_struct.h:82
unsigned int index
Definition fg_struct.h:84
double value
Definition fg_struct.h:83
Definition fg_struct.h:77
uint32_t value
Definition fg_struct.h:78
unsigned int index
Definition fg_struct.h:79
Definition fg_struct.h:52
unsigned char number
Definition fg_struct.h:58
unsigned int format
Definition fg_struct.h:57
unsigned int id
Definition fg_struct.h:55
double * reserved
Definition fg_struct.h:54
double * value
Definition fg_struct.h:53
unsigned int nrOfElements
Definition fg_struct.h:56
Definition fg_struct.h:72
int mNoOfPixelsInit
Definition fg_struct.h:74
unsigned int mShadingData[4096]
Definition fg_struct.h:73
Definition fg_struct.h:44
unsigned int nrOfElements
Definition fg_struct.h:47
unsigned int id
Definition fg_struct.h:46
unsigned int * lut
Definition fg_struct.h:45
unsigned char number
Definition fg_struct.h:49
unsigned int format
Definition fg_struct.h:48
Definition fg_struct.h:62
size_t width
Definition fg_struct.h:67
int set
Definition fg_struct.h:69
unsigned char * offset
Definition fg_struct.h:63
unsigned char * cmult
Definition fg_struct.h:64
float * mult
Definition fg_struct.h:65
size_t height
Definition fg_struct.h:68
unsigned int nrOfElements
Definition fg_struct.h:66
Definition fg_struct.h:155
unsigned int length
Definition fg_struct.h:160
unsigned int _pad
Definition fg_struct.h:157
unsigned int version
Definition fg_struct.h:156