Function nvcvImageBatchVarShapePushImagesCallback

Function Documentation

NVCVStatus nvcvImageBatchVarShapePushImagesCallback(NVCVImageBatchHandle handle, NVCVPushImageFunc cbPushImage, void *ctxCallback)

Push to the end of the batch the images returned from a callback function.

Parameters:
  • handle[in] Image batch to be manipulated

  • cbGetImage[in] Function that returns each image that is pushed to the batch. It’ll keep being called until it return NULL, meaning that there are no more images to be returned.

    • Must not be NULL.

    • It must return NULL before the capacity of the batch is exceeded.

    • The images returned must not be destroyed while they’re being referenced by the image batch.

    • Image format must indicate a pitch-linear memory layout.

  • ctxCallback[in] Pointer passed to the callback function unchanged.

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

  • NVCV_ERROR_OVERFLOW – Image batch capacity exceeded.

  • NVCV_SUCCESS – Operation executed successfully.