/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 * * by the Xiph.Org Foundation https://xiph.org/ * * * ******************************************************************** function: bitrate tracking and management ********************************************************************/ #include <stdlib.h> #include <string.h> #include <math.h> #include <ogg/ogg.h> #include "vorbis/codec.h" #include "codec_internal.h" #include "os.h" #include "misc.h" #include "bitrate.h" /* compute bitrate tracking setup */ void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bm){ … } void vorbis_bitrate_clear(bitrate_manager_state *bm){ … } int vorbis_bitrate_managed(vorbis_block *vb){ … } /* finish taking in the block we just processed */ int vorbis_bitrate_addblock(vorbis_block *vb){ … } int vorbis_bitrate_flushpacket(vorbis_dsp_state *vd,ogg_packet *op){ … }