Main Page
Namespaces
Classes
Files
File List
File Members
OpenNI2-FreenectDriver
extern
OpenNI-Linux-x64-2.2.0.33
Include
Driver
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
;
33
}
OniGeneralBuffer
;
34
36
struct
OniDriverServices
37
{
38
void
*
driverServices
;
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
44
struct
OniStreamServices
45
{
46
void
*
streamServices
;
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_
OniDriverServices::file
int const char * file
Definition:
OniDriverTypes.h:41
OniGeneralBuffer::dataSize
int dataSize
Definition:
OniDriverTypes.h:31
OniCTypes.h
OniDriverServices::format
const char * format
Definition:
OniDriverTypes.h:39
OniDriverServices::severity
int severity
Definition:
OniDriverTypes.h:41
OniDriverServices::void
void(ONI_CALLBACK_TYPE *errorLoggerAppend)(void *driverServices
OniDriverServices::args
const char va_list args
Definition:
OniDriverTypes.h:39
OniStreamServices::streamServices
void * streamServices
Definition:
OniDriverTypes.h:46
OniDriverServices::driverServices
void * driverServices
Definition:
OniDriverTypes.h:38
OniStreamServices::pframe
OniFrame * pframe
Definition:
OniDriverTypes.h:49
OniDriverServices::mask
int const char int const char * mask
Definition:
OniDriverTypes.h:41
OniStreamServices
Definition:
OniDriverTypes.h:44
OniGeneralBuffer::data
void * data
Definition:
OniDriverTypes.h:32
OniDriverServices::message
int const char int const char const char * message
Definition:
OniDriverTypes.h:41
ONI_CALLBACK_TYPE
#define ONI_CALLBACK_TYPE
Definition:
OniPlatformLinux-x86.h:74
OniGeneralBuffer
Definition:
OniDriverTypes.h:29
OniFrame
Definition:
OniCTypes.h:95
OniDriverServices::line
int const char int line
Definition:
OniDriverTypes.h:41
OniDriverServices
Definition:
OniDriverTypes.h:36
libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:38