21 #ifndef __XN_TYPES_H__
22 #define __XN_TYPES_H__
34 #define XN_MAX_NAME_LENGTH 80
37 #define XN_MAX_CREATION_INFO_LENGTH 255
40 #define XN_MAX_LICENSE_LENGTH 255
43 #define XN_NODE_WAIT_FOR_DATA_TIMEOUT 2000
46 #define XN_VENDOR_OPEN_NI "OpenNI"
49 #define XN_FORMAT_NAME_ONI "oni"
52 #define XN_SCRIPT_FORMAT_XML "xml"
55 #define XN_PLAYBACK_SPEED_FASTEST 0.0
58 #define XN_AUTO_CONTROL XN_MIN_INT32
61 #define XN_PAUSE_AUTO_CONTROL XN_MAX_INT32
66 struct XnInternalNodeData;
72 #if XN_PLATFORM != XN_PLATFORM_ARC
73 #pragma pack (push, 1)
281 #define XN_DEPTH_NO_SAMPLE_VALUE ((XnDepthPixel)0)
315 #define XN_CAPABILITY_EXTENDED_SERIALIZATION "ExtendedSerialization"
316 #define XN_CAPABILITY_MIRROR "Mirror"
317 #define XN_CAPABILITY_ALTERNATIVE_VIEW_POINT "AlternativeViewPoint"
318 #define XN_CAPABILITY_CROPPING "Cropping"
319 #define XN_CAPABILITY_USER_POSITION "UserPosition"
320 #define XN_CAPABILITY_SKELETON "User::Skeleton"
321 #define XN_CAPABILITY_POSE_DETECTION "User::PoseDetection"
322 #define XN_CAPABILITY_LOCK_AWARE "LockAware"
323 #define XN_CAPABILITY_ERROR_STATE "ErrorState"
324 #define XN_CAPABILITY_FRAME_SYNC "FrameSync"
325 #define XN_CAPABILITY_DEVICE_IDENTIFICATION "DeviceIdentification"
326 #define XN_CAPABILITY_BRIGHTNESS "Brightness"
327 #define XN_CAPABILITY_CONTRAST "Contrast"
328 #define XN_CAPABILITY_HUE "Hue"
329 #define XN_CAPABILITY_SATURATION "Saturation"
330 #define XN_CAPABILITY_SHARPNESS "Sharpness"
331 #define XN_CAPABILITY_GAMMA "Gamma"
332 #define XN_CAPABILITY_COLOR_TEMPERATURE "ColorTemperature"
333 #define XN_CAPABILITY_BACKLIGHT_COMPENSATION "BacklightCompensation"
334 #define XN_CAPABILITY_GAIN "Gain"
335 #define XN_CAPABILITY_PAN "Pan"
336 #define XN_CAPABILITY_TILT "Tilt"
337 #define XN_CAPABILITY_ROLL "Roll"
338 #define XN_CAPABILITY_ZOOM "Zoom"
339 #define XN_CAPABILITY_EXPOSURE "Exposure"
340 #define XN_CAPABILITY_AUTO_EXPOSURE "AutoExposure"
341 #define XN_CAPABILITY_IRIS "Iris"
342 #define XN_CAPABILITY_FOCUS "Focus"
343 #define XN_CAPABILITY_LOW_LIGHT_COMPENSATION "LowLightCompensation"
344 #define XN_CAPABILITY_ANTI_FLICKER "AntiFlicker"
345 #define XN_CAPABILITY_HAND_TOUCHING_FOV_EDGE "Hands::HandTouchingFOVEdge"
348 #define XN_CAPABILITY_ANTI_FILCKER XN_CAPABILITY_ANTI_FLICKER
351 #if (XN_PLATFORM == XN_PLATFORM_WIN32)
352 #pragma deprecated("XN_CAPABILITY_ANTI_FILCKER")
359 #define XN_QQVGA_X_RES 160
360 #define XN_QQVGA_Y_RES 120
362 #define XN_CGA_X_RES 320
363 #define XN_CGA_Y_RES 200
365 #define XN_QVGA_X_RES 320
366 #define XN_QVGA_Y_RES 240
368 #define XN_VGA_X_RES 640
369 #define XN_VGA_Y_RES 480
371 #define XN_SVGA_X_RES 800
372 #define XN_SVGA_Y_RES 600
374 #define XN_XGA_X_RES 1024
375 #define XN_XGA_Y_RES 768
377 #define XN_720P_X_RES 1280
378 #define XN_720P_Y_RES 720
380 #define XN_SXGA_X_RES 1280
381 #define XN_SXGA_Y_RES 1024
383 #define XN_UXGA_X_RES 1600
384 #define XN_UXGA_Y_RES 1200
386 #define XN_1080P_X_RES 1920
387 #define XN_1080P_Y_RES 1080
389 #define XN_QCIF_X_RES 176
390 #define XN_QCIF_Y_RES 144
392 #define XN_240P_X_RES 423
393 #define XN_240P_Y_RES 240
395 #define XN_CIF_X_RES 352
396 #define XN_CIF_Y_RES 288
398 #define XN_WVGA_X_RES 640
399 #define XN_WVGA_Y_RES 360
401 #define XN_480P_X_RES 864
402 #define XN_480P_Y_RES 480
404 #define XN_576P_X_RES 1024
405 #define XN_576P_Y_RES 576
407 #define XN_DV_X_RES 960
408 #define XN_DV_Y_RES 720
845 #define XN_CODEC_ID(c1, c2, c3, c4) (XnCodecID)((c4 << 24) | (c3 << 16) | (c2 << 8) | c1)
869 XnStatus (XN_CALLBACK_TYPE*
Write)(
void* pCookie,
const XnChar* strNodeName,
870 const void* pData, XnUInt32 nSize);
889 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
896 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
915 XnUInt64 (XN_CALLBACK_TYPE*
Tell64)(
void* pCookie);
942 XnStatus (XN_CALLBACK_TYPE*
Read)(
void* pCookie,
void* pBuffer, XnUInt32 nSize, XnUInt32* pnBytesRead);
960 XnUInt32 (XN_CALLBACK_TYPE*
Tell)(
void* pCookie);
967 void (XN_CALLBACK_TYPE*
Close)(
void* pCookie);
986 XnUInt64 (XN_CALLBACK_TYPE*
Tell64)(
void* pCookie);
1012 (
void* pCookie,
const XnChar* strNodeName);
1023 (
void* pCookie,
const XnChar* strNodeName,
1024 const XnChar* strPropName, XnUInt64 nValue);
1035 (
void* pCookie,
const XnChar* strNodeName,
1036 const XnChar* strPropName, XnDouble dValue);
1047 (
void* pCookie,
const XnChar* strNodeName,
1048 const XnChar* strPropName,
const XnChar* strValue);
1060 (
void* pCookie,
const XnChar* strNodeName,
1061 const XnChar* strPropName, XnUInt32 nBufferSize,
const void* pBuffer);
1070 (
void* pCookie,
const XnChar* strNodeName);
1082 (
void* pCookie,
const XnChar* strNodeName,
1083 XnUInt64 nTimeStamp, XnUInt32 nFrame,
const void* pData, XnUInt32 nSize);
1187 #if XN_PLATFORM != XN_PLATFORM_ARC
1191 #endif //__XN_TYPES_H__