NvBuffer -> CUDA -> DRM

Hello!

I want to process a YUV420 nvbuffer from argus in cuda, then render and draw on the image using opengl through DRM.

What is the best way to do this? Trying to get an image in cuda through NvEGLImageFromFd fails with NvEGLImageFromFd: No EGLDisplay to create EGLImage. Is there a way to create an EGLDisplay with NvDrmRenderer?

1 Like

Hi,
This should work. Please check
eglInitialize fails with DRM KMS - #7 by DaneLLL

You would need to create egldisplay by calling eglInitialize(EGL_DEFAULT_DISPLAY)

I used this sample code to get an EGLDisplay from the EGLDevice: Simple program to demonstrate OpenGL rendering without an X server · GitHub