OniCEnums.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002 *                                                                            *
00003 *  OpenNI 2.x Alpha                                                          *
00004 *  Copyright (C) 2012 PrimeSense Ltd.                                        *
00005 *                                                                            *
00006 *  This file is part of OpenNI.                                              *
00007 *                                                                            *
00008 *  Licensed under the Apache License, Version 2.0 (the "License");           *
00009 *  you may not use this file except in compliance with the License.          *
00010 *  You may obtain a copy of the License at                                   *
00011 *                                                                            *
00012 *      http://www.apache.org/licenses/LICENSE-2.0                            *
00013 *                                                                            *
00014 *  Unless required by applicable law or agreed to in writing, software       *
00015 *  distributed under the License is distributed on an "AS IS" BASIS,         *
00016 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
00017 *  See the License for the specific language governing permissions and       *
00018 *  limitations under the License.                                            *
00019 *                                                                            *
00020 *****************************************************************************/
00021 #ifndef ONICENUMS_H
00022 #define ONICENUMS_H
00023 
00025 typedef enum
00026 {
00027         ONI_STATUS_OK = 0,
00028         ONI_STATUS_ERROR = 1,
00029         ONI_STATUS_NOT_IMPLEMENTED = 2,
00030         ONI_STATUS_NOT_SUPPORTED = 3,
00031         ONI_STATUS_BAD_PARAMETER = 4,
00032         ONI_STATUS_OUT_OF_FLOW = 5,
00033         ONI_STATUS_NO_DEVICE = 6,
00034         ONI_STATUS_TIME_OUT = 102,
00035 } OniStatus;
00036 
00038 typedef enum
00039 {
00040         ONI_SENSOR_IR = 1,
00041         ONI_SENSOR_COLOR = 2,
00042         ONI_SENSOR_DEPTH = 3,
00043 
00044 } OniSensorType;
00045 
00047 typedef enum
00048 {
00049         // Depth
00050         ONI_PIXEL_FORMAT_DEPTH_1_MM = 100,
00051         ONI_PIXEL_FORMAT_DEPTH_100_UM = 101,
00052         ONI_PIXEL_FORMAT_SHIFT_9_2 = 102,
00053         ONI_PIXEL_FORMAT_SHIFT_9_3 = 103,
00054 
00055         // Color
00056         ONI_PIXEL_FORMAT_RGB888 = 200,
00057         ONI_PIXEL_FORMAT_YUV422 = 201,
00058         ONI_PIXEL_FORMAT_GRAY8 = 202,
00059         ONI_PIXEL_FORMAT_GRAY16 = 203,
00060         ONI_PIXEL_FORMAT_JPEG = 204,
00061         ONI_PIXEL_FORMAT_YUYV = 205,
00062 } OniPixelFormat;
00063 
00064 typedef enum
00065 {
00066         ONI_DEVICE_STATE_OK             = 0,
00067         ONI_DEVICE_STATE_ERROR          = 1,
00068         ONI_DEVICE_STATE_NOT_READY      = 2,
00069         ONI_DEVICE_STATE_EOF            = 3
00070 } OniDeviceState;
00071 
00072 typedef enum
00073 {
00074         ONI_IMAGE_REGISTRATION_OFF                              = 0,
00075         ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR   = 1,
00076 } OniImageRegistrationMode;
00077 
00078 enum
00079 {
00080         ONI_TIMEOUT_NONE = 0,
00081         ONI_TIMEOUT_FOREVER = -1,
00082 };
00083 
00084 #endif // ONICENUMS_H


astra_camera
Author(s): Tim Liu
autogenerated on Wed Jul 10 2019 03:18:54