Point Cloud Library (PCL)  1.8.1
openni.h
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Point Cloud Library (PCL) - www.pointclouds.org
5  * Copyright (c) 2012-, Open Perception, Inc.
6  *
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * * Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  * * Redistributions in binary form must reproduce the above
16  * copyright notice, this list of conditions and the following
17  * disclaimer in the documentation and/or other materials provided
18  * with the distribution.
19  * * Neither the name of the copyright holder(s) nor the names of its
20  * contributors may be used to endorse or promote products derived
21  * from this software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  *
36  */
37 #include <pcl/pcl_config.h>
38 #ifdef HAVE_OPENNI2
39 
40 #ifndef PCL_IO_OPENNI2_OPENNI_H_
41 #define PCL_IO_OPENNI2_OPENNI_H_
42 
43 #if defined __GNUC__
44 # pragma GCC system_header
45 #endif
46 
47 #include <OpenNI.h>
48 #include <OniVersion.h>
49 
50 // Standard resolutions, ported from OpenNI 1.x. To be removed later.
51 #define XN_QQVGA_X_RES 160
52 #define XN_QQVGA_Y_RES 120
53 #define XN_CGA_X_RES 320
54 #define XN_CGA_Y_RES 200
55 #define XN_QVGA_X_RES 320
56 #define XN_QVGA_Y_RES 240
57 #define XN_VGA_X_RES 640
58 #define XN_VGA_Y_RES 480
59 #define XN_SVGA_X_RES 800
60 #define XN_SVGA_Y_RES 600
61 #define XN_XGA_X_RES 1024
62 #define XN_XGA_Y_RES 768
63 #define XN_720P_X_RES 1280
64 #define XN_720P_Y_RES 720
65 #define XN_SXGA_X_RES 1280
66 #define XN_SXGA_Y_RES 1024
67 #define XN_UXGA_X_RES 1600
68 #define XN_UXGA_Y_RES 1200
69 #define XN_1080P_X_RES 1920
70 #define XN_1080P_Y_RES 1080
71 #define XN_QCIF_X_RES 176
72 #define XN_QCIF_Y_RES 144
73 #define XN_240P_X_RES 423
74 #define XN_240P_Y_RES 240
75 #define XN_CIF_X_RES 352
76 #define XN_CIF_Y_RES 288
77 #define XN_WVGA_X_RES 640
78 #define XN_WVGA_Y_RES 360
79 #define XN_480P_X_RES 864
80 #define XN_480P_Y_RES 480
81 #define XN_576P_X_RES 1024
82 #define XN_576P_Y_RES 576
83 #define XN_DV_X_RES 960
84 #define XN_DV_Y_RES 720
85 
86 #endif // PCL_IO_OPENNI2_OPENNI_H_
87 #endif // HAVE_OPENNI2