reservoir.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int ResvFrameBegin (lame_global_flags const *gfp, int *mean_bits)
void ResvMaxBits (lame_global_flags const *gfp, int mean_bits, int *targ_bits, int *max_bits, int cbr)
void ResvAdjust (lame_internal_flags *gfc, gr_info const *gi)
void ResvFrameEnd (lame_internal_flags *gfc, int mean_bits)


Function Documentation

void ResvAdjust ( lame_internal_flags gfc,
gr_info const *  gi 
)

Definition at line 247 of file reservoir.c.

References gfc, gr_info::part2_3_length, gr_info::part2_length, and lame_internal_flags::ResvSize.

Referenced by iteration_finish_one(), and VBR_new_iteration_loop().

int ResvFrameBegin ( lame_global_flags const *  gfp,
int *  mean_bits 
)

Definition at line 82 of file reservoir.c.

References lame_global_struct::brate, lame_global_struct::disable_reservoir, getframebits(), gfc, gfp, lame_global_struct::internal_flags, lame_internal_flags::l3_side, plotting_data::mean_bits, Min, lame_internal_flags::mode_gr, lame_global_struct::out_samplerate, lame_internal_flags::pinfo, III_side_info_t::resvDrain_pre, lame_internal_flags::ResvMax, plotting_data::resvsize, lame_internal_flags::ResvSize, lame_internal_flags::sideinfo_len, and lame_global_struct::strict_ISO.

Referenced by calc_target_bits(), CBR_iteration_loop(), get_framebits(), VBR_new_iteration_loop(), VBR_new_prepare(), VBR_old_iteration_loop(), and VBR_old_prepare().

Here is the call graph for this function:

void ResvFrameEnd ( lame_internal_flags gfc,
int  mean_bits 
)

Definition at line 260 of file reservoir.c.

References gfc, lame_internal_flags::l3_side, III_side_info_t::main_data_begin, Min, lame_internal_flags::mode_gr, III_side_info_t::resvDrain_post, III_side_info_t::resvDrain_pre, lame_internal_flags::ResvMax, and lame_internal_flags::ResvSize.

Referenced by VBR_new_iteration_loop(), and VBR_old_iteration_loop().

void ResvMaxBits ( lame_global_flags const *  gfp,
int  mean_bits,
int *  targ_bits,
int *  max_bits,
int  cbr 
)

Definition at line 198 of file reservoir.c.

References lame_global_struct::disable_reservoir, gfc, gfp, lame_global_struct::internal_flags, lame_internal_flags::ResvMax, lame_internal_flags::ResvSize, and lame_internal_flags::substep_shaping.

Referenced by on_pe().


Generated on Sun Dec 2 11:36:56 2007 for LAME by  doxygen 1.5.2