Joe Verbout
/
main
opencv on mbed
opencv2/core/hal/interface.h@0:ea44dc9ed014, 2016-03-31 (annotated)
- Committer:
- joeverbout
- Date:
- Thu Mar 31 21:16:38 2016 +0000
- Revision:
- 0:ea44dc9ed014
OpenCV on mbed attempt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joeverbout | 0:ea44dc9ed014 | 1 | #ifndef _HAL_INTERFACE_HPP_INCLUDED_ |
joeverbout | 0:ea44dc9ed014 | 2 | #define _HAL_INTERFACE_HPP_INCLUDED_ |
joeverbout | 0:ea44dc9ed014 | 3 | |
joeverbout | 0:ea44dc9ed014 | 4 | //! @addtogroup core_hal_interface |
joeverbout | 0:ea44dc9ed014 | 5 | //! @{ |
joeverbout | 0:ea44dc9ed014 | 6 | |
joeverbout | 0:ea44dc9ed014 | 7 | #define CV_HAL_ERROR_OK 0 |
joeverbout | 0:ea44dc9ed014 | 8 | #define CV_HAL_ERROR_NOT_IMPLEMENTED 1 |
joeverbout | 0:ea44dc9ed014 | 9 | #define CV_HAL_ERROR_UNKNOWN -1 |
joeverbout | 0:ea44dc9ed014 | 10 | |
joeverbout | 0:ea44dc9ed014 | 11 | #define CV_HAL_CMP_EQ 0 |
joeverbout | 0:ea44dc9ed014 | 12 | #define CV_HAL_CMP_GT 1 |
joeverbout | 0:ea44dc9ed014 | 13 | #define CV_HAL_CMP_GE 2 |
joeverbout | 0:ea44dc9ed014 | 14 | #define CV_HAL_CMP_LT 3 |
joeverbout | 0:ea44dc9ed014 | 15 | #define CV_HAL_CMP_LE 4 |
joeverbout | 0:ea44dc9ed014 | 16 | #define CV_HAL_CMP_NE 5 |
joeverbout | 0:ea44dc9ed014 | 17 | |
joeverbout | 0:ea44dc9ed014 | 18 | #ifdef __cplusplus |
joeverbout | 0:ea44dc9ed014 | 19 | #include <cstddef> |
joeverbout | 0:ea44dc9ed014 | 20 | #else |
joeverbout | 0:ea44dc9ed014 | 21 | #include <stddef.h> |
joeverbout | 0:ea44dc9ed014 | 22 | #endif |
joeverbout | 0:ea44dc9ed014 | 23 | |
joeverbout | 0:ea44dc9ed014 | 24 | /* primitive types */ |
joeverbout | 0:ea44dc9ed014 | 25 | /* |
joeverbout | 0:ea44dc9ed014 | 26 | schar - signed 1 byte integer |
joeverbout | 0:ea44dc9ed014 | 27 | uchar - unsigned 1 byte integer |
joeverbout | 0:ea44dc9ed014 | 28 | short - signed 2 byte integer |
joeverbout | 0:ea44dc9ed014 | 29 | ushort - unsigned 2 byte integer |
joeverbout | 0:ea44dc9ed014 | 30 | int - signed 4 byte integer |
joeverbout | 0:ea44dc9ed014 | 31 | uint - unsigned 4 byte integer |
joeverbout | 0:ea44dc9ed014 | 32 | int64 - signed 8 byte integer |
joeverbout | 0:ea44dc9ed014 | 33 | uint64 - unsigned 8 byte integer |
joeverbout | 0:ea44dc9ed014 | 34 | */ |
joeverbout | 0:ea44dc9ed014 | 35 | |
joeverbout | 0:ea44dc9ed014 | 36 | #if !defined _MSC_VER && !defined __BORLANDC__ |
joeverbout | 0:ea44dc9ed014 | 37 | # if defined __cplusplus && __cplusplus >= 201103L && !defined __APPLE__ |
joeverbout | 0:ea44dc9ed014 | 38 | # include <cstdint> |
joeverbout | 0:ea44dc9ed014 | 39 | typedef std::uint32_t uint; |
joeverbout | 0:ea44dc9ed014 | 40 | # else |
joeverbout | 0:ea44dc9ed014 | 41 | # include <stdint.h> |
joeverbout | 0:ea44dc9ed014 | 42 | typedef uint32_t uint; |
joeverbout | 0:ea44dc9ed014 | 43 | # endif |
joeverbout | 0:ea44dc9ed014 | 44 | #else |
joeverbout | 0:ea44dc9ed014 | 45 | typedef unsigned uint; |
joeverbout | 0:ea44dc9ed014 | 46 | #endif |
joeverbout | 0:ea44dc9ed014 | 47 | |
joeverbout | 0:ea44dc9ed014 | 48 | typedef signed char schar; |
joeverbout | 0:ea44dc9ed014 | 49 | |
joeverbout | 0:ea44dc9ed014 | 50 | #ifndef __IPL_H__ |
joeverbout | 0:ea44dc9ed014 | 51 | typedef unsigned char uchar; |
joeverbout | 0:ea44dc9ed014 | 52 | typedef unsigned short ushort; |
joeverbout | 0:ea44dc9ed014 | 53 | #endif |
joeverbout | 0:ea44dc9ed014 | 54 | |
joeverbout | 0:ea44dc9ed014 | 55 | #if defined _MSC_VER || defined __BORLANDC__ |
joeverbout | 0:ea44dc9ed014 | 56 | typedef __int64 int64; |
joeverbout | 0:ea44dc9ed014 | 57 | typedef unsigned __int64 uint64; |
joeverbout | 0:ea44dc9ed014 | 58 | # define CV_BIG_INT(n) n##I64 |
joeverbout | 0:ea44dc9ed014 | 59 | # define CV_BIG_UINT(n) n##UI64 |
joeverbout | 0:ea44dc9ed014 | 60 | #else |
joeverbout | 0:ea44dc9ed014 | 61 | typedef int64_t int64; |
joeverbout | 0:ea44dc9ed014 | 62 | typedef uint64_t uint64; |
joeverbout | 0:ea44dc9ed014 | 63 | # define CV_BIG_INT(n) n##LL |
joeverbout | 0:ea44dc9ed014 | 64 | # define CV_BIG_UINT(n) n##ULL |
joeverbout | 0:ea44dc9ed014 | 65 | #endif |
joeverbout | 0:ea44dc9ed014 | 66 | |
joeverbout | 0:ea44dc9ed014 | 67 | //! @} |
joeverbout | 0:ea44dc9ed014 | 68 | |
joeverbout | 0:ea44dc9ed014 | 69 | #endif |
joeverbout | 0:ea44dc9ed014 | 70 |