PSLink.h
Go to the documentation of this file.
1 #ifndef __XN_PRIME_CLIENT_PROPS_H__
2 #define __XN_PRIME_CLIENT_PROPS_H__
3 
4 #include <PrimeSense.h>
5 
6 enum
7 {
8  /**** Device properties ****/
9 
10  /* XnDetailedVersion, get only */
11  LINK_PROP_FW_VERSION = 0x12000001, // "FWVersion"
12  /* Int, get only */
13  LINK_PROP_VERSIONS_INFO_COUNT = 0x12000002, // "VersionsInfoCount"
14  /* General - array - XnComponentVersion * count elements, get only */
15  LINK_PROP_VERSIONS_INFO = 0x12000003, // "VersionsInfo"
16  /* Int - 0 means off, 1 means on. */
17  LINK_PROP_EMITTER_ACTIVE = 0x12000008, // "EmitterActive"
18  /* String. Set only */
19  LINK_PROP_PRESET_FILE = 0x1200000a, // "PresetFile"
20  /* Get only */
21  LINK_PROP_BOOT_STATUS = 0x1200000b,
22 
23  /**** Device commands ****/
24  /* XnCommandGetFwStreams */
26  /* XnCommandCreateStream */
28  /* XnCommandDestroyStream */
30  /* XnCommandStartStream */
32  /* XnCommandStopStream */
34  /* XnCommandGetFwStreamVideoModeList */
36  /* XnCommandSetFwStreamVideoMode */
38  /* XnCommandGetFwStreamVideoMode */
40 
41  /**** Stream properties ****/
42  /* Int. 1 - Shifts 9.3, 2 - Grayscale16, 3 - YUV422, 4 - Bayer8 */
43  LINK_PROP_PIXEL_FORMAT = 0x12001001, // "PixelFormat"
44  /* Int. 0 - None, 1 - 8z, 2 - 16z, 3 - 24z, 4 - 6-bit, 5 - 10-bit, 6 - 11-bit, 7 - 12-bit */
45  LINK_PROP_COMPRESSION = 0x12001002, // "Compression"
46 
47  /**** Depth Stream properties ****/
48  /* Real, get only */
49  LINK_PROP_DEPTH_SCALE = 0x1200000b, // "DepthScale"
50  /* Int, get only */
51  LINK_PROP_MAX_SHIFT = 0x12002001, // "MaxShift"
52  /* Int, get only */
53  LINK_PROP_ZERO_PLANE_DISTANCE = 0x12002002, // "ZPD"
54  /* Int, get only */
55  LINK_PROP_CONST_SHIFT = 0x12002003, // "ConstShift"
56  /* Int, get only */
57  LINK_PROP_PARAM_COEFF = 0x12002004, // "ParamCoeff"
58  /* Int, get only */
59  LINK_PROP_SHIFT_SCALE = 0x12002005, // "ShiftScale"
60  /* Real, get only */
61  LINK_PROP_ZERO_PLANE_PIXEL_SIZE = 0x12002006, // "ZPPS"
62  /* Real, get only */
63  LINK_PROP_ZERO_PLANE_OUTPUT_PIXEL_SIZE = 0x12002007, // "ZPOPS"
64  /* Real, get only */
65  LINK_PROP_EMITTER_DEPTH_CMOS_DISTANCE = 0x12002008, // "LDDIS"
66  /* General - array - MaxShift * XnDepthPixel elements, get only */
67  LINK_PROP_SHIFT_TO_DEPTH_TABLE = 0x12002009, // "S2D"
68  /* General - array - MaxDepth * uint16_t elements, get only */
69  LINK_PROP_DEPTH_TO_SHIFT_TABLE = 0x1200200a, // "D2S"
70 };
71 
72 typedef enum XnFileZone
73 {
74  XN_ZONE_FACTORY = 0x0000,
75  XN_ZONE_UPDATE = 0x0001,
76 } XnFileZone;
77 
78 typedef enum XnBootErrorCode
79 {
80  XN_BOOT_OK = 0x0000,
81  XN_BOOT_BAD_CRC = 0x0001,
85 
86 typedef enum XnFwStreamType
87 {
95 
96 typedef enum XnFwPixelFormat
97 {
104 
106 {
116 
117 #pragma pack (push, 1)
118 
119 #define XN_MAX_VERSION_MODIFIER_LENGTH 16
120 typedef struct XnDetailedVersion
121 {
128 
129 typedef struct XnBootStatus
130 {
133 } XnBootStatus;
134 
135 typedef struct XnFwStreamInfo
136 {
138  char creationInfo[80];
140 
141 typedef struct XnFwStreamVideoMode
142 {
149 
151 {
152  uint32_t count; // in: number of allocated elements in streams array. out: number of written elements in the array
155 
156 typedef struct XnCommandCreateStream
157 {
159  const char* creationInfo;
160  uint32_t id; // out
162 
164 {
167 
168 typedef struct XnCommandStartStream
169 {
172 
173 typedef struct XnCommandStopStream
174 {
177 
179 {
180  int streamId;
181  uint32_t count; // in: number of allocated elements in videoModes array. out: number of written elements in the array
184 
186 {
187  int streamId;
190 
192 {
193  int streamId;
196 
197 #pragma pack (pop)
198 
199 #endif //__XN_PRIME_CLIENT_PROPS_H__
unsigned short uint16_t
const char * creationInfo
Definition: PSLink.h:159
XnBootErrorCode errorCode
Definition: PSLink.h:132
XnFwStreamVideoMode * videoModes
Definition: PSLink.h:182
unsigned char uint8_t
XnFwPixelFormat m_nPixelFormat
Definition: PSLink.h:146
char m_strModifier[XN_MAX_VERSION_MODIFIER_LENGTH]
Definition: PSLink.h:126
XnFwCompressionType m_nCompression
Definition: PSLink.h:147
XnFwStreamVideoMode videoMode
Definition: PSLink.h:194
uint16_t m_nMaintenance
Definition: PSLink.h:124
uint8_t m_nMajor
Definition: PSLink.h:122
uint32_t m_nYRes
Definition: PSLink.h:144
XnFwStreamType type
Definition: PSLink.h:137
unsigned int uint32_t
uint32_t m_nBuild
Definition: PSLink.h:125
XnFileZone zone
Definition: PSLink.h:131
XnFwStreamType type
Definition: PSLink.h:158
uint32_t m_nXRes
Definition: PSLink.h:143
uint8_t m_nMinor
Definition: PSLink.h:123
XnFwStreamVideoMode videoMode
Definition: PSLink.h:188
XnFwStreamInfo * streams
Definition: PSLink.h:153
uint32_t m_nFPS
Definition: PSLink.h:145


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:38