How to map camera frame to GPU

I have frames in v4l2_buffer from USB camera. I use V4L2_MEMORY_MMAP and cand do DMA export.

How could I map raw frame data as a pointer to GPU?
I don’t need EGL overhead like in multimedia samples, just a raw pixel buffer.

Hi,
Your case looks close to tegra_multimedia_api\samples\v4l2cuda
Please check the sample.

Well but they perform CUDA operations on egl image.

NvEGLImageFromFd(dma_buf_id) -> HandleEGLImage() -> NvDestroyEGLImage()

I want to avoid it.

Is there any alternative to get a GPU pointer w/out EGL stuff?

Hi,
The flow is for buffers created by calling NvBufferCreate(). In v4l2cuda, it uses cudaMallocManaged().