PDA

View Full Version : JPEG implementation in OpenCL?



michael
02-22-2010, 03:59 AM
Is there an open source OpenCL JPEG encoder/decoder available? Or perhaps a different image compression/decompression in OpenCL source?

I saw kungen85's post (http://www.khronos.org/message_boards/viewtopic.php?f=28&t=2102) that he was getting to know OpenCL using parts of the JPEG compression, but I haven't seen any mention of a full, performance-oriented implementation. This seems like an obvious application for OpenCL, surely it exists?

dbs2
02-23-2010, 01:26 AM
Getting a high-performance JPEG implementation on OpenCL will be very architecture-dependent. (E.g., you'll want to use shared memory and know how big it is on Nvidia, and be very careful with vectors on AMD.) Parts of JPEG are highly parallel (color space transformation, color down-sampling, DCT, per-block Huffman encoding) and parts are not (the actual Huffman encoding itself, zero counting*, DC Huffman encoding, and final assembly). Making a working, high-performance JPEG implementation is a large amount of work. I suspect the only people with a strong incentive to do this would do so for a competitive advantage (e.g., ARM, Apple, Nokia) and wouldn't have any interest in releasing the code.

Ifer
10-21-2011, 01:44 AM
Get a local copy of the jpeg-opencl repository with this command:
git clone https://code.google.com/p/jpeg-opencl/

quietroit
11-04-2011, 05:00 AM
Get a local copy of the jpeg-opencl repository with this command:
git clone https://code.google.com/p/jpeg-opencl/
it works, thanx