libvorbisenc documentation | libvorbisenc version 1.3.2 - 20101101

# ovectl_ratemanage2_arg

declared in "vorbis/vorbisenc.h"

The ovectl_ratemanage2_arg structure is used with vorbis_encode_ctl() and the OV_ECTL_RATEMANAGE2_GET and OV_ECTL_RATEMANAGE2_SET calls in order to query and modify specifics of the encoder's bitrate management configuration.

    struct ovectl_ratemanage2_arg {
      int    management_active;

      long   bitrate_limit_min_kbps;
      long   bitrate_limit_max_kbps;
      long   bitrate_limit_reservoir_bits;
      double bitrate_limit_reservoir_bias;

      long   bitrate_average_kbps;
      double bitrate_average_damping;
    };

### Relevant Struct Members

management_active
  nonzero if bitrate management is active
bitrate_limit_min_kbps
  Lower allowed bitrate limit in kilobits per second
bitrate_limit_max_kbps
  Upper allowed bitrate limit in kilobits per second
bitrate_limit_reservoir_bits
  Size of the bitrate reservoir in bits
bitrate_limit_reservoir_bias
  Regulates the bitrate reservoir's preferred fill level in a range from 0.0 to 1.0; 0.0 tries to bank bits to buffer against future bitrate spikes, 1.0 buffers against future sudden drops in instantaneous bitrate. Default is 0.1
bitrate_average_kbps
  Average bitrate setting in kilobits per second
bitrate_average_damping
  Slew rate limit setting for average bitrate adjustment; sets the minimum time in seconds the bitrate tracker may swing from one extreme to the other when boosting or damping average bitrate.

copyright © 2000-2010 Xiph.Org | Ogg Vorbis
libvorbisenc documentation | libvorbisenc version 1.3.2 - 20101101