Point Cloud Library (PCL) 1.12.0
Loading...
Searching...
No Matches
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
38#pragma once
39
40#ifdef HAVE_OPENNI2
41
42#include <pcl/pcl_config.h>
43
44#if defined __GNUC__
45# pragma GCC system_header
46#endif
47
48#include <OpenNI.h>
49#include <OniVersion.h>
50
51// Standard resolutions, ported from OpenNI 1.x. To be removed later.
52#define XN_QQVGA_X_RES 160
53#define XN_QQVGA_Y_RES 120
54#define XN_CGA_X_RES 320
55#define XN_CGA_Y_RES 200
56#define XN_QVGA_X_RES 320
57#define XN_QVGA_Y_RES 240
58#define XN_VGA_X_RES 640
59#define XN_VGA_Y_RES 480
60#define XN_SVGA_X_RES 800
61#define XN_SVGA_Y_RES 600
62#define XN_XGA_X_RES 1024
63#define XN_XGA_Y_RES 768
64#define XN_720P_X_RES 1280
65#define XN_720P_Y_RES 720
66#define XN_SXGA_X_RES 1280
67#define XN_SXGA_Y_RES 1024
68#define XN_UXGA_X_RES 1600
69#define XN_UXGA_Y_RES 1200
70#define XN_1080P_X_RES 1920
71#define XN_1080P_Y_RES 1080
72#define XN_QCIF_X_RES 176
73#define XN_QCIF_Y_RES 144
74#define XN_240P_X_RES 423
75#define XN_240P_Y_RES 240
76#define XN_CIF_X_RES 352
77#define XN_CIF_Y_RES 288
78#define XN_WVGA_X_RES 640
79#define XN_WVGA_Y_RES 360
80#define XN_480P_X_RES 864
81#define XN_480P_Y_RES 480
82#define XN_576P_X_RES 1024
83#define XN_576P_Y_RES 576
84#define XN_DV_X_RES 960
85#define XN_DV_Y_RES 720
86
87#endif // HAVE_OPENNI2