Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
openni2
OniEnums.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* *
3
* OpenNI 2.x Alpha *
4
* Copyright (C) 2012 PrimeSense Ltd. *
5
* *
6
* This file is part of OpenNI. *
7
* *
8
* Licensed under the Apache License, Version 2.0 (the "License"); *
9
* you may not use this file except in compliance with the License. *
10
* You may obtain a copy of the License at *
11
* *
12
* http://www.apache.org/licenses/LICENSE-2.0 *
13
* *
14
* Unless required by applicable law or agreed to in writing, software *
15
* distributed under the License is distributed on an "AS IS" BASIS, *
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
17
* See the License for the specific language governing permissions and *
18
* limitations under the License. *
19
* *
20
*****************************************************************************/
21
#ifndef ONIENUMS_H
22
#define ONIENUMS_H
23
24
namespace
openni
25
{
26
28
typedef
enum
29
{
30
STATUS_OK
= 0,
31
STATUS_ERROR
= 1,
32
STATUS_NOT_IMPLEMENTED
= 2,
33
STATUS_NOT_SUPPORTED
= 3,
34
STATUS_BAD_PARAMETER
= 4,
35
STATUS_OUT_OF_FLOW
= 5,
36
STATUS_NO_DEVICE
= 6,
37
STATUS_TIME_OUT
= 102,
38
}
Status
;
39
41
typedef
enum
42
{
43
SENSOR_IR
= 1,
44
SENSOR_COLOR
= 2,
45
SENSOR_DEPTH
= 3,
46
47
}
SensorType
;
48
50
typedef
enum
51
{
52
// Depth
53
PIXEL_FORMAT_DEPTH_1_MM
= 100,
54
PIXEL_FORMAT_DEPTH_100_UM
= 101,
55
PIXEL_FORMAT_SHIFT_9_2
= 102,
56
PIXEL_FORMAT_SHIFT_9_3
= 103,
57
58
// Color
59
PIXEL_FORMAT_RGB888
= 200,
60
PIXEL_FORMAT_YUV422
= 201,
61
PIXEL_FORMAT_GRAY8
= 202,
62
PIXEL_FORMAT_GRAY16
= 203,
63
PIXEL_FORMAT_JPEG
= 204,
64
PIXEL_FORMAT_YUYV
= 205,
65
}
PixelFormat
;
66
67
typedef
enum
68
{
69
DEVICE_STATE_OK
= 0,
70
DEVICE_STATE_ERROR
= 1,
71
DEVICE_STATE_NOT_READY
= 2,
72
DEVICE_STATE_EOF
= 3
73
}
DeviceState
;
74
75
typedef
enum
76
{
77
IMAGE_REGISTRATION_OFF
= 0,
78
IMAGE_REGISTRATION_DEPTH_TO_COLOR
= 1,
79
}
ImageRegistrationMode
;
80
81
typedef
enum
82
{
83
PARAMS_REGISTRATION_OFF
= 0,
84
PARAMS_REGISTRATION_DEPTH_TO_COLOR
= 1,
85
PARAMS_REGISTRATION_USE_DISTORTION
= 2,
86
}
ParamsRegistrationMode
;
87
88
static
const
int
TIMEOUT_NONE
= 0;
89
static
const
int
TIMEOUT_FOREVER
= -1;
90
91
}
// namespace openni
92
93
#endif // ONIENUMS_H
openni::PIXEL_FORMAT_DEPTH_1_MM
Definition:
OniEnums.h:53
openni::DeviceState
DeviceState
Definition:
OniEnums.h:67
openni::STATUS_NOT_SUPPORTED
Definition:
OniEnums.h:33
openni::SENSOR_DEPTH
Definition:
OniEnums.h:45
openni::TIMEOUT_NONE
static const int TIMEOUT_NONE
Definition:
OniEnums.h:88
openni::PixelFormat
PixelFormat
Definition:
OniEnums.h:50
openni::SENSOR_COLOR
Definition:
OniEnums.h:44
openni::PIXEL_FORMAT_YUYV
Definition:
OniEnums.h:64
openni::PIXEL_FORMAT_RGB888
Definition:
OniEnums.h:59
openni::DEVICE_STATE_NOT_READY
Definition:
OniEnums.h:71
openni::PIXEL_FORMAT_SHIFT_9_2
Definition:
OniEnums.h:55
openni::DEVICE_STATE_OK
Definition:
OniEnums.h:69
openni::PIXEL_FORMAT_SHIFT_9_3
Definition:
OniEnums.h:56
openni::SensorType
SensorType
Definition:
OniEnums.h:41
openni::PIXEL_FORMAT_JPEG
Definition:
OniEnums.h:63
openni::STATUS_TIME_OUT
Definition:
OniEnums.h:37
openni::SENSOR_IR
Definition:
OniEnums.h:43
openni::PARAMS_REGISTRATION_USE_DISTORTION
Definition:
OniEnums.h:85
openni::STATUS_ERROR
Definition:
OniEnums.h:31
openni::Status
Status
Definition:
OniEnums.h:28
openni::ImageRegistrationMode
ImageRegistrationMode
Definition:
OniEnums.h:75
openni::PIXEL_FORMAT_GRAY16
Definition:
OniEnums.h:62
openni::STATUS_OUT_OF_FLOW
Definition:
OniEnums.h:35
openni::PIXEL_FORMAT_YUV422
Definition:
OniEnums.h:60
openni::STATUS_NOT_IMPLEMENTED
Definition:
OniEnums.h:32
openni::IMAGE_REGISTRATION_DEPTH_TO_COLOR
Definition:
OniEnums.h:78
openni::STATUS_NO_DEVICE
Definition:
OniEnums.h:36
openni::PARAMS_REGISTRATION_OFF
Definition:
OniEnums.h:83
openni
Definition:
astra_device.h:53
openni::DEVICE_STATE_EOF
Definition:
OniEnums.h:72
openni::PARAMS_REGISTRATION_DEPTH_TO_COLOR
Definition:
OniEnums.h:84
openni::IMAGE_REGISTRATION_OFF
Definition:
OniEnums.h:77
openni::TIMEOUT_FOREVER
static const int TIMEOUT_FOREVER
Definition:
OniEnums.h:89
openni::ParamsRegistrationMode
ParamsRegistrationMode
Definition:
OniEnums.h:81
openni::PIXEL_FORMAT_DEPTH_100_UM
Definition:
OniEnums.h:54
openni::PIXEL_FORMAT_GRAY8
Definition:
OniEnums.h:61
openni::DEVICE_STATE_ERROR
Definition:
OniEnums.h:70
openni::STATUS_OK
Definition:
OniEnums.h:30
openni::STATUS_BAD_PARAMETER
Definition:
OniEnums.h:34
astra_camera
Author(s): Tim Liu
autogenerated on Wed Dec 16 2020 03:54:34