Skip to main content

Module rate

Module rate 

Source
Expand description

Rate control: turning a congestion-control bandwidth estimate into the bitrate the encoder should actually produce at.

Control is the one place this policy lives, so every sender backs off the same way. It’s a pure function of the estimate: feed it every value from a bandwidth::Consumer and hand what it returns to Encoder::set_bitrate.

Structs§

Control
Maps bandwidth estimates onto a target bitrate, per a Policy.
Policy
How a bandwidth estimate maps onto the bitrate a sender should produce at.