 The residuals are coded using either variable-length coding or arithmetic coding.Both options use a very large context model.The "small" context model uses (11*11*11+1)/2=666 contexts based on the neighboring values of (Left-TopLeft), (TopLeft-Top), and (Top-TopRight).