#include <config.h>
#include "lame.h"
#include "machine.h"
#include "encoder.h"
#include "util.h"
#include "lame_global_flags.h"
#include "newmdct.h"
#include "psymodel.h"
#include "lame-analysis.h"
#include "bitstream.h"
#include "VbrTag.h"
#include "quantize_pvt.h"
Include dependency graph for encoder.c:
Go to the source code of this file.
Typedefs | |
typedef FLOAT | chgrdata [2][2] |
Functions | |
static void | adjust_ATH (lame_internal_flags const *const gfc) |
static void | updateStats (lame_internal_flags *const gfc) |
static void | lame_encode_frame_init (lame_global_flags const *const gfp, const sample_t *inbuf[2]) |
int | lame_encode_mp3_frame (lame_global_flags *const gfp, sample_t const *inbuf_l, sample_t const *inbuf_r, unsigned char *mp3buf, int mp3buf_size) |
static void adjust_ATH | ( | lame_internal_flags const *const | gfc | ) | [static] |
Definition at line 56 of file encoder.c.
References ATH_t::aa_sensitivity_p, ATH_t::adjust, ATH_t::adjust_limit, lame_internal_flags::ATH, lame_internal_flags::channels_out, gfc, lame_internal_flags::loudness_sq, Max, lame_internal_flags::mode_gr, and ATH_t::use_adjust.
static void lame_encode_frame_init | ( | lame_global_flags const *const | gfp, | |
const sample_t * | inbuf[2] | |||
) | [static] |
Definition at line 186 of file encoder.c.
References BLKSIZE, gr_info::block_type, lame_internal_flags::channels_out, FFTOFFSET, lame_global_struct::framesize, gfc, gfp, i, lame_global_struct::internal_flags, lame_internal_flags::l3_side, lame_internal_flags::lame_encode_frame_init, mdct_sub48(), lame_internal_flags::mode_gr, SHORT_TYPE, and III_side_info_t::tt.
Referenced by lame_encode_mp3_frame().
Here is the call graph for this function:
int lame_encode_mp3_frame | ( | lame_global_flags *const | gfp, | |
sample_t const * | inbuf_l, | |||
sample_t const * | inbuf_r, | |||
unsigned char * | mp3buf, | |||
int | mp3buf_size | |||
) |
Definition at line 299 of file encoder.c.
References gr_info::block_type, lame_internal_flags::channels_out, FALSE, FFTOFFSET, lame_internal_flags::frac_SpF, gfc, gfp, lame_global_struct::internal_flags, JOINT_STEREO, lame_internal_flags::l3_side, L3psycho_anal(), L3psycho_anal_ns(), lame_internal_flags::lame_encode_frame_init, lame_encode_frame_init(), lame_global_struct::mode, lame_internal_flags::mode_gr, lame_internal_flags::ms_ratio, lame_global_struct::out_samplerate, lame_internal_flags::padding, PSY_NSPSYTUNE, lame_internal_flags::psymodel, lame_global_struct::psymodel, lame_internal_flags::slot_lag, TRUE, and III_side_info_t::tt.
Referenced by lame_encode_frame().
Here is the call graph for this function:
static void updateStats | ( | lame_internal_flags *const | gfc | ) | [static] |
Definition at line 154 of file encoder.c.
References lame_internal_flags::bitrate_blockType_Hist, lame_internal_flags::bitrate_index, lame_internal_flags::bitrate_stereoMode_Hist, gr_info::block_type, lame_internal_flags::channels_out, gfc, lame_internal_flags::l3_side, gr_info::mixed_block_flag, lame_internal_flags::mode_ext, lame_internal_flags::mode_gr, and III_side_info_t::tt.