ratedistortionoptimering
Rate-distortion optimization, referred to in Scandinavian languages as ratedistortionoptimering, is a set of techniques used in lossy data compression to balance the amount of data (rate) with the fidelity of the reconstructed signal (distortion). Its goal is to choose coding decisions that minimize the overall cost given a target bitrate or quality constraint.
The standard approach uses a Lagrangian cost function J = D + λR, where D measures distortion (for
In video codecs such as H.264/AVC, HEVC, VP9, and AV1, RD optimization is embedded in mode decision,
Practical RD optimization increases encoder complexity due to evaluating many candidates, so fast heuristics and early