@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_core.class) public class AsyncArray extends Pointer
Object has attached asynchronous state. Assignment operator doesn't clone asynchronous state (it is shared between all instances).
Result can be fetched via get() method only once.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AsyncArray() |
AsyncArray(AsyncArray o) |
AsyncArray(long size)
Native array allocator.
|
AsyncArray(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Pointer |
_getImpl() |
void |
get(GpuMat dst) |
boolean |
get(GpuMat dst,
double timeoutNs) |
boolean |
get(GpuMat dst,
long timeoutNs) |
void |
get(Mat dst)
Fetch the result.
|
boolean |
get(Mat dst,
double timeoutNs) |
boolean |
get(Mat dst,
long timeoutNs)
Retrieving the result with timeout
|
void |
get(UMat dst) |
boolean |
get(UMat dst,
double timeoutNs) |
boolean |
get(UMat dst,
long timeoutNs) |
AsyncArray |
position(long position) |
AsyncArray |
put(AsyncArray o) |
void |
release() |
boolean |
valid() |
boolean |
wait_for(double timeoutNs) |
boolean |
wait_for(long timeoutNs) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public AsyncArray(Pointer p)
Pointer.Pointer(Pointer)
.public AsyncArray(long size)
Pointer.position(long)
.public AsyncArray()
public AsyncArray(@Const @ByRef AsyncArray o)
public AsyncArray position(long position)
@ByRef @Name(value="operator =") @NoException public AsyncArray put(@Const @ByRef AsyncArray o)
@NoException public void release()
public void get(@ByVal Mat dst)
dst
- [out] destination array
Waits for result until container has valid result. Throws exception if exception was stored as a result.
Throws exception on invalid container state.
\note Result or stored exception can be fetched only once.
@Cast(value="bool") public boolean get(@ByVal Mat dst, @Cast(value="int64") long timeoutNs)
dst
- [out] destination arraytimeoutNs
- [in] timeout in nanoseconds, -1 for infinite wait
\note Result or stored exception can be fetched only once.
@Cast(value="bool") @NoException public boolean valid()
@NoException public Pointer _getImpl()
Copyright © 2020. All rights reserved.