Function cvcudaChannelReorderCreate

Function Documentation

NVCVStatus cvcudaChannelReorderCreate(NVCVOperatorHandle *handle)

Constructs and an instance of the channel reorder operator. The operator is used to cha reformats the input from kNHWC format to kNCHW format or from kNCHW format to kNHWC format.

Parameters:

handle[out] Where the image instance handle will be written to.

  • Must not be NULL.

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Handle is null.

  • NVCV_ERROR_OUT_OF_MEMORY – Not enough memory to create the operator.

  • NVCV_SUCCESS – Operation executed successfully.