OniCTypes.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 ONICTYPES_H
22 #define ONICTYPES_H
23 
24 #include "OniPlatform.h"
25 #include "OniCEnums.h"
26 
28 typedef int OniBool;
29 
30 #ifndef TRUE
31 #define TRUE 1
32 #endif //TRUE
33 #ifndef FALSE
34 #define FALSE 0
35 #endif //FALSE
36 
37 #define ONI_MAX_STR 256
38 #define ONI_MAX_SENSORS 10
39 
40 struct OniCallbackHandleImpl;
41 typedef struct OniCallbackHandleImpl* OniCallbackHandle;
42 
44 typedef struct
45 {
47  int major;
49  int minor;
53  int build;
54 } OniVersion;
55 
56 typedef int OniHardwareVersion;
57 
59 typedef struct
60 {
64  int fps;
65 } OniVideoMode;
66 
68 typedef struct
69 {
74 
76 typedef struct
77 {
78  char uri[ONI_MAX_STR];
79  char vendor[ONI_MAX_STR];
80  char name[ONI_MAX_STR];
84 
85 typedef struct OBCameraParams
86 {
87  float l_intr_p[4];//[fx,fy,cx,cy]
88  float r_intr_p[4];//[fx,fy,cx,cy]
89  float r2l_r[9];//[r00,r01,r02;r10,r11,r12;r20,r21,r22]
90  float r2l_t[3];//[t1,t2,t3]
91  float l_k[5];//[k1,k2,p1,p2,k3]
92  float r_k[5];
93  //int is_mirror;
95 
96 struct _OniDevice;
97 typedef struct _OniDevice* OniDeviceHandle;
98 
99 struct _OniStream;
100 typedef struct _OniStream* OniStreamHandle;
101 
102 struct _OniRecorder;
103 typedef struct _OniRecorder* OniRecorderHandle;
104 
106 typedef struct
107 {
108  int dataSize;
109  void* data;
110 
114 
115  int width;
116  int height;
117 
122 
123  int stride;
124 } OniFrame;
125 
130 
131 typedef void* (ONI_CALLBACK_TYPE* OniFrameAllocBufferCallback)(int size, void* pCookie);
133 
134 typedef struct
135 {
140 
141 typedef struct
142 {
143  int enabled;
144  int originX;
145  int originY;
146  int width;
147  int height;
148 } OniCropping;
149 
150 // Pixel types
156 
161 
166 
167 #pragma pack (push, 1)
168 
170 typedef struct
171 {
172  /* Red value of this pixel. */
174  /* Green value of this pixel. */
176  /* Blue value of this pixel. */
179 
185 typedef struct
186 {
196 
202 typedef struct
203 {
213 
214 #pragma pack (pop)
215 
216 typedef struct
217 {
220 } OniSeek;
221 
222 #endif // ONICTYPES_H
OniCropping::originX
int originX
Definition: OniCTypes.h:144
OniDeviceCallbacks
Definition: OniCTypes.h:134
OniYUYVDoublePixel::u
uint8_t u
Definition: OniCTypes.h:207
OBCameraParams::l_intr_p
float l_intr_p[4]
Definition: OniCTypes.h:87
OniFrame::croppingEnabled
OniBool croppingEnabled
Definition: OniCTypes.h:119
OniVersion
Definition: OniCTypes.h:44
OniYUYVDoublePixel
Definition: OniCTypes.h:202
OniCallbackHandle
struct OniCallbackHandleImpl * OniCallbackHandle
Definition: OniCTypes.h:41
OniRGB888Pixel
Definition: OniCTypes.h:170
OniDeviceState
OniDeviceState
Definition: OniCEnums.h:64
OniRGB888Pixel::b
uint8_t b
Definition: OniCTypes.h:177
OBCameraParams::r_k
float r_k[5]
Definition: OniCTypes.h:92
OniPlatform.h
OniYUV422DoublePixel
Definition: OniCTypes.h:185
OniFrame::sensorType
OniSensorType sensorType
Definition: OniCTypes.h:111
OniFrame::dataSize
int dataSize
Definition: OniCTypes.h:108
OniSensorType
OniSensorType
Definition: OniCEnums.h:38
OniVideoMode::fps
int fps
Definition: OniCTypes.h:64
OniVideoMode::resolutionY
int resolutionY
Definition: OniCTypes.h:63
OniDeviceInfoCallback
void(ONI_CALLBACK_TYPE * OniDeviceInfoCallback)(const OniDeviceInfo *pInfo, void *pCookie)
Definition: OniCTypes.h:128
OniFrame::timestamp
uint64_t timestamp
Definition: OniCTypes.h:112
OniFrameAllocBufferCallback
void *(ONI_CALLBACK_TYPE * OniFrameAllocBufferCallback)(int size, void *pCookie)
Definition: OniCTypes.h:131
OniVideoMode::pixelFormat
OniPixelFormat pixelFormat
Definition: OniCTypes.h:61
OniSeek
Definition: OniCTypes.h:216
OniSeek::stream
OniStreamHandle stream
Definition: OniCTypes.h:219
OniYUYVDoublePixel::y2
uint8_t y2
Definition: OniCTypes.h:209
OniCEnums.h
OniYUYVDoublePixel::y1
uint8_t y1
Definition: OniCTypes.h:205
OniYUV422DoublePixel::v
uint8_t v
Definition: OniCTypes.h:192
OniVersion::minor
int minor
Definition: OniCTypes.h:49
OniFrame::frameIndex
int frameIndex
Definition: OniCTypes.h:113
OniPixelFormat
OniPixelFormat
Definition: OniCEnums.h:47
OniVideoMode::resolutionX
int resolutionX
Definition: OniCTypes.h:62
OniDeviceCallbacks::deviceDisconnected
OniDeviceInfoCallback deviceDisconnected
Definition: OniCTypes.h:137
OniGeneralCallback
void(ONI_CALLBACK_TYPE * OniGeneralCallback)(void *pCookie)
Definition: OniCTypes.h:127
uint8_t
unsigned char uint8_t
Definition: OniPlatformWin32.h:65
OniVideoMode
Definition: OniCTypes.h:59
OniFrame::cropOriginY
int cropOriginY
Definition: OniCTypes.h:121
OniDeviceCallbacks::deviceStateChanged
OniDeviceStateCallback deviceStateChanged
Definition: OniCTypes.h:138
uint16_t
unsigned short uint16_t
Definition: OniPlatformWin32.h:66
OniHardwareVersion
int OniHardwareVersion
Definition: OniCTypes.h:56
OniCropping
Definition: OniCTypes.h:141
OniYUV422DoublePixel::u
uint8_t u
Definition: OniCTypes.h:188
OniFrame::stride
int stride
Definition: OniCTypes.h:123
OniVersion::maintenance
int maintenance
Definition: OniCTypes.h:51
OniFrame::videoMode
OniVideoMode videoMode
Definition: OniCTypes.h:118
OniFrameFreeBufferCallback
void(ONI_CALLBACK_TYPE * OniFrameFreeBufferCallback)(void *data, void *pCookie)
Definition: OniCTypes.h:132
OniCropping::height
int height
Definition: OniCTypes.h:147
OBCameraParams::r2l_t
float r2l_t[3]
Definition: OniCTypes.h:90
OniIRPixel
uint16_t OniIRPixel
Definition: OniCTypes.h:155
OniRGB888Pixel::r
uint8_t r
Definition: OniCTypes.h:173
OniRGB888Pixel::g
uint8_t g
Definition: OniCTypes.h:175
OniFrame::height
int height
Definition: OniCTypes.h:116
OniFrame::data
void * data
Definition: OniCTypes.h:109
OBCameraParams::l_k
float l_k[5]
Definition: OniCTypes.h:91
OniDeviceInfo
Definition: OniCTypes.h:76
OniVersion::major
int major
Definition: OniCTypes.h:47
OniFrame::width
int width
Definition: OniCTypes.h:115
OniCropping::enabled
int enabled
Definition: OniCTypes.h:143
OniDeviceInfo::usbProductId
uint16_t usbProductId
Definition: OniCTypes.h:82
OniVersion::build
int build
Definition: OniCTypes.h:53
OniYUV422DoublePixel::y2
uint8_t y2
Definition: OniCTypes.h:194
OniDepthPixel
uint16_t OniDepthPixel
Definition: OniCTypes.h:154
OniDeviceHandle
struct _OniDevice * OniDeviceHandle
Definition: OniCTypes.h:97
OniYUYVDoublePixel::v
uint8_t v
Definition: OniCTypes.h:211
OniNewFrameCallback
void(ONI_CALLBACK_TYPE * OniNewFrameCallback)(OniStreamHandle stream, void *pCookie)
Definition: OniCTypes.h:126
uint64_t
unsigned __int64 uint64_t
Definition: OniPlatformWin32.h:68
OniSensorInfo::sensorType
OniSensorType sensorType
Definition: OniCTypes.h:70
ONI_MAX_STR
#define ONI_MAX_STR
Definition: OniCTypes.h:37
OniSensorInfo
Definition: OniCTypes.h:68
OniGrayscale16Pixel
uint16_t OniGrayscale16Pixel
Definition: OniCTypes.h:160
OniRecorderHandle
struct _OniRecorder * OniRecorderHandle
Definition: OniCTypes.h:103
OniYUV422DoublePixel::y1
uint8_t y1
Definition: OniCTypes.h:190
OniBool
int OniBool
Definition: OniCTypes.h:28
OniDeviceInfo::usbVendorId
uint16_t usbVendorId
Definition: OniCTypes.h:81
oni::driver::void
typedef void(ONI_CALLBACK_TYPE *DeviceConnectedCallback)(const OniDeviceInfo *
oni::driver::pCookie
void * pCookie
Definition: OniDriverAPI.h:73
OniCropping::width
int width
Definition: OniCTypes.h:146
OniFrame::cropOriginX
int cropOriginX
Definition: OniCTypes.h:120
OniDeviceCallbacks::deviceConnected
OniDeviceInfoCallback deviceConnected
Definition: OniCTypes.h:136
OniStreamHandle
struct _OniStream * OniStreamHandle
Definition: OniCTypes.h:100
OniCropping::originY
int originY
Definition: OniCTypes.h:145
OBCameraParams
struct OBCameraParams OBCameraParams
ONI_CALLBACK_TYPE
#define ONI_CALLBACK_TYPE
Definition: OniPlatformLinux-x86.h:74
OBCameraParams::r2l_r
float r2l_r[9]
Definition: OniCTypes.h:89
OBCameraParams::r_intr_p
float r_intr_p[4]
Definition: OniCTypes.h:88
OniSeek::frameIndex
int frameIndex
Definition: OniCTypes.h:218
OniFrame
Definition: OniCTypes.h:106
OniSensorInfo::numSupportedVideoModes
int numSupportedVideoModes
Definition: OniCTypes.h:71
OBCameraParams
Definition: OniCTypes.h:85
OniGrayscale8Pixel
uint8_t OniGrayscale8Pixel
Definition: OniCTypes.h:165
OniSensorInfo::pSupportedVideoModes
OniVideoMode * pSupportedVideoModes
Definition: OniCTypes.h:72
OniDeviceStateCallback
void(ONI_CALLBACK_TYPE * OniDeviceStateCallback)(const OniDeviceInfo *pInfo, OniDeviceState deviceState, void *pCookie)
Definition: OniCTypes.h:129


ros_astra_camera
Author(s): Tim Liu
autogenerated on Wed Mar 2 2022 00:52:57