Function nvcvArrayDecRef
Defined in File Array.h
Function Documentation
-
NVCVStatus nvcvArrayDecRef(NVCVArrayHandle handle, int *newRefCount)
Decrements the reference count of an existing array instance.
The array is destroyed when its reference count reaches zero.
If the array is wrapping external data and a cleanup function has been defined, defined, it will be called.
Note
The array object must not be in use in current and future operations.
- Parameters:
handle – [in] Array to be destroyed.
newRefCount – [out] The decremented reference count. If the return value is 0, the object was destroyed. Can be NULL, if the caller isn’t interested in the new reference count.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – The handle is invalid
NVCV_SUCCESS – Operation executed successfully.