Function nvcvArrayWrapDataConstruct
Defined in File Array.h
Function Documentation
-
NVCVStatus nvcvArrayWrapDataConstruct(const NVCVArrayData *data, NVCVArrayDataCleanupFunc cleanup, void *ctxCleanup, NVCVArrayHandle *handle)
Wraps an existing array buffer into an NVCV array instance constructed in given storage
It allows for interoperation of external array representations with NVCV.
- Parameters:
data – [in] Array contents.
cleanup – [in] Cleanup function to be called when the array is destroyed via nvcvArrayDecRef.
ctxCleanup – [in] Pointer to be passed unchanged to the cleanup function, if defined.
handle – [out] Where the array instance handle will be written to.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the array.
NVCV_SUCCESS – Operation executed successfully.