Jump to content
  • Advertisement
Sign in to follow this  
AltecZZ

Good Image I/O Library?

This topic is 4201 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone recommend to me a good C++ library (or source code, I guess) for handling i/o of .raw image files? I've used QT for a while now but it doesn't handle .raw files. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.

Share this post


Link to post
Share on other sites
I have to say that I find DevIL to be terrible. The API design is totally brain-dead--it follows the brain-dead design of OpenGL in having a "bound" image (ilBindImage) to which all further operations apply, instead of simply adding an image handle parameter to the relevant functions. Also, the documentation is rather incomplete.

That said, there aren't many lightweight alternatives. I'd look at CImg if I were you.

Share this post


Link to post
Share on other sites
Quote:
Original post by jouley
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.


I read their license, and I wonder if I have to make my source files available if I use their library? Or is it just the DevIL sources?

Share this post


Link to post
Share on other sites
Quote:
Original post by PureW
Quote:
Original post by jouley
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.


I read their license, and I wonder if I have to make my source files available if I use their library? Or is it just the DevIL sources?


AFAIK, you're fine as long as you link dynamically rather than statically. However, you would do better to ask for clarification from the DevIL team - or the Free Software Foundation.

Share this post


Link to post
Share on other sites
There is also an OO wrapper for devil, if you don't like the gl style API.

As with other lgpl libraries, you can link dynamically without releasing source.

Share this post


Link to post
Share on other sites
I've heard that Phantoms solution is good. However i have never used it and so i will have to recommend FreeImage as a good solution, though it's a bit heavy.

Dave

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!