Astra SDK  v2.1.3
astra_ctypes.h
1 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
2 // Copyright (c) 2015-2017 Orbbec 3D
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // Be excellent to each other.
17 #ifndef ASTRA_CTYPES_H
18 #define ASTRA_CTYPES_H
19 
20 #include <stdint.h>
21 
22 typedef struct {
23  int32_t x;
24  int32_t y;
26 
27 typedef struct {
28  float x;
29  float y;
31 
32 typedef struct {
33  float x;
34  float y;
35  float z;
37 
38 typedef struct {
39  int32_t x;
40  int32_t y;
41  int32_t z;
43 
44 typedef struct {
45  int32_t pid;
46  int32_t vid;
48 
50 typedef struct _astra_matrix3x3 {
51  union {
52  struct {
53  astra_vector3f_t xAxis;
54  astra_vector3f_t yAxis;
55  astra_vector3f_t zAxis;
56  };
57  // TODO: is this notation correct or reversed?
58  struct {
59  float m00, m10, m20;
60  float m01, m11, m21;
61  float m02, m12, m22;
62  };
63  };
65 
66 enum astra_core_stream_types {
67  ASTRA_STREAM_DEPTH = 1,
68  ASTRA_STREAM_COLOR = 2,
69  ASTRA_STREAM_INFRARED = 3,
70  ASTRA_STREAM_HAND = 4,
71  ASTRA_STREAM_BODY = 5,
72  ASTRA_STREAM_STYLIZED_DEPTH = 6,
73  ASTRA_STREAM_POINT = 7,
74  ASTRA_STREAM_MASKED_COLOR = 8,
75  ASTRA_STREAM_COLORIZED_BODY = 9,
76  ASTRA_STREAM_DEBUG_HAND = 3001,
77 };
78 
79 #endif /* ASTRA_CTYPES_H */
Represents a 3x3 rotation matrix
Definition: astra_ctypes.h:50
Definition: astra_ctypes.h:44
Definition: astra_ctypes.h:27
Definition: astra_ctypes.h:22
Definition: astra_ctypes.h:32
Definition: astra_ctypes.h:38