DC coefficient coding

DC coefficients are predictive coded. Prediction is taken from DC coefficients of neighboring blocks. The same seven predictors as in lossless mode are used. (see lesson 6 for details) Prediction errors are coded according to the predefined Huffman coding table.

A part of the table of Huffman code

Symbol Codeword
0  00
1  010
2  011
3  100
4  101
5  110
6  1110
7  11110
8  111110
9  1111110
10  11111110
11  111111110