NvBufferSession - how to use it?

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

Hi,
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?

Hi,

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.