Dave Doga Oz
Dave Doga Oz

Reputation: 1268

Does JPEG Huffman coding use the same Huffman algorithm as the COMPRESS (gzip) algorithm?

My question is

Does JPEG Huffman coding use the same Huffman algorithm as the COMPRESS (gzip) algorithm?

Upvotes: 0

Views: 165

Answers (2)

user3344003
user3344003

Reputation: 21617

Short answer: NO. Long answer: It depends upon what part of the process yo are talking about. The the underling principles are the same but JPEG and PNG do Huffman coding differently. The major difference in how they encode the Huffman tables. The encoding of bits within the stream is the same.

Upvotes: 2

Harald K
Harald K

Reputation: 27084

According to WikiPedia it is:

Huffman coding today is often used as a "back-end" to some other compression methods. DEFLATE (PKZIP's algorithm) and multimedia codecs such as JPEG [...]

Deflate/PKZIP is pretty much the same as GZIP (LZ77 + Huffman).

Upvotes: 1

Related Questions