Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

JPEG encoding with Huffman code

Status
Not open for further replies.

InverseUniverse

Newbie level 6
Joined
Oct 12, 2012
Messages
12
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Activity points
1,353
Hi All

I just wanted to confirm my understanding of the JPEG encoding method using Huffman code:

1. Matrix converted into a 1D sequency with a zigzag pattern.
2. The DC coefficient is encoded with DPCM (DC element of all blocks is relative to the 1st by difference).
3. A header is created for the DC coefficient by looking up the table for Huffman code for the DC coefficient's size, followed by its amplitude.
4. The AC coefficients are encoded by forming a pair consisting of (Run-length, size), where run-length is number of proceeding zeros and size is the bits it takes to represent the amplitude. The pair is looked up in Huffman tables and added as a header to their amplitude.

So, its safe to conclude that the Huffman table for DC and AC coefficients is constant.

Is this ok?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top