mirror of
https://github.com/opencv/opencv.git
synced 2025-01-10 14:19:03 +08:00
Prepare to transition to standard fixed-size types
This commit is contained in:
parent
be1f3e8a7c
commit
d666245695
@ -13,9 +13,11 @@
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
#include <cstdint>
|
||||||
#else
|
#else
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! @name Data types
|
//! @name Data types
|
||||||
@ -29,43 +31,19 @@
|
|||||||
//! - int64 - signed 8 byte integer
|
//! - int64 - signed 8 byte integer
|
||||||
//! - uint64 - unsigned 8 byte integer
|
//! - uint64 - unsigned 8 byte integer
|
||||||
//! @{
|
//! @{
|
||||||
#if !defined _MSC_VER && !defined __BORLANDC__
|
typedef int8_t schar;
|
||||||
# if defined __cplusplus && __cplusplus >= 201103L && !defined __APPLE__
|
typedef uint8_t uchar;
|
||||||
# include <cstdint>
|
typedef uint16_t ushort;
|
||||||
# ifdef __NEWLIB__
|
typedef uint32_t uint;
|
||||||
typedef unsigned int uint;
|
typedef int64_t int64;
|
||||||
# else
|
typedef uint64_t uint64;
|
||||||
typedef std::uint32_t uint;
|
|
||||||
# endif
|
|
||||||
# else
|
|
||||||
# include <stdint.h>
|
|
||||||
typedef uint32_t uint;
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
typedef unsigned uint;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef signed char schar;
|
#define CV_BIG_INT(n) n##LL
|
||||||
|
#define CV_BIG_UINT(n) n##ULL
|
||||||
|
|
||||||
#ifndef __IPL_H__
|
typedef int16_t cv_hal_f16;
|
||||||
typedef unsigned char uchar;
|
typedef int16_t cv_hal_bf16;
|
||||||
typedef unsigned short ushort;
|
//! @}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined _MSC_VER || defined __BORLANDC__
|
|
||||||
typedef __int64 int64;
|
|
||||||
typedef unsigned __int64 uint64;
|
|
||||||
# define CV_BIG_INT(n) n##I64
|
|
||||||
# define CV_BIG_UINT(n) n##UI64
|
|
||||||
#else
|
|
||||||
typedef int64_t int64;
|
|
||||||
typedef uint64_t uint64;
|
|
||||||
# define CV_BIG_INT(n) n##LL
|
|
||||||
# define CV_BIG_UINT(n) n##ULL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef short cv_hal_f16;
|
|
||||||
typedef short cv_hal_bf16;
|
|
||||||
|
|
||||||
#define CV_USRTYPE1 (void)"CV_USRTYPE1 support has been dropped in OpenCV 4.0"
|
#define CV_USRTYPE1 (void)"CV_USRTYPE1 support has been dropped in OpenCV 4.0"
|
||||||
|
|
||||||
@ -174,8 +152,6 @@ typedef short cv_hal_bf16;
|
|||||||
#define CV_16BFC4 CV_MAKETYPE(CV_16BF,4)
|
#define CV_16BFC4 CV_MAKETYPE(CV_16BF,4)
|
||||||
#define CV_16BFC(n) CV_MAKETYPE(CV_16BF,(n))
|
#define CV_16BFC(n) CV_MAKETYPE(CV_16BF,(n))
|
||||||
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! @name Comparison operation
|
//! @name Comparison operation
|
||||||
//! @sa cv::CmpTypes
|
//! @sa cv::CmpTypes
|
||||||
//! @{
|
//! @{
|
||||||
|
Loading…
Reference in New Issue
Block a user