Mix channels from one or more input image channels to one or more output image channels. More...
Macros | |
| #define | VPI_MIX_CHANNELS_MAX_IMAGES 4 |
| Maximum number of images that can be passed to Mix Channels as either input or output. | |
Functions | |
| VPIStatus | vpiSubmitMixChannels (VPIStream stream, uint64_t backend, VPIImage *inputs, int numInputs, VPIImage *outputs, int numOutputs, const int *inMapping, const int *outMapping, int numMapping) |
| Submits a Mix Channels operation to the stream. More... | |
Mix channels from one or more input image channels to one or more output image channels.
The operation is a copy operation without increasing or decreasing resolution, the input and output sizes must match, and without any color conversion. Refer to Mix Channels for more details and usage examples.
| VPIStatus vpiSubmitMixChannels | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| VPIImage * | inputs, | ||
| int | numInputs, | ||
| VPIImage * | outputs, | ||
| int | numOutputs, | ||
| const int * | inMapping, | ||
| const int * | outMapping, | ||
| int | numMapping | ||
| ) |
#include <vpi/algo/MixChannels.h>
Submits a Mix Channels operation to the stream.
| [in] | stream | The stream where the operation will be queued in.
|
| [in] | backend | Backend that will execute the algorithm.
|
| [in] | inputs | One or more input images from where to draw channels from.
|
| [in] | numInputs | Number of inputs in the array of inputs pointer argument.
|
| [out] | outputs | One or more output images from where to insert channels to.
|
| [in] | numOutputs | Number of outputs in the array of outputs pointer argument.
|
| [in] | inMapping | Array with indices to channels of input images The channels are considered linearized throughout images, that is each input is viewed as a sequence of channels and all inputs are concatenated in its array order. The index of an input channel gives the position on the whole inputs channels concatenated sequence.
|
| [in] | outMapping | Array with indices to channels of output images The channels are considered linearized throughout images, that is each output is viewed as a sequence of channels and all outputs are concatenated in its array order. The index of an output channel gives the position on the whole outputs channels concatenated sequence.
|
| [in] | numMapping | Number of mappings in the mapping array pointer argument.
|
| VPI_ERROR_INVALID_ARGUMENT | stream or inputs or outputs or mappings are NULL. |
| VPI_ERROR_INVALID_ARGUMENT | numInputs or numOutputs or numMapping are outside valid range. |
| VPI_ERROR_INVALID_IMAGE_FORMAT | Unsupported input or output format. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, inputs or outputs. |
| VPI_SUCCESS | Operation executed successfully. |