RE: [GD-General] JPG libs
Brought to you by:
vexxed72
From: Brian H. <bri...@py...> - 2001-11-09 18:19:28
|
I ended up using the IJG code as well. It compiles cleanly. It's fairly old, but it has very good documentation (in Word DOC form, unfortunately). It took me about an hour to integrate. I basically I went through FILELIST.DOC and copied over the set of files I thought I would need. You have to rename one file appropriately, and include another file as appropriate for memory management. In tried and true opensource fashion, I tossed them all into the same directory and compiled. Found a couple missing files, added those, and it worked fine. The only gotcha was that they didn't bother to do: #ifdef __cplusplus extern "C" { #endif So I just had to bracket all the headers with that to link properly. It's only about 30 lines of code to process a JPG (a lot fewer if you're just reading from STDIO, I had to write my own data source functions to handle reading from an in-memory buffer). Brian |