ouster_clib
v1.0
C library for Ouster LiDAR
Loading...
Searching...
No Matches
ouster_vec.h
1
9
#ifndef OUSTER_VEC_H
10
#define OUSTER_VEC_H
11
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#define OUSTER_OFFSET(o, offset) (void *)(((uintptr_t)(o)) + ((uintptr_t)(offset)))
18
19
typedef
struct
20
{
21
int
cap;
22
int
count;
23
int
esize;
24
void
*data;
25
}
ouster_vec_t
;
26
27
void
ouster_vec_init(
ouster_vec_t
*v,
int
esize,
int
cap);
28
29
void
ouster_vec_append(
ouster_vec_t
*v,
void
const
*data,
int
n,
float
factor);
30
31
int
test_ouster_vec();
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
// OUSTER_VEC_H
38
ouster_vec_t
Definition:
ouster_vec.h:20