Good deal. Now a couple more pointers.
You have an array which now has enough space to hold all of the pixel values. You can modify your code to read it in one fread() call if you like and...
Type: Posts; User: KCfromNC
Good deal. Now a couple more pointers.
You have an array which now has enough space to hold all of the pixel values. You can modify your code to read it in one fread() call if you like and...
If you're reading unsigned chars into pix/mem[][], why is mem_loc a pointer to an integer (or integer array)? Those types should be consistent.
Also, since you're reading an image that's of size...
Trying to link the provided jpeg.o compiled for Linux using GCC for windows will bomb. Linux GCC doesn't add leading underscores to function names while Windows GCC does. You'll get lots of errors...