Search code examples
jpeggpuimage-compressionpyopenglpyopencl

Implementing JPEG or JPEG2000 on GPU


I have a project where I should implement JPEG on a GPU.

Can anyone tell me where to start and how should I implement the algorithm?

I have installed Python, PyOpenCL and PyOpenGL. I also have Code Blocks and Microsoft Visual Studio.


Solution

  • If you want to implement JPEG 2000 on CUDA, you may want to take a look at existing implementations such as CUJ2K (http://cuj2k.sourceforge.net/), or the one by the Applications Department at Poznan (http://apps.man.poznan.pl/trac/jpeg2k/browser).

    However, be aware that the JPEG 2000 standard is quite complex. Given the chance, you may want to go for JPEG. In that case, as answered in this thread,

    The NPP library includes building block routines for implementing a JPEG codec. It is included as part of the CUDA distribution. Check out the JpegNPP sample in the SDK: http://docs.nvidia.com/cuda/cuda-samples/