Class cv::ocl::Context#

Collaboration diagram for cv::ocl::Context:

Constructor & Destructor Documentation#

Context()#

cv::ocl::Context::Context()

Context()#

cv::ocl::Context::Context(const Context & c)

Context()#

cv::ocl::Context::Context(Context && c)

Context()#

cv::ocl::Context::Context(int dtype)

~Context()#

cv::ocl::Context::~Context()

Member Function Documentation#

create()#

bool cv::ocl::Context::create()

create()#

bool cv::ocl::Context::create(int dtype)

device()#

Device & cv::ocl::Context::device(size_t idx)

empty()#

bool cv::ocl::Context::empty()

getImpl()#

Impl * cv::ocl::Context::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=()#

Context & cv::ocl::Context::operator=(const Context & c)

operator=()#

Context & cv::ocl::Context::operator=(Context && c)

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()#

void cv::ocl::Context::unloadProg(Program & prog)

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#

Impl * cv::ocl::Context::p

Source file#

The documentation for this class was generated from the following file: