PSLink.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * *
3 * OpenNI 2.x Alpha *
4 * Copyright (C) 2012 PrimeSense Ltd. *
5 * *
6 * This file is part of OpenNI. *
7 * *
8 * Licensed under the Apache License, Version 2.0 (the "License"); *
9 * you may not use this file except in compliance with the License. *
10 * You may obtain a copy of the License at *
11 * *
12 * http://www.apache.org/licenses/LICENSE-2.0 *
13 * *
14 * Unless required by applicable law or agreed to in writing, software *
15 * distributed under the License is distributed on an "AS IS" BASIS, *
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17 * See the License for the specific language governing permissions and *
18 * limitations under the License. *
19 * *
20 *****************************************************************************/
21 #ifndef PSLINK_H
22 #define PSLINK_H
23 
24 #include <PrimeSense.h>
25 
26 enum
27 {
28  /**** Device properties ****/
29 
30  /* XnDetailedVersion, get only */
31  LINK_PROP_FW_VERSION = 0x12000001, // "FWVersion"
32  /* Int, get only */
33  LINK_PROP_VERSIONS_INFO_COUNT = 0x12000002, // "VersionsInfoCount"
34  /* General - array - XnComponentVersion * count elements, get only */
35  LINK_PROP_VERSIONS_INFO = 0x12000003, // "VersionsInfo"
36  /* Int - 0 means off, 1 means on. */
37  LINK_PROP_PROJECTOR_ACTIVE = 0x12000008, // "ProjectorActive"
38  /* String. Set only */
39  LINK_PROP_PRESET_FILE = 0x1200000a, // "PresetFile"
40  /* Get only */
41  LINK_PROP_BOOT_STATUS = 0x1200000b,
42  /* Int - system specific units */
44  /* SetAccActive*/
45  LINK_PROP_ACC_ENABLED = 0x1200000d,
46  /* SetAccActive*/
47  LINK_PROP_VDD_ENABLED = 0x1200000e,
48  /* SetAccActive*/
50 
51 
52  /**** Device commands ****/
53  /* XnCommandGetFwStreams */
55  /* XnCommandCreateStream */
57  /* XnCommandDestroyStream */
59  /* XnCommandStartStream */
61  /* XnCommandStopStream */
63  /* XnCommandGetFwStreamVideoModeList */
65  /* XnCommandSetFwStreamVideoMode */
67  /* XnCommandGetFwStreamVideoMode */
69  /* XnCommandSetProjectorPulse */
71  /* No args */
73 
74  /**** Stream properties ****/
75  /* Int. 1 - Shifts 9.3, 2 - Grayscale16, 3 - YUV422, 4 - Bayer8 */
76  LINK_PROP_PIXEL_FORMAT = 0x12001001, // "PixelFormat"
77  /* Int. 0 - None, 1 - 8z, 2 - 16z, 3 - 24z, 4 - 6-bit, 5 - 10-bit, 6 - 11-bit, 7 - 12-bit */
78  LINK_PROP_COMPRESSION = 0x12001002, // "Compression"
79 
80  /**** Depth Stream properties ****/
81  /* Real, get only */
82  LINK_PROP_DEPTH_SCALE = 0x1200000b, // "DepthScale"
83  /* Int, get only */
84  LINK_PROP_MAX_SHIFT = 0x12002001, // "MaxShift"
85  /* Int, get only */
86  LINK_PROP_ZERO_PLANE_DISTANCE = 0x12002002, // "ZPD"
87  /* Int, get only */
88  LINK_PROP_CONST_SHIFT = 0x12002003, // "ConstShift"
89  /* Int, get only */
90  LINK_PROP_PARAM_COEFF = 0x12002004, // "ParamCoeff"
91  /* Int, get only */
92  LINK_PROP_SHIFT_SCALE = 0x12002005, // "ShiftScale"
93  /* Real, get only */
94  LINK_PROP_ZERO_PLANE_PIXEL_SIZE = 0x12002006, // "ZPPS"
95  /* Real, get only */
96  LINK_PROP_ZERO_PLANE_OUTPUT_PIXEL_SIZE = 0x12002007, // "ZPOPS"
97  /* Real, get only */
98  LINK_PROP_EMITTER_DEPTH_CMOS_DISTANCE = 0x12002008, // "LDDIS"
99  /* General - array - MaxShift * XnDepthPixel elements, get only */
100  LINK_PROP_SHIFT_TO_DEPTH_TABLE = 0x12002009, // "S2D"
101  /* General - array - MaxDepth * uint16_t elements, get only */
102  LINK_PROP_DEPTH_TO_SHIFT_TABLE = 0x1200200a, // "D2S"
103 };
104 
105 typedef enum XnFileZone
106 {
107  XN_ZONE_FACTORY = 0x0000,
108  XN_ZONE_UPDATE = 0x0001,
109 } XnFileZone;
110 
111 typedef enum XnBootErrorCode
112 {
113  XN_BOOT_OK = 0x0000,
114  XN_BOOT_BAD_CRC = 0x0001,
118 
119 typedef enum XnFwStreamType
120 {
128 
129 typedef enum XnFwPixelFormat
130 {
137 
139 {
149 
150 #pragma pack (push, 1)
151 
152 #define XN_MAX_VERSION_MODIFIER_LENGTH 16
153 typedef struct XnDetailedVersion
154 {
161 
162 typedef struct XnBootStatus
163 {
166 } XnBootStatus;
167 
168 typedef struct XnFwStreamInfo
169 {
171  char creationInfo[80];
173 
174 typedef struct XnFwStreamVideoMode
175 {
182 
184 {
185  uint32_t count; // in: number of allocated elements in streams array. out: number of written elements in the array
188 
189 typedef struct XnCommandCreateStream
190 {
192  const char* creationInfo;
193  uint32_t id; // out
195 
197 {
200 
201 typedef struct XnCommandStartStream
202 {
205 
206 typedef struct XnCommandStopStream
207 {
210 
212 {
213  int streamId;
214  uint32_t count; // in: number of allocated elements in videoModes array. out: number of written elements in the array
217 
219 {
220  int streamId;
223 
225 {
226  int streamId;
229 
231 {
232  float delay; //start delay - delay time before start pulse
233  float width; //DC - duty cycle - the percentage of the pulse out of total cycle
234  float cycle;
236 
237 #pragma pack (pop)
238 
239 #endif // PSLINK_H
unsigned short uint16_t
const char * creationInfo
Definition: PSLink.h:192
XnBootErrorCode errorCode
Definition: PSLink.h:165
XnFwStreamVideoMode * videoModes
Definition: PSLink.h:215
unsigned char uint8_t
XnFwPixelFormat m_nPixelFormat
Definition: PSLink.h:179
char m_strModifier[XN_MAX_VERSION_MODIFIER_LENGTH]
Definition: PSLink.h:159
XnFwCompressionType m_nCompression
Definition: PSLink.h:180
XnFwStreamVideoMode videoMode
Definition: PSLink.h:227
uint16_t m_nMaintenance
Definition: PSLink.h:157
uint8_t m_nMajor
Definition: PSLink.h:155
uint32_t m_nYRes
Definition: PSLink.h:177
XnFwStreamType type
Definition: PSLink.h:170
unsigned int uint32_t
uint32_t m_nBuild
Definition: PSLink.h:158
XnFileZone zone
Definition: PSLink.h:164
XnFwStreamType type
Definition: PSLink.h:191
uint32_t m_nXRes
Definition: PSLink.h:176
uint8_t m_nMinor
Definition: PSLink.h:156
XnFwStreamVideoMode videoMode
Definition: PSLink.h:221
XnFwStreamInfo * streams
Definition: PSLink.h:186
uint32_t m_nFPS
Definition: PSLink.h:178


astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34