I am working on a custom jpeg decoder that uses nvjpeg.
When I use something similar to
decodeToFd I get a file handle to the dma buffer.
When does this buffer get allocated and when does the dma buffer get freed?
For example if I push all dma fds into a vector, would that be a memory leak?
Currently I use this code to get the dma buffer after the jpeg decoding:
dma_fd = cinfo.fd;
From gst-nvjpeg sources I also know that there is:
cinfo.pVendor_buf = info.data;
Can I use
cinfo.pVendor_buf to pass a preallocated dma buffer to the decoder?