setBaseQi method

void setBaseQi(
  1. int v
)

Replace the static base qi at runtime. Takes effect on the next encodeFrame call that does not pass a qiOverride and has no rate controller. v must be in [0, 127]. Note that the active minQi / maxQi clamps still apply.

Implementation

void setBaseQi(int v) {
  if (v < 0 || v > 127) {
    throw ArgumentError('setBaseQi: qi must be in [0,127] (got $v)');
  }
  _qi = v;
}