GithubHelp home page GithubHelp logo

kidapu / ofxturbojpeg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armadillu/ofxturbojpeg

0.0 2.0 0.0 9.67 MB

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

Home Page: http://uri.cat

Makefile 16.18% C++ 13.55% C 70.27%

ofxturbojpeg's Introduction

#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
    • find turbojpeg-static.lib in build\[Debug|Release] and copy into the proper locations in the ofxTurboJpeg addon

ofxturbojpeg's People

Contributors

armadillu avatar genekogan avatar mattfelsen avatar robotconscience avatar satoruhiga avatar tgfrerer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.