Argus ==> CUDA ==> JPEG


I’m using Argus to capture frames from a camera and output these to an EglStream which is consumed by a CUDA consumer. (Using cudaEglStreamConsumerConnect()/cudaEglStreamConsumerAcquireFrame() from CUDA runtime API).

Further, I use CUDA to apply some treatment to the captured frames.

The next step would be to JPEG encode these altered frames, but I’m at loss on how to do that.
I was originally thinking to use NvJpegEncoder, but it requires a file descriptor for the frame which I don’t have (Or more likely I do not know how to get)

Anybody got any ideas on how I can do this ?

Would suggest check this sample:


And you can call the following functions to get CUDA pointer:


Please check HandleEGLImage() in the samples.

Hi @DaneLLL ,

Thanks for the fast reply. I’ll take a look.