Vpi nvbuffer question

agx xavier
huilian@localhost:~$ head -n 1 /etc/nv_tegra_release

R32 (release), REVISION: 5.0, GCID: 25531747, BOARD: t186ref, EABI: aarch64, DATE: Fri Jan 15 23:21:05 UTC 2021

huilian@localhost:~$ dpkg -l |grep vpi
ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming Interface library
ii vpi1-demos 1.0.15 arm64 NVIDIA VPI GUI demo applications
ii vpi1-dev 1.0.15 arm64 NVIDIA VPI C/C++ development library and headers
ii vpi1-samples 1.0.15 arm64 NVIDIA VPI command-line sample applications

We want to use Fisheye Distortion Correction,nvbuffer fd do fisheye correction.
So we need to use the related functions vpiInitWrapNvBufferParams and vpiImageCreateNvBufferWrapper, but there is no related demo, can we do this?
On this side of the camera, fd-uyvy(NvBufferColorFormat_UYVY), and use the function NvBufferTransform to do the color convert (NvBufferColorFormat_NV12) fd-nv12/
vpiImageCreateNvBufferWrapper(fd-nv12,NULL,VPI_BACKEND_CUDA,&vimg) ?
How should the params of VPIWrapNvBufferParams be written?

Hi,

Is JetPack 5 an option for you?
We have an example for VPI 2 which is integrated into the JetPack 5.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.