← Back

ofxTurboJpeg

github.com/armadillu/ofxTurboJpeg · @armadillu
OF 0.11 Graphics

Rough OF addon that uses turbo-jpeg lib to read and write jpegs. 2-3 times faster than OF's freeImage based jpeg en/decoder

34 28 Last commit 5y ago Created 14y ago

Forks

Forks pushed to more recently than armadillu/ofxTurboJpeg itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

Daandelange/ofxTurboJpeg by @Daandelange · ★ 0 · pushed 1y ago
kylemcdonald/ofxTurboJpeg by @kylemcdonald · ★ 1 · pushed 2y ago

Branches ahead of main

These branches have commits not yet on main — could be unmerged fixes or work in progress worth a look.

v2.0 1 commit ahead · last commit 8y ago
feature/updateLibs 1 commit ahead · last commit 9y ago

README

About

Rough OF addon that uses turbo-jpeg lib to read and write jpegs. 2-4 times faster than OF's freeImge based jpeg en/decoder.

You will need to install libjpeg-turbo (http://sourceforge.net/projects/libjpeg-turbo/) and its dylibs or freemImage's internal version of libjpeg will conflict with the one required by libjpeg-turbo, throwing a "Wrong JPEG library version: library is 80, caller expects 62" error. Alternatively you can just place the "libturbojpeg.dylib" by the binary and it should work. Only tested on OSX Lion.

ofxTurboJpeg turbo; //load jpeg ofImage image = turbo.load("loadTest.jpg"); //save jpeg turbo.save(image, "save turbo.jpg", 75);

ofxTurboJpeg screenshot

Compiling



Visual studio 2015 (instructions by tgfrerer and mattfelsen) turboJPEG libraries for vs2015 compiled straight off the sources using the following recipe: download turbojpeg source v1.4.1 download nasm (net assembler) add nasm.exe to your %PATH% environment variable this depends on where you installed nasm, but should be something like C:\Users\YOUR_USERNAME\AppData\Local\nasm edit in Control Panel > System > Advanced system settings > Environment variables > Path use cmake-gui.exe to build visual studio project files open and compile libjpeg-turbo.sln in Debug and Release modes

Get this addon

HTTPS
SSH