Commit fd7b058b authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

DataType::generic renamed to DataType::generic_type (ticket #681)

parent 11c0c5bf
...@@ -973,7 +973,7 @@ public: ...@@ -973,7 +973,7 @@ public:
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 1, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 1, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -985,7 +985,7 @@ public: ...@@ -985,7 +985,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -997,7 +997,7 @@ public: ...@@ -997,7 +997,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1009,7 +1009,7 @@ public: ...@@ -1009,7 +1009,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1021,7 +1021,7 @@ public: ...@@ -1021,7 +1021,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1033,7 +1033,7 @@ public: ...@@ -1033,7 +1033,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1045,7 +1045,7 @@ public: ...@@ -1045,7 +1045,7 @@ public:
typedef int work_type; typedef int work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1057,7 +1057,7 @@ public: ...@@ -1057,7 +1057,7 @@ public:
typedef value_type work_type; typedef value_type work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1069,7 +1069,7 @@ public: ...@@ -1069,7 +1069,7 @@ public:
typedef value_type work_type; typedef value_type work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1081,7 +1081,7 @@ public: ...@@ -1081,7 +1081,7 @@ public:
typedef value_type work_type; typedef value_type work_type;
typedef value_type channel_type; typedef value_type channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 1, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 1,
fmt=DataDepth<channel_type>::fmt, fmt=DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1093,7 +1093,7 @@ public: ...@@ -1093,7 +1093,7 @@ public:
typedef Vec<typename DataType<_Tp>::work_type, cn> work_type; typedef Vec<typename DataType<_Tp>::work_type, cn> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
typedef value_type vec_type; typedef value_type vec_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = cn, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = cn,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
}; };
...@@ -1104,7 +1104,7 @@ public: ...@@ -1104,7 +1104,7 @@ public:
typedef std::complex<_Tp> value_type; typedef std::complex<_Tp> value_type;
typedef value_type work_type; typedef value_type work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 2, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 2,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1116,7 +1116,7 @@ public: ...@@ -1116,7 +1116,7 @@ public:
typedef Complex<_Tp> value_type; typedef Complex<_Tp> value_type;
typedef value_type work_type; typedef value_type work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 2, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 2,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1128,7 +1128,7 @@ public: ...@@ -1128,7 +1128,7 @@ public:
typedef Point_<_Tp> value_type; typedef Point_<_Tp> value_type;
typedef Point_<typename DataType<_Tp>::work_type> work_type; typedef Point_<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 2, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 2,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1140,7 +1140,7 @@ public: ...@@ -1140,7 +1140,7 @@ public:
typedef Point3_<_Tp> value_type; typedef Point3_<_Tp> value_type;
typedef Point3_<typename DataType<_Tp>::work_type> work_type; typedef Point3_<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 3, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 3,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1152,7 +1152,7 @@ public: ...@@ -1152,7 +1152,7 @@ public:
typedef Size_<_Tp> value_type; typedef Size_<_Tp> value_type;
typedef Size_<typename DataType<_Tp>::work_type> work_type; typedef Size_<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 2, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 2,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1164,7 +1164,7 @@ public: ...@@ -1164,7 +1164,7 @@ public:
typedef Rect_<_Tp> value_type; typedef Rect_<_Tp> value_type;
typedef Rect_<typename DataType<_Tp>::work_type> work_type; typedef Rect_<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 4, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 4,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1176,7 +1176,7 @@ public: ...@@ -1176,7 +1176,7 @@ public:
typedef Scalar_<_Tp> value_type; typedef Scalar_<_Tp> value_type;
typedef Scalar_<typename DataType<_Tp>::work_type> work_type; typedef Scalar_<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type; typedef _Tp channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 4, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 4,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
...@@ -1188,14 +1188,14 @@ public: ...@@ -1188,14 +1188,14 @@ public:
typedef Range value_type; typedef Range value_type;
typedef value_type work_type; typedef value_type work_type;
typedef int channel_type; typedef int channel_type;
enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 2, enum { generic_type = 0, depth = DataDepth<channel_type>::value, channels = 2,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt, fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) }; type = CV_MAKETYPE(depth, channels) };
typedef Vec<channel_type, channels> vec_type; typedef Vec<channel_type, channels> vec_type;
}; };
//////////////////// Generic ref-counting pointer class for C/C++ objects //////////////////////// //////////////////// generic_type ref-counting pointer class for C/C++ objects ////////////////////////
/*! /*!
Smart pointer to dynamically allocated objects. Smart pointer to dynamically allocated objects.
...@@ -3167,7 +3167,7 @@ public: ...@@ -3167,7 +3167,7 @@ public:
//@{ //@{
/*! /*!
specialized variants for 1D, 2D, 3D cases and the generic one for n-D case. specialized variants for 1D, 2D, 3D cases and the generic_type one for n-D case.
return pointer to the matrix element. return pointer to the matrix element.
<ul> <ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment