And without this I got 60fps as expected but with this code from vpi_wrap.patch I got 30-45fps.
What can cause this drop? Documentation say that there is no copy (only headers are copied) but I see fps dropped to much without any processing.
I thought that this is only wrapper but underlay there this function create new image: [out] img Pointer to memory that will receive the created image handle.
Do I correctly understand that this function then: vpiImageSetWrappedCUDAMem
is really wrapping? Creating underlay image (new one is really expensive). Copying not that much?
PS.
How should I draw lines/rectangle/circles on images? NvOSD or CUDA?
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
Hi,
The wrapping won’t create the buffer but only the wrapper handle. vpiImageSetWrappedCUDAMem is used for redefining the wrapper to point to another memory.
Based on your use case, you can create the wrapper in the initial time.
And redefine the pointer with vpiImageSetWrappedCUDAMem (if the buffer pointer changes) when runtime.