22 #ifndef __XN_TYPES_H__
23 #define __XN_TYPES_H__
35 #define XN_MAX_NAME_LENGTH 80
38 #define XN_MAX_CREATION_INFO_LENGTH 255
41 #define XN_MAX_LICENSE_LENGTH 255
44 #define XN_NODE_WAIT_FOR_DATA_TIMEOUT 2000
47 #define XN_VENDOR_OPEN_NI "OpenNI"
50 #define XN_FORMAT_NAME_ONI "oni"
53 #define XN_SCRIPT_FORMAT_XML "xml"
56 #define XN_PLAYBACK_SPEED_FASTEST 0.0
59 #define XN_AUTO_CONTROL XN_MIN_INT32
64 struct XnInternalNodeData;
70 #if XN_PLATFORM != XN_PLATFORM_ARC
71 #pragma pack (push, 1)
258 #define XN_DEPTH_NO_SAMPLE_VALUE ((XnDepthPixel)0)
292 #define XN_CAPABILITY_EXTENDED_SERIALIZATION "ExtendedSerialization"
293 #define XN_CAPABILITY_MIRROR "Mirror"
294 #define XN_CAPABILITY_ALTERNATIVE_VIEW_POINT "AlternativeViewPoint"
295 #define XN_CAPABILITY_CROPPING "Cropping"
296 #define XN_CAPABILITY_USER_POSITION "UserPosition"
297 #define XN_CAPABILITY_SKELETON "User::Skeleton"
298 #define XN_CAPABILITY_POSE_DETECTION "User::PoseDetection"
299 #define XN_CAPABILITY_LOCK_AWARE "LockAware"
300 #define XN_CAPABILITY_ERROR_STATE "ErrorState"
301 #define XN_CAPABILITY_FRAME_SYNC "FrameSync"
302 #define XN_CAPABILITY_DEVICE_IDENTIFICATION "DeviceIdentification"
303 #define XN_CAPABILITY_BRIGHTNESS "Brightness"
304 #define XN_CAPABILITY_CONTRAST "Contrast"
305 #define XN_CAPABILITY_HUE "Hue"
306 #define XN_CAPABILITY_SATURATION "Saturation"
307 #define XN_CAPABILITY_SHARPNESS "Sharpness"
308 #define XN_CAPABILITY_GAMMA "Gamma"
309 #define XN_CAPABILITY_COLOR_TEMPERATURE "ColorTemperature"
310 #define XN_CAPABILITY_BACKLIGHT_COMPENSATION "BacklightCompensation"
311 #define XN_CAPABILITY_GAIN "Gain"
312 #define XN_CAPABILITY_PAN "Pan"
313 #define XN_CAPABILITY_TILT "Tilt"
314 #define XN_CAPABILITY_ROLL "Roll"
315 #define XN_CAPABILITY_ZOOM "Zoom"
316 #define XN_CAPABILITY_EXPOSURE "Exposure"
317 #define XN_CAPABILITY_IRIS "Iris"
318 #define XN_CAPABILITY_FOCUS "Focus"
319 #define XN_CAPABILITY_LOW_LIGHT_COMPENSATION "LowLightCompensation"
320 #define XN_CAPABILITY_ANTI_FLICKER "AntiFlicker"
321 #define XN_CAPABILITY_HAND_TOUCHING_FOV_EDGE "Hands::HandTouchingFOVEdge"
324 #define XN_CAPABILITY_ANTI_FILCKER XN_CAPABILITY_ANTI_FLICKER
327 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
335 #define XN_QQVGA_X_RES 160
336 #define XN_QQVGA_Y_RES 120
338 #define XN_CGA_X_RES 320
339 #define XN_CGA_Y_RES 200
341 #define XN_QVGA_X_RES 320
342 #define XN_QVGA_Y_RES 240
344 #define XN_VGA_X_RES 640
345 #define XN_VGA_Y_RES 480
347 #define XN_SVGA_X_RES 800
348 #define XN_SVGA_Y_RES 600
350 #define XN_XGA_X_RES 1024
351 #define XN_XGA_Y_RES 768
353 #define XN_720P_X_RES 1280
354 #define XN_720P_Y_RES 720
356 #define XN_SXGA_X_RES 1280
357 #define XN_SXGA_Y_RES 1024
359 #define XN_UXGA_X_RES 1600
360 #define XN_UXGA_Y_RES 1200
362 #define XN_1080P_X_RES 1920
363 #define XN_1080P_Y_RES 1080
365 #define XN_QCIF_X_RES 176
366 #define XN_QCIF_Y_RES 144
368 #define XN_240P_X_RES 423
369 #define XN_240P_Y_RES 240
371 #define XN_CIF_X_RES 352
372 #define XN_CIF_Y_RES 288
374 #define XN_WVGA_X_RES 640
375 #define XN_WVGA_Y_RES 360
377 #define XN_480P_X_RES 864
378 #define XN_480P_Y_RES 480
380 #define XN_576P_X_RES 1024
381 #define XN_576P_Y_RES 576
383 #define XN_DV_X_RES 960
384 #define XN_DV_Y_RES 720
809 #define XN_CODEC_ID(c1, c2, c3, c4) (XnCodecID)((c4 << 24) | (c3 << 16) | (c2 << 8) | c1)
833 XnStatus (XN_CALLBACK_TYPE*
Write)(
void* pCookie,
const XnChar* strNodeName,
834 const void* pData, XnUInt32 nSize);
853 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
860 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
886 XnStatus (XN_CALLBACK_TYPE*
Read)(
void* pCookie,
void* pBuffer, XnUInt32 nSize, XnUInt32* pnBytesRead);
904 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
911 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
936 (
void* pCookie,
const XnChar* strNodeName);
947 (
void* pCookie,
const XnChar* strNodeName,
948 const XnChar* strPropName, XnUInt64 nValue);
959 (
void* pCookie,
const XnChar* strNodeName,
960 const XnChar* strPropName, XnDouble dValue);
971 (
void* pCookie,
const XnChar* strNodeName,
972 const XnChar* strPropName,
const XnChar* strValue);
984 (
void* pCookie,
const XnChar* strNodeName,
985 const XnChar* strPropName, XnUInt32 nBufferSize,
const void* pBuffer);
994 (
void* pCookie,
const XnChar* strNodeName);
1006 (
void* pCookie,
const XnChar* strNodeName,
1007 XnUInt64 nTimeStamp, XnUInt32 nFrame,
const void* pData, XnUInt32 nSize);
1111 #if XN_PLATFORM != XN_PLATFORM_ARC
1115 #endif //__XN_TYPES_H__