@Namespace(value="cv::ocl") @NoOffset @Properties(inherit=opencv_core.class) public class Context extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Context.Impl |
static class |
Context.UserContext |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Context() |
Context(Context c) |
Context(int dtype)
Deprecated.
|
Context(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
create()
Deprecated.
|
static Context |
create(BytePointer configuration) |
boolean |
create(int dtype)
Deprecated.
|
static Context |
create(String configuration) |
Device |
device(long idx) |
boolean |
empty() |
static Context |
fromDevice(Device device) |
static Context |
fromHandle(Pointer context) |
static Context |
getDefault() |
static Context |
getDefault(boolean initialize)
Get thread-local OpenCL context (initialize if necessary)
|
Context.Impl |
getImpl() |
Pointer |
getOpenCLContextProperty(int propertyId)
\brief Get OpenCL context property specified on context creation
|
Program |
getProg(ProgramSource prog,
BytePointer buildopt,
BytePointer errmsg) |
Program |
getProg(ProgramSource prog,
String buildopt,
String errmsg) |
Context.UserContext |
getUserContext(Pointer typeId) |
long |
ndevices() |
Context.Impl |
p() |
Context |
p(Context.Impl setter) |
Pointer |
ptr() |
Context |
put(Context c) |
void |
release() |
void |
setUserContext(Pointer typeId,
Context.UserContext userContext) |
void |
setUseSVM(boolean enabled) |
void |
unloadProg(Program prog) |
boolean |
useSVM() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Context(Pointer p)
Pointer(Pointer)
.public Context()
public Context(int dtype)
@ByVal public Program getProg(@Const @ByRef ProgramSource prog, @opencv_core.Str BytePointer buildopt, @opencv_core.Str BytePointer errmsg)
@ByVal public Program getProg(@Const @ByRef ProgramSource prog, @opencv_core.Str String buildopt, @opencv_core.Str String errmsg)
@ByRef public static Context getDefault(@Cast(value="bool") boolean initialize)
public Pointer ptr()
public Pointer getOpenCLContextProperty(int propertyId)
propertyId
- Property id (CL_CONTEXT_* as defined in cl_context_properties type)@ByVal public static Context fromHandle(Pointer context)
context
- OpenCL handle (cl_context). clRetainContext() is called on success@ByVal public static Context create(@StdString BytePointer configuration)
@ByVal public static Context create(@StdString String configuration)
public void release()
public void setUserContext(@ByVal @Cast(value="std::type_index*") Pointer typeId, @SharedPtr Context.UserContext userContext)
@SharedPtr public Context.UserContext getUserContext(@ByVal @Cast(value="std::type_index*") Pointer typeId)
public Context.Impl getImpl()
public Context.Impl p()
public Context p(Context.Impl setter)
Copyright © 2024. All rights reserved.