Function nvcvImageGetAllocator

Function Documentation

NVCVStatus nvcvImageGetAllocator(NVCVImageHandle handle, NVCVAllocatorHandle *alloc)

Get the allocator associated with an image.

This function creates a new reference to the allocator handle. The caller is responsible for freeing it by calling nvcvAllocatorDecRef.

Parameters:
  • handle[in] Image to be queried.

    • Must not be NULL.

  • alloc[out] Where the allocator handle will be written to.

    • Must not be NULL.

Return values:
  • #VPI_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.

  • #VPI_SUCCESS – Operation executed successfully.