Commit | Line | Data |
---|---|---|
80f575fc DM |
1 | |
2 | /* autogenerated from motiondetectorc.orc */ | |
3 | ||
4 | #ifndef _MOTIONDETECTORC_H_ | |
5 | #define _MOTIONDETECTORC_H_ | |
6 | ||
7 | ||
8 | #ifdef __cplusplus | |
9 | extern "C" { | |
10 | #endif | |
11 | ||
12 | ||
13 | ||
14 | #ifndef _ORC_INTEGER_TYPEDEFS_ | |
15 | #define _ORC_INTEGER_TYPEDEFS_ | |
16 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | |
17 | #include <stdint.h> | |
18 | typedef int8_t orc_int8; | |
19 | typedef int16_t orc_int16; | |
20 | typedef int32_t orc_int32; | |
21 | typedef int64_t orc_int64; | |
22 | typedef uint8_t orc_uint8; | |
23 | typedef uint16_t orc_uint16; | |
24 | typedef uint32_t orc_uint32; | |
25 | typedef uint64_t orc_uint64; | |
26 | #define ORC_UINT64_C(x) UINT64_C(x) | |
27 | #elif defined(_MSC_VER) | |
28 | typedef signed __int8 orc_int8; | |
29 | typedef signed __int16 orc_int16; | |
30 | typedef signed __int32 orc_int32; | |
31 | typedef signed __int64 orc_int64; | |
32 | typedef unsigned __int8 orc_uint8; | |
33 | typedef unsigned __int16 orc_uint16; | |
34 | typedef unsigned __int32 orc_uint32; | |
35 | typedef unsigned __int64 orc_uint64; | |
36 | #define ORC_UINT64_C(x) (x##Ui64) | |
37 | #define inline __inline | |
38 | #else | |
39 | #include <limits.h> | |
40 | typedef signed char orc_int8; | |
41 | typedef short orc_int16; | |
42 | typedef int orc_int32; | |
43 | typedef unsigned char orc_uint8; | |
44 | typedef unsigned short orc_uint16; | |
45 | typedef unsigned int orc_uint32; | |
46 | #if INT_MAX == LONG_MAX | |
47 | typedef long long orc_int64; | |
48 | typedef unsigned long long orc_uint64; | |
49 | #define ORC_UINT64_C(x) (x##ULL) | |
50 | #else | |
51 | typedef long orc_int64; | |
52 | typedef unsigned long orc_uint64; | |
53 | #define ORC_UINT64_C(x) (x##UL) | |
54 | #endif | |
55 | #endif | |
56 | typedef union { orc_int16 i; orc_int8 x2[2]; } orc_union16; | |
57 | typedef union { orc_int32 i; float f; orc_int16 x2[2]; orc_int8 x4[4]; } orc_union32; | |
58 | typedef union { orc_int64 i; double f; orc_int32 x2[2]; float x2f[2]; orc_int16 x4[4]; } orc_union64; | |
59 | #endif | |
60 | #ifndef ORC_RESTRICT | |
61 | #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | |
62 | #define ORC_RESTRICT restrict | |
63 | #elif defined(__GNUC__) && __GNUC__ >= 4 | |
64 | #define ORC_RESTRICT __restrict__ | |
65 | #else | |
66 | #define ORC_RESTRICT | |
67 | #endif | |
68 | #endif | |
69 | void image_difference_optimized (orc_uint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, const orc_uint8 * ORC_RESTRICT s2, int s2_stride, int n, int m); | |
70 | void image_line_difference_optimized (orc_uint32 * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, const orc_uint8 * ORC_RESTRICT s2, int n); | |
71 | void image_sum_optimized (int * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int n, int m); | |
72 | void image_variance_optimized (int * ORC_RESTRICT a1, const orc_uint8 * ORC_RESTRICT s1, int s1_stride, int p2, int n, int m); | |
73 | ||
74 | #ifdef __cplusplus | |
75 | } | |
76 | #endif | |
77 | ||
78 | #endif | |
79 |