hi @DaneLLL
I got NvBufSurface allocated from OpenCV mat in python via Pybind11 but I see no way to convert NvBufSurface to NvBuffer or get a FD from the allocated NvBufSurface. I came across your post where you yourself have mentioned that " NvBufSurface is not support in `NvJPEGEncoder’". I spent considerable amount of time on this and so please suggest solution. The error I am currently facing
error: cannot convert ‘NvBufSurface*’ to ‘NvBuffer&’
72 | ret = jpegenc->encodeFromBuffer(nvBufSurface, JCS_YCbCr, &out_buf, out_buf_size, quality);
| ^~~~~~~~~~~~
| |
| NvBufSurface*
Also please note I am not using deepstream in anyway. This is a custom pipeline I am creating since we are using ROS.