Expand description
ABR ladder computation — derive a sensible set of Rungs from a source
resolution.
Callers who want full control build Rungs by hand and skip this module
entirely. standard_ladder is the convenience path: it snaps to standard
short-side quantizations (2160/1440/1080/720/480/360/240), preserves the
source aspect ratio, even-aligns every dimension, and caps the top rung.
Constants§
- DEFAULT_
MAX_ SHORT_ SIDE - Default cap on the short side of any rung. Sources above this have their top rung clamped down (aspect preserved); rungs above it never appear.
Functions§
- standard_
ladder - Build a standard ladder for a source clip, every rung at default quality.
- standard_
ladder_ with_ quality - Same as
standard_ladderbut stamps every rung withquality.