libvorbisenc documentation

libvorbisenc release 1.1 - 20040709

ov_ectl_ratemanage2_arg

declared in "vorbis/vorbisenc.h"

The ov_ectl_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 © 2004 vorbis team

Ogg Vorbis
team@vorbis.org

vorbisfile documentation

libvorbisenc release 1.1 - 20040709