diff --git a/modules/core/include/opencv2/core/cuda.hpp b/modules/core/include/opencv2/core/cuda.hpp index 716b8bf2a8..719003f21f 100644 --- a/modules/core/include/opencv2/core/cuda.hpp +++ b/modules/core/include/opencv2/core/cuda.hpp @@ -924,7 +924,7 @@ public: INTERPROCESS = 0x04 /**< Event is suitable for interprocess use. DisableTiming must be set */ }; - CV_WRAP explicit Event(Event::CreateFlags flags = Event::CreateFlags::DEFAULT); + CV_WRAP explicit Event(const Event::CreateFlags flags = Event::CreateFlags::DEFAULT); //! records an event CV_WRAP void record(Stream& stream = Stream::Null()); @@ -946,6 +946,7 @@ private: friend struct EventAccessor; }; +CV_ENUM_FLAGS(Event::CreateFlags) //! @} cudacore_struct diff --git a/modules/core/src/cuda_stream.cpp b/modules/core/src/cuda_stream.cpp index 3680e0720a..3f647c8d55 100644 --- a/modules/core/src/cuda_stream.cpp +++ b/modules/core/src/cuda_stream.cpp @@ -811,7 +811,7 @@ Event cv::cuda::EventAccessor::wrapEvent(cudaEvent_t event) #endif -cv::cuda::Event::Event(CreateFlags flags) +cv::cuda::Event::Event(const Event::CreateFlags flags) { #ifndef HAVE_CUDA CV_UNUSED(flags);