Ogljpeg Code
JPEG decompression accelerated on GPU using OpenGL compute shaders
Status: Alpha
Brought to you by:
ondra91
Ogljpeg ======= Ogljpeg is library for baseline JPEG decompression on GPU. This package contains C and GLSL source code for accellerated JPEG docding using GPU. It implements JPEG baseline decoding process. Utility for lossles format conversion is included. Measurement tool is also included. Library ======= It requires at least OpenGL 4.3 and needs to be linked against libGL and libGLEW. Interface --------- Ogljpeg's API is fairly simple and it consists of few basic functions which should become available after including ogljpeg.h. Workflow -------- This is simple ogljpeg workflow which should be followed for jpeg decoding. ogljpegInit(); repeat: (read jpeg file into memory) jreadOpenMemory(); ogljpeg2tex(); jreadFree(); ogljpegFree(); Utility for lossless conversion =============================== Implementation is mostly based on libjpeg's jdtrans and even uses some of libjpeg's files (libjpeg source codes available on http://www.ijg.org/files). Usage: ./ogljpeg_converter <input file> [<output file>] If output file isn't specified then input file is overwritten. Measurement tool ================ ./jpeg [-s <N>] [-c|-g] [-x] [-i] [-p] -f <file> -s <N> How many samples should be use for value averaging (default is 1) -c Decompress using CPU (uses available libjpeg library) -g Decompress using GPU (default) -x Exit after <N> samples -p Print progress (number of actual sample)