Skip to main content

set_cbr_rate

Function set_cbr_rate 

Source
fn set_cbr_rate(rc: &mut NV_ENC_RC_PARAMS, bps: u32, vbv: u32)
Expand description

Write a CBR target into rc: the average and peak rate, the VBV, and an initial delay of the whole buffer. That delay is the driver’s default (gpu_bench_cbr_policy finds the two identical), stated so the HRD’s starting point is explicit and a rate change restates it with the buffer it belongs to.