Quote:
(b) To get the pixels from an actual JPEG image, the image has to
be decompressed rst. A library jpeg:o is provided, which contains
the following function dened in jpeg:h that decompresses a JPEG
image:
// this function reads a JPEG image from file named
// input_file_name
// and stores the pixel data in the file named
// output_file_name
// The function returns the number of bytes written
int loadJPG(const char* input_file_name,
const char * output_file_name);
So where are you running your program from and where is your JPEG that you are trying to load located on your computer?