NvBufferSession - how to use it?

I need sample with NvBufferSession usage. When to use sessions to increase performance?

NvBufferSession usage is designed for parallelly accessing hardware VIC engine, such as calling NvBufferTransform() in two independent threads. It does not have performance improvement.

We will check to add sample code for these APIs.

Is nessesary to create NvBufferSession for every independed process that using VIC?


No, it is not necessary.

If you have two threads in single process and each thread is calling NvBufferTransform() or NvBufferComposite(), creating NvBufferSession can bring better scheduling in accessing hardware VIC engine. However, it is also working fine without creating NvBufferSession. The improvement may not be that significant.