Image format from capture by CSI Camera

This example can run correctly and show image on screen.
But something wrong when I try to put image to VPI.

I open another topic to discuss:

How do I get image from cudaBayerDemosaic and connect to VPI? - Jetson & Embedded Systems / Jetson Nano - NVIDIA Developer Forums