OpenCV453
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::ocl::Context クラス

クラス

class  UserContext
 

公開メンバ関数

 Context (int dtype)
 
 Context (const Context &c)
 
Contextoperator= (const Context &c)
 
 Context (Context &&c) CV_NOEXCEPT
 
Contextoperator= (Context &&c) CV_NOEXCEPT
 
bool create ()
 
bool create (int dtype)
 
size_t ndevices () const
 
Devicedevice (size_t idx) const
 
Program getProg (const ProgramSource &prog, const String &buildopt, String &errmsg)
 
void unloadProg (Program &prog)
 
void * ptr () const
 
void * getOpenCLContextProperty (int propertyId) const
 Get OpenCL context property specified on context creation [詳解]
 
bool useSVM () const
 
void setUseSVM (bool enabled)
 
void release ()
 
template<typename T >
void setUserContext (const std::shared_ptr< T > &userContext)
 
template<typename T >
std::shared_ptr< T > getUserContext ()
 
void setUserContext (std::type_index typeId, const std::shared_ptr< UserContext > &userContext)
 
std::shared_ptr< UserContextgetUserContext (std::type_index typeId)
 
Impl * getImpl () const
 
bool empty () const
 

静的公開メンバ関数

static ContextgetDefault (bool initialize=true)
 
static Context fromHandle (void *context)
 
static Context fromDevice (const ocl::Device &device)
 
static Context create (const std::string &configuration)
 

公開変数類

Impl * p
 

構築子と解体子

◆ Context()

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

関数詳解

◆ create() [1/2]

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

◆ create() [2/2]

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

◆ fromHandle()

static Context cv::ocl::Context::fromHandle ( void *  context)
static
引数
contextOpenCL handle (cl_context). clRetainContext() is called on success

◆ getDefault()

static Context & cv::ocl::Context::getDefault ( bool  initialize = true)
static

Get thread-local OpenCL context (initialize if necessary)

◆ getOpenCLContextProperty()

void * cv::ocl::Context::getOpenCLContextProperty ( int  propertyId) const

Get OpenCL context property specified on context creation

引数
propertyIdProperty id (CL_CONTEXT_* as defined in cl_context_properties type)
戻り値
Property value if property was specified on clCreateContext, or NULL if context created without the property

◆ ptr()

void * cv::ocl::Context::ptr ( ) const
戻り値
cl_context value

このクラス詳解は次のファイルから抽出されました: