@Namespace(value="cv::ocl") @NoOffset @Properties(inherit=opencv_core.class) public class OpenCLExecutionContext extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
OpenCLExecutionContext.Impl |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OpenCLExecutionContext() |
OpenCLExecutionContext(long size)
Native array allocator.
|
OpenCLExecutionContext(OpenCLExecutionContext arg0) |
OpenCLExecutionContext(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bind()
Bind this OpenCL execution context to current thread.
|
OpenCLExecutionContext |
cloneWithNewQueue()
\overload
|
OpenCLExecutionContext |
cloneWithNewQueue(Queue q)
Creates new execution context with same OpenCV context and device
|
static OpenCLExecutionContext |
create(BytePointer platformName,
Pointer platformID,
Pointer context,
Pointer deviceID)
\brief Creates OpenCL execution context
OpenCV will check if available OpenCL platform has platformName name,
then assign context to OpenCV.
|
static OpenCLExecutionContext |
create(Context context,
Device device)
\overload
|
static OpenCLExecutionContext |
create(Context context,
Device device,
Queue queue)
\brief Creates OpenCL execution context
|
static OpenCLExecutionContext |
create(String platformName,
Pointer platformID,
Pointer context,
Pointer deviceID) |
boolean |
empty() |
Context |
getContext()
Get associated ocl::Context
|
static OpenCLExecutionContext |
getCurrent()
Get OpenCL execution context of current thread.
|
static OpenCLExecutionContext |
getCurrentRef()
Get OpenCL execution context of current thread (can be empty)
|
Device |
getDevice()
Get the single default associated ocl::Device
|
OpenCLExecutionContext |
getPointer(long i) |
Queue |
getQueue()
Get the single ocl::Queue that is associated with the ocl::Context and
the single default ocl::Device
|
OpenCLExecutionContext |
position(long position) |
OpenCLExecutionContext |
put(OpenCLExecutionContext arg0) |
void |
release() |
void |
setUseOpenCL(boolean flag) |
boolean |
useOpenCL() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public OpenCLExecutionContext(Pointer p)
Pointer(Pointer)
.public OpenCLExecutionContext(long size)
Pointer.position(long)
.public OpenCLExecutionContext()
public OpenCLExecutionContext(@Const @ByRef OpenCLExecutionContext arg0)
public OpenCLExecutionContext position(long position)
public OpenCLExecutionContext getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public OpenCLExecutionContext put(@Const @ByRef OpenCLExecutionContext arg0)
@ByRef public Queue getQueue()
@ByRef public static OpenCLExecutionContext getCurrent()
@ByRef public static OpenCLExecutionContext getCurrentRef()
public void bind()
@ByVal public OpenCLExecutionContext cloneWithNewQueue(@Const @ByRef Queue q)
q
- OpenCL queue@ByVal public OpenCLExecutionContext cloneWithNewQueue()
@ByVal public static OpenCLExecutionContext create(@StdString BytePointer platformName, Pointer platformID, Pointer context, Pointer deviceID)
clRetainContext
and/or clRetainDevice
to increase the reference count if it wishes to continue using them.platformName
- name of OpenCL platform to attach, this string is used to check if platform is available to OpenCV at runtimeplatformID
- 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)@ByVal public static OpenCLExecutionContext create(@StdString String platformName, Pointer platformID, Pointer context, Pointer deviceID)
@ByVal public static OpenCLExecutionContext create(@Const @ByRef Context context, @Const @ByRef Device device, @Const @ByRef Queue queue)
context
- non-empty OpenCL contextdevice
- non-empty OpenCL device (must be a part of context)queue
- non-empty OpenCL queue for provided context and device@ByVal public static OpenCLExecutionContext create(@Const @ByRef Context context, @Const @ByRef Device device)
public void release()
Copyright © 2024. All rights reserved.