"usao" <ro*@argus.lpl.arizona.edu> wrote in message news
Does anyone know where I can find C subroutines to read JPEG
and/or TIFF files into 2-dimensional C arrays?
You can only use a 2d array if you know the image dimensions at compile
time. Even here it will be a nuisance - the image[y][x] notation looks
tempting, but to use it all the functions that work on the image will have
to have the dimensions hardcoded in.
Much better to use malloc() and pass width and height around internally.
As for a JPEG codec, try a websearch for JPEG and "codec" (just searching
for "JPEG" brings up nothing but porn sites).