10bit CUeglColorFormat in nvivafilter

Hi,
Please refer to the sample:
Error generated while running the code after connecting the camera - #15 by DaveYYY

It demonstrates:

GstBuffer → NvBufSurface → CUeglFrame → OpenCV

You can follow the function calls to get CUeglFrame and access the buffer through CUDA.

The pipeline will be like:

filesrc ! qtdemux ! queue ! h265parse ! nvv4l2decoder ! nvvidconv ! 'video/x-raw(memory:NVMM),format=P010_10LE' ! appsink

or

filesrc ! qtdemux ! queue ! h265parse ! nvv4l2decoder ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420_10LE' ! appsink

And you can access the buffer in appsink

Besides, the latest release is Jetpack 5.1.2(r35.4.1). It would be great if you can upgrade to latest version.