Allow cv::cuda::Event to accept combinations of flags
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());
friend struct EventAccessor;
};
+CV_ENUM_FLAGS(Event::CreateFlags)
//! @} cudacore_struct
#endif
-cv::cuda::Event::Event(CreateFlags flags)
+cv::cuda::Event::Event(const Event::CreateFlags flags)
{
#ifndef HAVE_CUDA
CV_UNUSED(flags);