CAVLC in H.264
Encode the 16 integers
VLC table selection for coef_token
Coefficient Level (sign+magnitude) Coding
Zero Coding
Number Coding
Coef-token>>
TotalCoeffs – number of non-zero coefficients
T1 – Trailing Ones (0-3)
Sign of each digit in T1
Coef-token
Upper and left previously coded blocks
N=(Nu+Nl)/2
N=Nu
N=Nl
3 VLC and 1 FLC tables
Encode for coeff and T1s
-0101 1110010010 000000 010063
-0101 100011 010000 01010000 0001 0162
-0101 010011 100000 01100000 0000 11061
-0101 000001 0010000 0011 10000 0000 0111 160
-0100 1110100011 00000 10053
-0100 100100 10000 1010000 0010 152
-0100 010100 00000 1100000 0001 1051
-0100 000001 0110000 01000000 0000 11150
0000 0000011 11101101000000 1143
0000 00100011 100101 10001 010000 010142
0000 00110011 010101 00001 100000 0011 041
0000 100011 000001 1110000 01110000 0001 1140
0001 010010 11110001010001 133
0000 0100010 100111 00010 010000 10132
0000 0110010 010110 0
0010 100000 011031
0000 110010 000010 000000 1110000 0011 130
0010001 10110101100122
0001 100001 010111 10011 10001 0021
0001 000001 000010 110001 110000 011120
10000 011110100111
0001 110000 000011 110010 110001 0110
010000 11111111100
nC = = -18 <= nC4 <= nC < 82 <= nC < 40 <= nC < 2total_coefftrailing_ones