Skip to main content
GameDev.net gamedev.net
🔒 Locked

JPEG format

Started by vlovich May 26, 2003 at 2:51 PM 5 replies 1.1k views
Original Post
vlovich
vlovich
I''m not sure if this goes into this topic, but does anyone know how JPEG stores the image. How would I go about uncompressing it and displaying it on the screen.
Pipo DeClown
Pipo DeClown
I heard that JPEG is one of the hardest formats, maybe PNG is easier(it sure is better though) but I am not sure.
Check out www.wotsit.org
BriTeg
BriTeg
quote:
Original post by vlovich
I''m not sure if this goes into this topic, but does anyone know how JPEG stores the image. How would I go about uncompressing it and displaying it on the screen.


DirectX (the newer versions at least) can load jpgs directly (although maybe only from VB, I can''t remember if VC has a jpg loader function). Microsoft''s IPicture and GDI+ can also load jpgs, which you can blt onto DirectX surfaces or bitmaps, or load as a texture in OpenGL. Thus you don''t need to handle the format and uncompressing yourself.
Brianmiserere nostri <font color=#BC
S1CA
S1CA
http://www.jpeg.org/public/jpeglinks.html
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
AtelierVisca
AtelierVisca
quote:
Original post by DirectXXX
onthis site in sweat snippts section.

a sample code uses IntelJPG lib to load jpg on direct draw surface.


Unfortunately, you can no longer download the IJL (Intel JPEG Library) and their replacement is completely different. Searching around online won''t give any results either (that I could find), since most people seem to just link directly to the Intel site. If you want to use the IJL, I have a copy of the static link library and some save/load code I wrote for it ... but that''s it. (No sample source, no documentation, no dynamic link library, or dll).
James

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.