How to copy NvBufSurface to NvBuffer

Hello
I need to copy data from NvBufSurface into NvBuffer. I have done it using inefficient looping method using memcpy. However this increases CPU activity significantly. I am looking for some API or efficient method. Please guide.

As you know NvbufSurface holds GPU memory and NvBuffer is not part of deepstream.

Can you tell me why you need to convert to NvBuffer? Maybe I can give you some better advice.

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

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