DIGIT-ARC read-only archive · snapshot: July 23, 2026

jpg file load in C/C++

4 posts · originally from https://geek.digit.in/community/threads/jpg-file-load-in-c-c.51758/

L
legolas Original post #1
Mar 8, 2007 at 6:07 PM
Hi,

I have to program a fft function, which i/ps and image and calculates the fft/ifft of the image... I would like to know the syntax for loading a jpg file in the desired format, like the RGB components separated please...

thks,
cedance.
Ganeshkumar
Mar 8, 2007 at 6:19 PM
I am too intrested in Knowing that....
L
legolas #3
Mar 9, 2007 at 5:50 AM
can any1 link me to some C/C++ forum which might help in this regard. I need it relatively faster! :(

thks,
legolas
L
legolas #4
Mar 12, 2007 at 7:29 PM
Ok, finally I got some answers from other forums, coz jpeg is a compressed format, for loading the information abt the pixels in the RGB format, we have to first uncompress the image using the specifications mentioned in the jpeg manual it seems. I am on it, trying to uncompress the image getting the pixel values. I would definitely post the code, if i am done with it. i dont kno how complex it is yet.

thanks,
legolas.