OpenNI 2.0
|
OniEnums.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 _ONI_ENUMS_H_ 00022 #define _ONI_ENUMS_H_ 00023 00024 namespace openni 00025 { 00026 00028 typedef enum 00029 { 00030 STATUS_OK = 0, 00031 STATUS_ERROR = 1, 00032 STATUS_NOT_IMPLEMENTED = 2, 00033 STATUS_NOT_SUPPORTED = 3, 00034 STATUS_BAD_PARAMETER = 4, 00035 STATUS_OUT_OF_FLOW = 5, 00036 STATUS_NO_DEVICE = 6, 00037 STATUS_TIME_OUT = 102, 00038 } Status; 00039 00041 typedef enum 00042 { 00043 SENSOR_IR = 1, 00044 SENSOR_COLOR = 2, 00045 SENSOR_DEPTH = 3, 00046 00047 } SensorType; 00048 00050 typedef enum 00051 { 00052 // Depth 00053 PIXEL_FORMAT_DEPTH_1_MM = 100, 00054 PIXEL_FORMAT_DEPTH_100_UM = 101, 00055 PIXEL_FORMAT_SHIFT_9_2 = 102, 00056 PIXEL_FORMAT_SHIFT_9_3 = 103, 00057 00058 // Color 00059 PIXEL_FORMAT_RGB888 = 200, 00060 PIXEL_FORMAT_YUV422 = 201, 00061 PIXEL_FORMAT_GRAY8 = 202, 00062 PIXEL_FORMAT_GRAY16 = 203, 00063 PIXEL_FORMAT_JPEG = 204, 00064 PIXEL_FORMAT_YUYV = 205, 00065 } PixelFormat; 00066 00067 typedef enum 00068 { 00069 DEVICE_STATE_OK = 0, 00070 DEVICE_STATE_ERROR = 1, 00071 DEVICE_STATE_NOT_READY = 2, 00072 DEVICE_STATE_EOF = 3 00073 } DeviceState; 00074 00075 typedef enum 00076 { 00077 IMAGE_REGISTRATION_OFF = 0, 00078 IMAGE_REGISTRATION_DEPTH_TO_COLOR = 1, 00079 } ImageRegistrationMode; 00080 00081 static const int TIMEOUT_NONE = 0; 00082 static const int TIMEOUT_FOREVER = -1; 00083 00084 } // namespace openni 00085 00086 #endif // _ONI_ENUMS_H_
Generated on Tue Nov 12 2013 16:10:45 for OpenNI 2.0 by 1.7.5.1