mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #12570 from alalek:drop_usrtype1
* core: drop usage of CV_USRTYPE1 in OpenCV avoid OpenCV crashes due size change CV_ELEM_SIZE(CV_USRTYPE1): 8 -> 2 * ! fix persistence internal types
This commit is contained in:
committed by
GitHub
parent
861415133e
commit
5fb0f34e8a
@@ -64,6 +64,8 @@ typedef signed char schar;
|
||||
# define CV_BIG_UINT(n) n##ULL
|
||||
#endif
|
||||
|
||||
#define CV_USRTYPE1 (void)"CV_USRTYPE1 support has been dropped in OpenCV 4.0"
|
||||
|
||||
#define CV_CN_MAX 512
|
||||
#define CV_CN_SHIFT 3
|
||||
#define CV_DEPTH_MAX (1 << CV_CN_SHIFT)
|
||||
@@ -75,7 +77,6 @@ typedef signed char schar;
|
||||
#define CV_32S 4
|
||||
#define CV_32F 5
|
||||
#define CV_64F 6
|
||||
#define CV_USRTYPE1 7
|
||||
#define CV_16F 7
|
||||
|
||||
#define CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1)
|
||||
|
||||
@@ -1705,7 +1705,7 @@ typedef CvContour CvPoint2DSeq;
|
||||
#define CV_SEQ_ELTYPE_POINT CV_32SC2 /**< (x,y) */
|
||||
#define CV_SEQ_ELTYPE_CODE CV_8UC1 /**< freeman code: 0..7 */
|
||||
#define CV_SEQ_ELTYPE_GENERIC 0
|
||||
#define CV_SEQ_ELTYPE_PTR CV_USRTYPE1
|
||||
#define CV_SEQ_ELTYPE_PTR CV_MAKE_TYPE(CV_8U, 8 /*sizeof(void*)*/)
|
||||
#define CV_SEQ_ELTYPE_PPOINT CV_SEQ_ELTYPE_PTR /**< &(x,y) */
|
||||
#define CV_SEQ_ELTYPE_INDEX CV_32SC1 /**< #(x,y) */
|
||||
#define CV_SEQ_ELTYPE_GRAPH_EDGE 0 /**< &next_o, &next_d, &vtx_o, &vtx_d */
|
||||
|
||||
Reference in New Issue
Block a user