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)
279 #define XN_DEPTH_NO_SAMPLE_VALUE ((XnDepthPixel)0)
313 #define XN_CAPABILITY_EXTENDED_SERIALIZATION "ExtendedSerialization"
314 #define XN_CAPABILITY_MIRROR "Mirror"
315 #define XN_CAPABILITY_ALTERNATIVE_VIEW_POINT "AlternativeViewPoint"
316 #define XN_CAPABILITY_CROPPING "Cropping"
317 #define XN_CAPABILITY_USER_POSITION "UserPosition"
318 #define XN_CAPABILITY_SKELETON "User::Skeleton"
319 #define XN_CAPABILITY_POSE_DETECTION "User::PoseDetection"
320 #define XN_CAPABILITY_LOCK_AWARE "LockAware"
321 #define XN_CAPABILITY_ERROR_STATE "ErrorState"
322 #define XN_CAPABILITY_FRAME_SYNC "FrameSync"
323 #define XN_CAPABILITY_DEVICE_IDENTIFICATION "DeviceIdentification"
324 #define XN_CAPABILITY_BRIGHTNESS "Brightness"
325 #define XN_CAPABILITY_CONTRAST "Contrast"
326 #define XN_CAPABILITY_HUE "Hue"
327 #define XN_CAPABILITY_SATURATION "Saturation"
328 #define XN_CAPABILITY_SHARPNESS "Sharpness"
329 #define XN_CAPABILITY_GAMMA "Gamma"
330 #define XN_CAPABILITY_COLOR_TEMPERATURE "ColorTemperature"
331 #define XN_CAPABILITY_BACKLIGHT_COMPENSATION "BacklightCompensation"
332 #define XN_CAPABILITY_GAIN "Gain"
333 #define XN_CAPABILITY_PAN "Pan"
334 #define XN_CAPABILITY_TILT "Tilt"
335 #define XN_CAPABILITY_ROLL "Roll"
336 #define XN_CAPABILITY_ZOOM "Zoom"
337 #define XN_CAPABILITY_EXPOSURE "Exposure"
338 #define XN_CAPABILITY_IRIS "Iris"
339 #define XN_CAPABILITY_FOCUS "Focus"
340 #define XN_CAPABILITY_LOW_LIGHT_COMPENSATION "LowLightCompensation"
341 #define XN_CAPABILITY_ANTI_FLICKER "AntiFlicker"
342 #define XN_CAPABILITY_HAND_TOUCHING_FOV_EDGE "Hands::HandTouchingFOVEdge"
345 #define XN_CAPABILITY_ANTI_FILCKER XN_CAPABILITY_ANTI_FLICKER
348 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
349 #pragma deprecated("XN_CAPABILITY_ANTI_FILCKER")
356 #define XN_QQVGA_X_RES 160
357 #define XN_QQVGA_Y_RES 120
359 #define XN_CGA_X_RES 320
360 #define XN_CGA_Y_RES 200
362 #define XN_QVGA_X_RES 320
363 #define XN_QVGA_Y_RES 240
365 #define XN_VGA_X_RES 640
366 #define XN_VGA_Y_RES 480
368 #define XN_SVGA_X_RES 800
369 #define XN_SVGA_Y_RES 600
371 #define XN_XGA_X_RES 1024
372 #define XN_XGA_Y_RES 768
374 #define XN_720P_X_RES 1280
375 #define XN_720P_Y_RES 720
377 #define XN_SXGA_X_RES 1280
378 #define XN_SXGA_Y_RES 1024
380 #define XN_UXGA_X_RES 1600
381 #define XN_UXGA_Y_RES 1200
383 #define XN_1080P_X_RES 1920
384 #define XN_1080P_Y_RES 1080
386 #define XN_QCIF_X_RES 176
387 #define XN_QCIF_Y_RES 144
389 #define XN_240P_X_RES 423
390 #define XN_240P_Y_RES 240
392 #define XN_CIF_X_RES 352
393 #define XN_CIF_Y_RES 288
395 #define XN_WVGA_X_RES 640
396 #define XN_WVGA_Y_RES 360
398 #define XN_480P_X_RES 864
399 #define XN_480P_Y_RES 480
401 #define XN_576P_X_RES 1024
402 #define XN_576P_Y_RES 576
404 #define XN_DV_X_RES 960
405 #define XN_DV_Y_RES 720
842 #define XN_CODEC_ID(c1, c2, c3, c4) (XnCodecID)((c4 << 24) | (c3 << 16) | (c2 << 8) | c1)
866 XnStatus (XN_CALLBACK_TYPE*
Write)(
void* pCookie,
const XnChar* strNodeName,
867 const void* pData, XnUInt32 nSize);
886 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
893 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
912 XnUInt64 (XN_CALLBACK_TYPE*
Tell64)(
void* pCookie);
939 XnStatus (XN_CALLBACK_TYPE*
Read)(
void* pCookie,
void* pBuffer, XnUInt32 nSize, XnUInt32* pnBytesRead);
957 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
964 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
983 XnUInt64 (XN_CALLBACK_TYPE*
Tell64)(
void* pCookie);
1009 (
void* pCookie,
const XnChar* strNodeName);
1020 (
void* pCookie,
const XnChar* strNodeName,
1021 const XnChar* strPropName, XnUInt64 nValue);
1032 (
void* pCookie,
const XnChar* strNodeName,
1033 const XnChar* strPropName, XnDouble dValue);
1044 (
void* pCookie,
const XnChar* strNodeName,
1045 const XnChar* strPropName,
const XnChar* strValue);
1057 (
void* pCookie,
const XnChar* strNodeName,
1058 const XnChar* strPropName, XnUInt32 nBufferSize,
const void* pBuffer);
1067 (
void* pCookie,
const XnChar* strNodeName);
1079 (
void* pCookie,
const XnChar* strNodeName,
1080 XnUInt64 nTimeStamp, XnUInt32 nFrame,
const void* pData, XnUInt32 nSize);
1184 #if XN_PLATFORM != XN_PLATFORM_ARC
1188 #endif //__XN_TYPES_H__