How to convert NvMediaImage to dwImageCUDA for an image?

The work required me to convert NvMediaImage to dwImageCUDA,I tried many times and failed.I hope someone can help me.

Dear kmyang,
Could you take a look at Image Streamer samples in DW (/usr/local/driveworks/samples/src/image). You need to create a NVMEDIA -> CUDA Image Streamer