I am trying to modify JPEGNPP from the CUDA samples to load JPEG images and use it in the OpenGL program. The JPEGNPP loads JPEG image, rescales it, and saves the output. What I need is just load/decode the JPEG image, and get the raw image data.
I know nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW command performs inverse transform and saves the data into 8x8 blocks. How do I get raw image data from it?