Function nvcvImageBatchVarShapeConstruct
Defined in File ImageBatch.h
Function Documentation
-
NVCVStatus nvcvImageBatchVarShapeConstruct(const NVCVImageBatchVarShapeRequirements *reqs, NVCVAllocatorHandle alloc, NVCVImageBatchHandle *handle)
Constructs a varshape image batch instance with given requirements in the given storage.
- Parameters:
reqs – [in] Image batch requirements. Must have been filled in by nvcvImageBatchVarShapeCalcRequirements.
Must not be NULL
alloc – [in] Allocator to be used to allocate needed memory buffers. The following resources are used:
host memory
cuda memory If NULL, it’ll use the internal default allocator.
Allocator must not be destroyed while an image batch still refers to it.
handle – [out] Where the image batch instance handle will be written to.
Must not be NULL.
- Return values:
NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside valid range.
NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the image batch instance.
NVCV_SUCCESS – Operation executed successfully.