View Full Version : JPG's & Video Memory

07-26-2000, 04:14 AM
I'm tired of the tons of Mbytes that BMP's take!! I want to be able to read JPG's! Does anyone have some source code I could use? Or just an address of a site that could tell how?
Another thing: using NeHe tutorials about texture, when we load them, do they go to the video card memory? If not, where to? And how do you take them out, free up the texture mem I mean.....

07-26-2000, 05:11 AM
Check out the Independent JPEG Group (http://www.ijg.org/) . I use their library and I'm quite satisfied. And don't be mislead by that webpage, their library includes JPEG compression and decompression, even though it just says compression.

[This message has been edited by DFrey (edited 07-26-2000).]

07-26-2000, 05:59 AM
I like intels jpg library. It's somewhere on their sight.

07-26-2000, 07:51 AM
If you're using Win32, you can load JPEGs in Win98 and Win2K by loading a bitmap with the BI_JPEG type.

Of course, you're going to have to load a file header, so go find the header type.



07-30-2000, 09:47 PM
In win32, u can also use OleLoadPicture to load the JPG first and then get the raw image to render.