what are the recommendations for using these api? what has better performance?
NvBufSurface is implemented to unify interfaces of running DeepStream SDK on Jetson platforms and PCs with NVIDIA GPU. If you don’t run DeepStream SDK, you can use NvBuffer. Performance is identical in both APIs.