VPI - Vision Programming Interface

4.0 Release

Copy the contents from input containers to output containers. More...

Functions

VPIStatus vpiSubmitCopyImage (VPIStream stream, uint64_t backend, VPIImage input, VPIImage output)
 Copy the contents from input to output images. More...
 
VPIStatus vpiSubmitCopyArray (VPIStream stream, uint64_t backend, VPIArray input, VPIArray output)
 Copy the contents from input to output arrays. More...
 
VPIStatus vpiSubmitCopyPyramid (VPIStream stream, uint64_t backend, VPIPyramid input, VPIPyramid output)
 Copy the contents from input to output pyramids. More...
 

Detailed Description

Copy the contents from input containers to output containers.

Function Documentation

◆ vpiSubmitCopyImage()

VPIStatus vpiSubmitCopyImage ( VPIStream  stream,
uint64_t  backend,
VPIImage  input,
VPIImage  output 
)

#include <vpi/algo/Copy.h>

Copy the contents from input to output images.

Parameters
[in]streamThe stream handle where the operation will be queued in.
  • Must not be NULL.
  • Stream must have enabled the backends that will execute the algorithm.
[in]backendBackend that will execute the algorithm.
[in]inputInput image whose contents will be copied from.
  • Must not be NULL.
[out]outputOutput image where contents will be copied to.
  • Must not be NULL.
  • Size must match input's.
  • Image format must match input's.
Return values
VPI_ERROR_INVALID_ARGUMENTstream is NULL.
VPI_ERROR_INVALID_ARGUMENTinput or output are NULL.
VPI_ERROR_INVALID_ARGUMENTinput and output image must have same dimensions.
VPI_ERROR_INVALID_ARGUMENTinput and output image must have same image format.
VPI_ERROR_NOT_IMPLEMENTEDAlgorithm is not supported by given backend.
VPI_ERROR_INVALID_OPERATIONBackend hardware not available.
VPI_ERROR_INVALID_OPERATIONThe needed backends aren't enabled in stream, input or output.
VPI_SUCCESSOperation executed successfully.

◆ vpiSubmitCopyArray()

VPIStatus vpiSubmitCopyArray ( VPIStream  stream,
uint64_t  backend,
VPIArray  input,
VPIArray  output 
)

#include <vpi/algo/Copy.h>

Copy the contents from input to output arrays.

Parameters
[in]streamThe stream handle where the operation will be queued in.
  • Must not be NULL.
  • Stream must have enabled the backends that will execute the algorithm.
[in]backendBackend that will execute the algorithm.
[in]inputInput array whose contents will be copied from.
  • Must not be NULL.
[out]outputOutput array where contents will be copied to.
  • Must not be NULL.
  • Capacity must be >= input's capacity.
  • Array type must match input's.
Return values
VPI_ERROR_INVALID_ARGUMENTstream is NULL.
VPI_ERROR_INVALID_ARGUMENTinput or output are NULL.
VPI_ERROR_INVALID_ARGUMENToutput array capacity lower than input array's.
VPI_ERROR_INVALID_ARGUMENTinput and output array must have same array type.
VPI_ERROR_NOT_IMPLEMENTEDAlgorithm is not supported by given backend.
VPI_ERROR_INVALID_OPERATIONBackend hardware not available.
VPI_ERROR_INVALID_OPERATIONThe needed backends aren't enabled in stream, input or output.
VPI_SUCCESSOperation executed successfully.

◆ vpiSubmitCopyPyramid()

VPIStatus vpiSubmitCopyPyramid ( VPIStream  stream,
uint64_t  backend,
VPIPyramid  input,
VPIPyramid  output 
)

#include <vpi/algo/Copy.h>

Copy the contents from input to output pyramids.

Parameters
[in]streamThe stream handle where the operation will be queued in.
  • Must not be NULL.
  • Stream must have enabled the backends that will execute the algorithm.
[in]backendBackend that will execute the algorithm.
[in]inputInput pyramid whose contents will be copied from.
  • Must not be NULL.
[out]outputOutput pyramid where contents will be copied to.
  • Must not be NULL.
  • Dimensions must match input's.
  • Image format must match input's.
  • Number of levels must match input's.
  • Scale must match input's.
Return values
VPI_ERROR_INVALID_ARGUMENTstream is NULL.
VPI_ERROR_INVALID_ARGUMENTinput or output are NULL.
VPI_ERROR_INVALID_ARGUMENToutput pyramid format, dimensions, number of levels or scale don't match input's.
VPI_ERROR_NOT_IMPLEMENTEDAlgorithm is not supported by given backend.
VPI_ERROR_INVALID_OPERATIONBackend hardware not available.
VPI_ERROR_INVALID_OPERATIONThe needed backends aren't enabled in stream, input or output.
VPI_SUCCESSOperation executed successfully.