I’m using: CUDA version 11.3 project w/ Visual Studio 2019 on a Windows 10 machine and a Quadro RTX 3000 GPU.
In an older version of Cuda, I implemented an OpenGL video decoder using Cuda and GLFW. (my code would read in a frame of video, color process it and implement pre-distortion to the video frame) This was developed about 5 years ago when the decode operations on the GPU were built into Cuda. Recently, the Codec capabilities of the GPUs have been implemented directly in the hardware and Nvidia provides a Codec SDK to decode (and encode) video. I’m trying to update my original project w/ the new SDK.
Within the example projects provided with the Codec SDK is an application showing the decode of a video stream using CUDA interop with OpenGL (called AppDecGL). The problem is that that example is built around using the FreeGLUT OpenGL library. I tried to adapt the code in use there (the demuxer and the decoder) for use in my GLFW code. However when I run the code, as it goes to display the first frame of video, I get an Unhandled Exception when it tries to run the line of code:
in the NvDecoder.cpp file.
Can anyone give me either:
- Some advice on how to debug this unhandled exception
- Point me to an example of using OpenGL GLFW with CUDA interop (and the newest decode capabilities of the Cuda SDK)?