Ch. 6 · HEVC / H.265

한국어日本語
5 min

What Is SAO (Sample Adaptive Offset)? HEVC's In-Loop Filter Explained

Why HEVC added Sample Adaptive Offset (SAO) on top of deblocking: how band and edge offsets fix brightness bias and ringing in large, low-bitrate CTUs.

In Chapter 3 we learned SAO (Sample Adaptive Offset) as a concept. Now let's look at why HEVC adopted it. When large CTUs (up to 64×64) are compressed at a low bitrate, two characteristic artifacts become prominent.

ArtifactCauseSAO's response
Brightness bias (banding shift)Quantizing a large flat area pushes overall brightness to one sideBand offset — apply a correction per brightness band
Ringing / mosquito noiseHigh-frequency oscillation remains around sharp edgesEdge offset — correct local extremum pixels
Brightness profile near an edge Local extremum (outlier) Corrected →
SAO edge offset — compare the 'outlier pixels' left near an edge with their neighbors and correct them
In practice

SAO can be switched on and off per CTU, not per picture. Filtering an already clean area unnecessarily can actually smear detail, so the encoder uses RDO (Chapters 2 and 3) to decide, CTU by CTU, whether to apply SAO and how strongly. The principle from Chapter 3 applies here too: the standard defines only 'what can be done', and 'when to do it' is still up to the encoder.

SAOSample Adaptive Offset

An in-loop filter newly introduced in HEVC. Corrects bias and ringing with band/edge offsets.

Check yourself

Which artifact does SAO's 'edge offset' mode mainly target?