Package org.webrtc

Class DynamicBitrateAdjuster

java.lang.Object
org.webrtc.BaseBitrateAdjuster
org.webrtc.DynamicBitrateAdjuster
All Implemented Interfaces:
BitrateAdjuster

class DynamicBitrateAdjuster extends BaseBitrateAdjuster
BitrateAdjuster that tracks the bandwidth produced by an encoder and dynamically adjusts the bitrate. Used for hardware codecs that pay attention to framerate but still deviate from the target bitrate by unacceptable margins.
  • Field Details

    • BITRATE_ADJUSTMENT_SEC

      private static final double BITRATE_ADJUSTMENT_SEC
      See Also:
    • BITRATE_ADJUSTMENT_MAX_SCALE

      private static final double BITRATE_ADJUSTMENT_MAX_SCALE
      See Also:
    • BITRATE_ADJUSTMENT_STEPS

      private static final int BITRATE_ADJUSTMENT_STEPS
      See Also:
    • BITS_PER_BYTE

      private static final double BITS_PER_BYTE
      See Also:
    • deviationBytes

      private double deviationBytes
    • timeSinceLastAdjustmentMs

      private double timeSinceLastAdjustmentMs
    • bitrateAdjustmentScaleExp

      private int bitrateAdjustmentScaleExp
  • Constructor Details

    • DynamicBitrateAdjuster

      DynamicBitrateAdjuster()
  • Method Details