For Programmers: Free Programming Magazines  


Home > Archive > Compression > October 2004 > Reconstruct JPEG Huffman Table?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Reconstruct JPEG Huffman Table?
Jackson

2004-09-28, 3:55 pm

The further I get into the study of the JPEG format, the more
questions I have :-)

Let's say I have a JPEG with everything BUT the huffman tables
included (perhaps it got corrupted) is it possible to reconstruct the
huffman tables?

Thanks again!
Jackson
Sebastian Gesemann

2004-10-09, 9:12 pm

On 28 Sep 2004, Jackson wrote:

> The further I get into the study of the JPEG format, the more
> questions I have :-)
>
> Let's say I have a JPEG with everything BUT the huffman tables
> included (perhaps it got corrupted) is it possible to reconstruct the
> huffman tables?


I'm not sure but I think there're some default tables defined.
If the JPEG file does not contain any huffman code tables you have to
use the "default tables" (which are defined in the JPEG standard)

I might be wrong, though. It's been a while since I tinkered with
the JPEG specification.


Ghis!
Sebastian

--
PGP-Key-ID (long): 572B1778A4CA0707

Matt Mahoney

2004-10-10, 3:55 pm

"Jackson" <jsmith193300@yahoo.com> wrote in message
news:680af4.0409280848.60a20c22@posting.google.com...
> Let's say I have a JPEG with everything BUT the huffman tables
> included (perhaps it got corrupted) is it possible to reconstruct the
> huffman tables?


If there was a *fast* way to do it, then the tables probably wouldn't be
included in the first place. There might be a *slow* way. Try all possible
tables, look at the picture...

Better yet, attack it like a monoalphabetic cipher...

-- Matt Mahoney



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com