-
Notifications
You must be signed in to change notification settings - Fork 7
/
wrapper.h
46 lines (41 loc) · 957 Bytes
/
wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifdef _WIN32
#include <cstdint>
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef _WIN32
#ifdef MODULE_API_EXPORTS
#define MODULE_API __declspec(dllexport)
#else
#define MODULE_API __declspec(dllimport)
#endif
#else
#define MODULE_API
#endif
struct PixelDataInternal
{
char *buffer;
u_int32_t status;
size_t size;
};
MODULE_API PixelDataInternal c_decode_frames(
char **, // i_buffer_ptrs
size_t *, // i_buffer_lens
size_t, // i_buffer_len
u_int32_t[3], // dims
u_int32_t, // pi_type
u_int32_t, // ts_type
u_int16_t, // samples_per_pixel
u_int16_t, // bits_allocated
u_int16_t, // bits_stored
u_int16_t, // high_bit
u_int16_t // pixel_representation
);
MODULE_API void c_free_buffer(char *);
#ifdef __cplusplus
}
#endif