Function cvcudaPillowResizeVarShapeGetWorkspaceRequirements

Function Documentation

NVCVStatus cvcudaPillowResizeVarShapeGetWorkspaceRequirements(NVCVOperatorHandle handle, int batchSize, const NVCVSize2D *inputSizesWH, const NVCVSize2D *outputSizesWH, NVCVImageFormat fmt, NVCVWorkspaceRequirements *reqOut)

Calculates the buffer sizes required to run the operator

Parameters:
  • handle[in] Where the image instance handle will be written to.

    • Must not be NULL.

  • batchSize[in] The number of images

  • inputSizes[in] The sizes of the input images

  • outputSizes[in] The sizes of the output images

  • fmt[in] Image format

  • reqOut[out] Requirements for the operator’s workspace

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Handle is null or one of the arguments is out of range.

  • NVCV_SUCCESS – Operation executed successfully.