GIDForums  

Go Back   GIDForums > Webmaster Forums > Graphics Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Mar-2004, 03:25
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,373
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

JPG File Format


I've been searching for a couple days now and still haven't found a good definitive description of a JPG file. I have some general formats, but the format and the file itself does not coincide. The problem comes with the "ff e1" header bytes. The file contains:
Quote:
00000000 FF D8 FF E0 00 10 4A 46 49 46 00 01 02 01 01 2C
00000010 01 2C 00 00 FF E1 0A B4 45 78 69 66 00 00 4D 4D
00000020 00 2A 00 00 00 08 00 08 01 0E 00 02 00 00 00 18
00000030 00 00 00 6E 01 12 00 03 00 00 00 01 00 01 00 00
00000040 01 1A 00 05 00 00 00 01 00 00 00 86 01 1B 00 05
00000050 00 00 00 01 00 00 00 8E 01 28 00 03 00 00 00 01
00000060 00 02 00 00 01 31 00 02 00 00 00 1B 00 00 00 96
00000070 01 32 00 02 00 00 00 14 00 00 00 B1 87 69 00 04
00000080 00 00 00 01 00 00 00 C8 00 00 00 F4 50 72 6F 63
00000090 65 73 73 65 64 20 77 69 74 68 20 4D 61 78 49 6D
000000A0 20 44 4C 00 00 00 01 2C 00 00 00 01 00 00 01 2C
000000B0 00 00 00 01 41 64 6F 62 65 20 50 68 6F 74 6F 73
000000C0 68 6F 70 20 43 53 20 57 69 6E 64 6F 77 73 00 32
000000D0 30 30 34 3A 30 32 3A 31 34 20 30 30 3A 34 34 3A
000000E0 31 30 00 00 00 00 00 03 A0 01 00 03 00 00 00 01
000000F0 FF FF 00 00 A0 02 00 04 00 00 00 01 00 00 06 D3
00000100 A0 03 00 04 00 00 00 01 00 00 04 9A 00 00 00 00
00000110 00 00 00 06 01 03 00 03 00 00 00 01 00 06 00 00
00000120 01 1A 00 05 00 00 00 01 00 00 01 42 01 1B 00 05
00000130 00 00 00 01 00 00 01 4A 01 28 00 03 00 00 00 01
00000140 00 02 00 00 02 01 00 04 00 00 00 01 00 00 01 52
00000150 02 02 00 04 00 00 00 01 00 00 09 5A 00 00 00 00
00000160 00 00 00 48 00 00 00 01 00 00 00 48 00 00 00 01
00000170 FF D8 FF E0 00 10 4A 46 49 46 00 01 02 01 00 48
00000180 00 48 00 00 FF ED 00 0C 41 64 6F 62 65 5F 43 4D
Alledgedly, the two bytes after "FF Ex" represent the length of the current block. In this case, the size at 16h clocks in at a whopping AB4h bytes. But the next block is a mere 15Ch bytes after the "FF E1"

Is there a better definition somewhere? wotsit.org was helpful, but no explanation for this problem is in their documentation (unless I missed it or misread)

Thanks
__________________

The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
  #2  
Old 10-May-2004, 16:18
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
You can get the source code for jpeg compression here:
http://ftp.belnet.be/pub/mirror/suns...0/jpegsr6b.zip

I found them from this site: http://www.computerbuddies.us/what_is_a_jpg.htm

Or maybe your answer will be found here: http://www.faqs.org/faqs/jpeg-faq/ and here: http://www.faqs.org/faqs/compression-faq/

Rob
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28
Re: Programming Techniques WaltP C Programming Language 0 09-Mar-2004 23:56
C++ file I/O CronoX C++ Forum 36 09-Mar-2004 17:28
[Tutorial] Standard I/O aaroncohn C Programming Language 20 27-Feb-2004 21:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:26.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.