VPI resample On CUDA

Hi, I have a question after testing 04-resample,
Does the funtion “vpiSubmitImageResampler” only support gray scale? That is to say, this function only supports one color dimension(Y)? I used function vpiImageWrapNvBuffer to create two image objects, one is for input image and the other is for output image, Nvbuffers(NvBufferColorFormat_NV12) are come from Mutimedia API. The data after funtion “vpiSubmitImageResampler” is wrong.

Hi,

Here are the support format of VPI image resampler.

VPI_IMAGE_TYPE_U8
VPI_IMAGE_TYPE_S8
VPI_IMAGE_TYPE_U16
VPI_IMAGE_TYPE_S16

For more detail, you can check our document:
https://docs.nvidia.com/vpi/algo_image_resampler.html

Thanks.

1 Like