Skip to main content

Module rate_distortion

Module rate_distortion 

Source
Expand description

Rate-distortion analysis for optimal encoding parameter selection.

Models the trade-off between bitrate and quality to help select the best CRF, QP, or bitrate for a given quality target. Provides RD-curve fitting, operating point selection, and Bjontegaard-delta (BD-rate) comparison.

Structs§

RdCurve
An RD curve consisting of multiple measurement points.
RdPoint
A single rate-distortion measurement point.

Enums§

QualityMetric
Quality metric type used in the analysis.

Functions§

average_quality_delta
Compute the average quality difference between two RD curves over their overlapping bitrate range (simplified BD-rate style comparison). Positive means curve_b has higher quality at the same bitrate.
efficiency
Compute the efficiency of a point as quality per kbps.