info:jpg_headers_explained
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
info:jpg_headers_explained [2009/04/23 14:54] – created tomgee | info:jpg_headers_explained [2009/04/23 14:55] (current) – tomgee | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | JPEG Information | + | ===== JPEG Information |
Digital Cameras save images in JFIF (usually incorrectly called JPEG or if you're an MS-DOS user JPG) format. Anyway, " | Digital Cameras save images in JFIF (usually incorrectly called JPEG or if you're an MS-DOS user JPG) format. Anyway, " | ||
- | 0xffd8 - Start Of Image | + | * 0xffd8 - Start Of Image |
- | 0xfffe - Comment (Optional) | + | |
- | 0xffdb - Quantization Table | + | |
- | 0xffc0 - Start Of Frame (Baseline) | + | |
- | 0xffc4 - Huffman Table (Sometimes ommited from mjpeg files) | + | |
- | 0xffda - Start Of Scan (This is the actual compressed image) | + | |
- | 0xffd9 - End Of Image | + | |
Why These Images Are Corrupt | Why These Images Are Corrupt | ||
Line 15: | Line 16: | ||
So what's on a JPEG created by this camera: | So what's on a JPEG created by this camera: | ||
- | 0xffd8 - Start Of Image | + | * 0xffd8 - Start Of Image |
- | 0xffe1 - Application Data | + | |
- | 0xffdb - Quantization Table | + | |
- | 0xffc4 - Huffman Table | + | |
- | 0xffc0 - Start Of Frame (Baseline) | + | |
- | 0xffda - Start Of Scan | + | |
- | 0xffd9 - End Of Image | + | |
This is all okay except for in the example file I used there are 8 extra padding bytes before the 0xffd9 and a bunch of extra garbage after the file. Actually, it seems to be padded by 11 bytes, but the IJG library only seems to complain about the 8 byte padding. I haven' | This is all okay except for in the example file I used there are 8 extra padding bytes before the 0xffd9 and a bunch of extra garbage after the file. Actually, it seems to be padded by 11 bytes, but the IJG library only seems to complain about the 8 byte padding. I haven' |
info/jpg_headers_explained.1240512855.txt.gz · Last modified: 2009/04/23 14:54 by tomgee