OniDriverTypes.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_DRIVER_TYPES_H_
22 #define _ONI_DRIVER_TYPES_H_
23 
24 #include <OniCTypes.h>
25 #include <stdarg.h>
26 
27 #define ONI_STREAM_PROPERTY_PRIVATE_BASE XN_MAX_UINT16
28 
29 typedef struct
30 {
31  int dataSize;
32  void* data;
34 
37 {
39  void (ONI_CALLBACK_TYPE* errorLoggerAppend)(void* driverServices, const char* format, va_list args);
40  void (ONI_CALLBACK_TYPE* errorLoggerClear)(void* driverServices);
41  void (ONI_CALLBACK_TYPE* log)(void* driverServices, int severity, const char* file, int line, const char* mask, const char* message);
42 };
43 
45 {
47  int (ONI_CALLBACK_TYPE* getDefaultRequiredFrameSize)(void* streamServices);
48  OniFrame* (ONI_CALLBACK_TYPE* acquireFrame)(void* streamServices); // returns a frame with size corresponding to getRequiredFrameSize()
49  void (ONI_CALLBACK_TYPE* addFrameRef)(void* streamServices, OniFrame* pframe);
50  void (ONI_CALLBACK_TYPE* releaseFrame)(void* streamServices, OniFrame* pframe);
51 };
52 
53 
54 #endif // _ONI_DRIVER_TYPES_H_
int const char * file
const char * format
void(ONI_CALLBACK_TYPE *errorLoggerAppend)(void *driverServices
const char va_list args
int const char int const char * mask
int const char int const char const char * message
#define ONI_CALLBACK_TYPE
int const char int line


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42