EXIF/JPEG Code Help
-
Hello, I'm working on a project that obtains a picture from an SD card and sends it to a PC for examination. The picture is found by searching for a particular two-byte signature and determining what section of the picture is being processed. The first two bytes after the signature is the size of this section (header). The problem is that when I get to the actual picture information, I don't know how big this section is supposed to be--the header says the size is 10 bytes but this is The Picture Itself and the actual picture is around 1MB. The code searches for the signature, then reads in how many bytes this header is, then sends that many bytes, then starts searching for the next signature. Is anybody familiar enough with jpg or Exif compression (they're about the same, just a little more info at the beginning for Exif) to walk me through how to determine the size of each header? All the articles I've found either say that the size is in the header (which the size is a lot bigger than 10 bytes :-D ) or they're just really vague in presentation. Thanks for your time, Michael