OpenCV453
|
公開メンバ関数 | |
OpenCLExecutionContext (const OpenCLExecutionContext &)=default | |
OpenCLExecutionContext (OpenCLExecutionContext &&)=default | |
OpenCLExecutionContext & | operator= (const OpenCLExecutionContext &)=default |
OpenCLExecutionContext & | operator= (OpenCLExecutionContext &&)=default |
Context & | getContext () const |
Device & | getDevice () const |
Queue & | getQueue () const |
bool | useOpenCL () const |
void | setUseOpenCL (bool flag) |
void | bind () const |
OpenCLExecutionContext | cloneWithNewQueue (const ocl::Queue &q) const |
OpenCLExecutionContext | cloneWithNewQueue () const |
bool | empty () const |
void | release () |
静的公開メンバ関数 | |
static OpenCLExecutionContext & | getCurrent () |
static OpenCLExecutionContext & | getCurrentRef () |
static OpenCLExecutionContext | create (const std::string &platformName, void *platformID, void *context, void *deviceID) |
Creates OpenCL execution context OpenCV will check if available OpenCL platform has platformName name, then assign context to OpenCV and call clRetainContext function. The deviceID device will be used as target device and new command queue will be created. [詳解] | |
static OpenCLExecutionContext | create (const Context &context, const Device &device, const ocl::Queue &queue) |
Creates OpenCL execution context [詳解] | |
static OpenCLExecutionContext | create (const Context &context, const Device &device) |
限定公開変数類 | |
std::shared_ptr< Impl > | p |
void cv::ocl::OpenCLExecutionContext::bind | ( | ) | const |
Bind this OpenCL execution context to current thread.
Context can't be empty.
OpenCLExecutionContext cv::ocl::OpenCLExecutionContext::cloneWithNewQueue | ( | ) | const |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
OpenCLExecutionContext cv::ocl::OpenCLExecutionContext::cloneWithNewQueue | ( | const ocl::Queue & | q | ) | const |
Creates new execution context with same OpenCV context and device
q | OpenCL queue |
|
static |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
|
static |
Creates OpenCL execution context
context | non-empty OpenCL context |
device | non-empty OpenCL device (must be a part of context) |
queue | non-empty OpenCL queue for provided context and device |
|
static |
Creates OpenCL execution context OpenCV will check if available OpenCL platform has platformName name, then assign context to OpenCV and call clRetainContext
function. The deviceID device will be used as target device and new command queue will be created.
platformName | name of OpenCL platform to attach, this string is used to check if platform is available to OpenCV at runtime |
platformID | ID of platform attached context was created for (cl_platform_id) |
context | OpenCL context to be attached to OpenCV (cl_context) |
deviceID | OpenCL device (cl_device_id) |
Context & cv::ocl::OpenCLExecutionContext::getContext | ( | ) | const |
Get associated ocl::Context
|
static |
Get OpenCL execution context of current thread.
Initialize OpenCL execution context if it is empty
|
static |
Get OpenCL execution context of current thread (can be empty)
Device & cv::ocl::OpenCLExecutionContext::getDevice | ( | ) | const |
Get the single default associated ocl::Device
Queue & cv::ocl::OpenCLExecutionContext::getQueue | ( | ) | const |
Get the single ocl::Queue that is associated with the ocl::Context and the single default ocl::Device