5 #ifndef OPENCV_CORE_PARALLEL_BACKEND_HPP
6 #define OPENCV_CORE_PARALLEL_BACKEND_HPP
8 #include "opencv2/core/cvdef.h"
11 namespace cv {
namespace parallel {
61 typedef void (CV_API_CALL *FN_parallel_for_body_cb_t)(
int start,
int end,
void*
data);
63 virtual void parallel_for(
int tasks, FN_parallel_for_body_cb_t body_callback,
void* callback_data) = 0;
Definition: parallel_backend.hpp:57
virtual ~ParallelForAPI()
virtual int getThreadNum() const =0
virtual const char * getName() const =0
virtual int getNumThreads() const =0
virtual void parallel_for(int tasks, FN_parallel_for_body_cb_t body_callback, void *callback_data)=0
virtual int setNumThreads(int nThreads)=0
double double end
Definition: core_c.h:1381
double start
Definition: core_c.h:1381
void * data
Definition: core_c.h:427
CV_EXPORTS void setParallelForBackend(const std::shared_ptr< ParallelForAPI > &api, bool propagateNumThreads=true)
Replace OpenCV parallel_for backend.
#define CV_EXPORTS
Definition: cvdef.h:435
#define CV_EXPORTS_W
Definition: cvdef.h:472
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441