Why CABAC is so efficient: not arithmetic coding alone, but context models that update each symbol's probability on the fly from neighboring blocks.
In the last lesson we said arithmetic coding reflects probabilities precisely. But where do those probabilities come from? If you use a fixed table, you miss statistics that change from scene to scene, even from block to block.
Context modeling is a technique that 'estimates the probability of the value being coded right now from surrounding information.' For example, 'if the left and upper blocks both had zero residual, the current block is probably zero too' — you switch probability tables depending on the context.
When you do arithmetic coding with the probability obtained this way, the more the prediction is right (that is, the more 0 actually shows up), the fewer bits you spend. And as coding proceeds, the coder observes the real statistics and updates the probabilities adaptively — that's the 'Adaptive' in CABAC.
An entropy coder is inherently sequential. To decode one bit you need the preceding state (the probabilities), so it's hard to parallelize. HEVC's tiles and WPP (Wavefront Parallel Processing) are the answer to exactly this problem: how to untangle CABAC's serial nature across multiple hardware cores (covered in Chapter 6).
A technique for estimating a symbol's probability from surrounding information.
A probability that is updated on the fly according to the statistics actually observed.
The binary unit that gets arithmetic-coded in CABAC. A syntax value is binarized into several bins.
What role does the 'context' play in CABAC?