Dev.K.
Dev.K.

Reputation: 2488

Extract Huffman Table Content From a JPEG Image

I'm new to JPEG / image compression. Basically I want to view / extract the content(bytes) of Huffman Table embedded inside a JPEG file.

Upvotes: 0

Views: 1279

Answers (1)

user3344003
user3344003

Reputation: 21617

There are two steps.

  1. You have to read the data from a DHT market. The structure is defined in the JPEG standard.

That gives you an array of counts--the number of codes of a given length.

  1. You have to convert the counts to huffman codes.

The JPEG standard explains that process.

Upvotes: 1

Related Questions