Class cv::ocl::Context#
#include <opencv2/core/ocl.hpp>Collaboration diagram for cv::ocl::Context:
Constructor & Destructor Documentation#
Context()#
Context()#
Context()#
Context()#
~Context()#
Member Function Documentation#
create()#
bool cv::ocl::Context::create()
create()#
bool cv::ocl::Context::create(int dtype)
device()#
empty()#
bool cv::ocl::Context::empty()
getImpl()#
getOpenCLContextProperty()#
void * cv::ocl::Context::getOpenCLContextProperty(int propertyId)
Get OpenCL context property specified on context creation.
Parameters
propertyId— Property id (CL_CONTEXT_* as defined in cl_context_properties type)
Returns
Property value if property was specified on clCreateContext, or NULL if context created without the property
getProg()#
Program cv::ocl::Context::getProg(
const ProgramSource & prog,
const String & buildopt,
String & errmsg )
getUserContext()#
template<typename T>
std::shared_ptr< T > cv::ocl::Context::getUserContext()
getUserContext()#
std::shared_ptr< UserContext > cv::ocl::Context::getUserContext(std::type_index typeId)
ndevices()#
size_t cv::ocl::Context::ndevices()
operator=()#
operator=()#
ptr()#
void * cv::ocl::Context::ptr()
Returns
cl_context value
release()#
void cv::ocl::Context::release()
setUserContext()#
template<typename T>
void cv::ocl::Context::setUserContext(const std::shared_ptr< T > & userContext)
setUserContext()#
void cv::ocl::Context::setUserContext(
std::type_index typeId,
const std::shared_ptr< UserContext > & userContext )
setUseSVM()#
void cv::ocl::Context::setUseSVM(bool enabled)
unloadProg()#
useSVM()#
bool cv::ocl::Context::useSVM()
create()#
static Context cv::ocl::Context::create(const std::string & configuration)
fromDevice()#
static Context cv::ocl::Context::fromDevice(const ocl::Device & device)
fromHandle()#
static Context cv::ocl::Context::fromHandle(void * context)
Parameters
context— OpenCL handle (cl_context). clRetainContext() is called on success
getDefault()#
static Context & cv::ocl::Context::getDefault()
Get thread-local OpenCL context (initialize if necessary)
Member Data Documentation#
p#
Source file#
The documentation for this class was generated from the following file:
opencv2/core/ocl.hpp