CUDA Video Parsing and Source Stream for linux

Does anyone know where I can find code that can perform video parsing for linux like the toolkit examples do for windows?

The NVIDIA CUDA Samples application (windows only) implements the following playback pipeline:

Parse the Video input Source (using CUDA Video Decoder API)
Decode Video on GPU using NVCUVID API.
Convert decoded surface (NV12 format or YUV 4:2:0 format) to RGBA.
Map RGBA surface to DirectX 9.0 or OpenGL surface.
Draw texture to screen.

I know it can’t use DirectX but is there any sort of equivalent code for Linux that is done with windows in the examples like “CUDA Video Decoder GLAP”?