fn level_rate(codec: Codec, bps: u64, weighted: bool) -> u64
The rate a codec level has to admit for a peak of bps: AV1’s weighed by NVENC_AV1_RATE where the driver holds a level to that share.
codec
bps
NVENC_AV1_RATE