OpenNI 2.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
Include
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 _ONI_ENUMS_H_
22
#define _ONI_ENUMS_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
}
PixelFormat
;
65
66
typedef
enum
67
{
68
DEVICE_STATE_OK
= 0,
69
DEVICE_STATE_ERROR
= 1,
70
DEVICE_STATE_NOT_READY
= 2,
71
DEVICE_STATE_EOF
= 3
72
}
DeviceState
;
73
74
typedef
enum
75
{
76
IMAGE_REGISTRATION_OFF
= 0,
77
IMAGE_REGISTRATION_DEPTH_TO_COLOR
= 1,
78
}
ImageRegistrationMode
;
79
80
static
const
int
TIMEOUT_NONE
= 0;
81
static
const
int
TIMEOUT_FOREVER
= -1;
82
83
}
// namespace openni
84
85
#endif // _ONI_ENUMS_H_
Generated on Wed Aug 21 2013 01:41:56 for OpenNI 2.0 by
1.8.3.1