next: OPENCV_ABI_COMPATIBILITY

drop change:
    template<typename _Tp2> operator Vec<_Tp2, 3>() const;
because it break builds due ambiguous errors
pull/11256/head
Alexander Alekhin 7 years ago
parent 964a4d75b4
commit 2d54fed3cc
  1. 4
      modules/core/include/opencv2/core/base.hpp
  2. 2
      modules/core/include/opencv2/core/cvdef.h
  3. 12
      modules/core/include/opencv2/core/types.hpp
  4. 7
      modules/core/include/opencv2/core/utility.hpp
  5. 8
      modules/core/src/system.cpp

@ -727,11 +727,7 @@ namespace cudev
namespace ipp namespace ipp
{ {
#if OPENCV_ABI_COMPATIBILITY > 300
CV_EXPORTS unsigned long long getIppFeatures(); CV_EXPORTS unsigned long long getIppFeatures();
#else
CV_EXPORTS int getIppFeatures();
#endif
CV_EXPORTS void setIppStatus(int status, const char * const funcname = NULL, const char * const filename = NULL, CV_EXPORTS void setIppStatus(int status, const char * const funcname = NULL, const char * const filename = NULL,
int line = 0); int line = 0);
CV_EXPORTS int getIppStatus(); CV_EXPORTS int getIppStatus();

@ -251,7 +251,7 @@ typedef union Cv64suf
} }
Cv64suf; Cv64suf;
#define OPENCV_ABI_COMPATIBILITY 300 #define OPENCV_ABI_COMPATIBILITY 400
#ifdef __OPENCV_BUILD #ifdef __OPENCV_BUILD
# define DISABLE_OPENCV_24_COMPATIBILITY # define DISABLE_OPENCV_24_COMPATIBILITY

@ -250,11 +250,7 @@ public:
//! conversion to another data type //! conversion to another data type
template<typename _Tp2> operator Point3_<_Tp2>() const; template<typename _Tp2> operator Point3_<_Tp2>() const;
//! conversion to cv::Vec<> //! conversion to cv::Vec<>
#if OPENCV_ABI_COMPATIBILITY > 300
template<typename _Tp2> operator Vec<_Tp2, 3>() const;
#else
operator Vec<_Tp, 3>() const; operator Vec<_Tp, 3>() const;
#endif
//! dot product //! dot product
_Tp dot(const Point3_& pt) const; _Tp dot(const Point3_& pt) const;
@ -1405,19 +1401,11 @@ Point3_<_Tp>::operator Point3_<_Tp2>() const
return Point3_<_Tp2>(saturate_cast<_Tp2>(x), saturate_cast<_Tp2>(y), saturate_cast<_Tp2>(z)); return Point3_<_Tp2>(saturate_cast<_Tp2>(x), saturate_cast<_Tp2>(y), saturate_cast<_Tp2>(z));
} }
#if OPENCV_ABI_COMPATIBILITY > 300
template<typename _Tp> template<typename _Tp2> inline
Point3_<_Tp>::operator Vec<_Tp2, 3>() const
{
return Vec<_Tp2, 3>(x, y, z);
}
#else
template<typename _Tp> inline template<typename _Tp> inline
Point3_<_Tp>::operator Vec<_Tp, 3>() const Point3_<_Tp>::operator Vec<_Tp, 3>() const
{ {
return Vec<_Tp, 3>(x, y, z); return Vec<_Tp, 3>(x, y, z);
} }
#endif
template<typename _Tp> inline template<typename _Tp> inline
Point3_<_Tp>& Point3_<_Tp>::operator = (const Point3_& pt) Point3_<_Tp>& Point3_<_Tp>::operator = (const Point3_& pt)

@ -689,17 +689,10 @@ protected:
virtual ~TLSDataContainer(); virtual ~TLSDataContainer();
void gatherData(std::vector<void*> &data) const; void gatherData(std::vector<void*> &data) const;
#if OPENCV_ABI_COMPATIBILITY > 300
void* getData() const; void* getData() const;
void release(); void release();
private: private:
#else
void release();
public:
void* getData() const;
#endif
virtual void* createDataInstance() const = 0; virtual void* createDataInstance() const = 0;
virtual void deleteDataInstance(void* pData) const = 0; virtual void deleteDataInstance(void* pData) const = 0;

@ -2023,18 +2023,10 @@ static IPPInitSingleton& getIPPSingleton()
} }
#endif #endif
#if OPENCV_ABI_COMPATIBILITY > 300
unsigned long long getIppFeatures() unsigned long long getIppFeatures()
#else
int getIppFeatures()
#endif
{ {
#ifdef HAVE_IPP #ifdef HAVE_IPP
#if OPENCV_ABI_COMPATIBILITY > 300
return getIPPSingleton().ippFeatures; return getIPPSingleton().ippFeatures;
#else
return (int)getIPPSingleton().ippFeatures;
#endif
#else #else
return 0; return 0;
#endif #endif

Loading…
Cancel
Save