#include <config.h>
#include <assert.h>
#include <stdio.h>
#include "lame.h"
#include "console.h"
#include "brhist.h"
#include "parse.h"
#include "main.h"
#include "get_audio.h"
#include "portableio.h"
#include "timestatus.h"
Include dependency graph for main.c:
Go to the source code of this file.
Defines | |
#define | strchr index |
#define | strrchr rindex |
#define | memcpy(d, s, n) bcopy ((s), (d), (n)) |
#define | memmove(d, s, n) bcopy ((s), (d), (n)) |
#define | MAX_NOGAP 200 |
Functions | |
char * | strchr () |
char ** | strrchr () |
static int | parse_args_from_string (lame_global_flags *const gfp, const char *p, char *inPath, char *outPath) |
static FILE * | init_files (lame_global_flags *gf, char *inPath, char *outPath, int *enc_delay, int *enc_padding) |
int | lame_decoder (lame_global_flags *gfp, FILE *outf, int skip_start, char *inPath, char *outPath, int *enc_delay, int *enc_padding) |
static int | lame_encoder (lame_global_flags *gf, FILE *outf, int nogap, char *inPath, char *outPath) |
static void | brhist_init_package (lame_global_flags *gf) |
static void | parse_nogap_filenames (int nogapout, char *inPath, char *outPath, char *outdir) |
static void | print_lame_tag_leading_info (lame_global_flags *gf) |
static void | print_trailing_info (lame_global_flags *gf) |
int | main (int argc, char **argv) |
#define MAX_NOGAP 200 |
Referenced by main().
static void brhist_init_package | ( | lame_global_flags * | gf | ) | [static] |
Definition at line 434 of file main.c.
References brhist, brhist_init(), lame_get_VBR_max_bitrate_kbps(), and lame_get_VBR_min_bitrate_kbps().
Referenced by main().
Here is the call graph for this function:
static FILE* init_files | ( | lame_global_flags * | gf, | |
char * | inPath, | |||
char * | outPath, | |||
int * | enc_delay, | |||
int * | enc_padding | |||
) | [static] |
Definition at line 133 of file main.c.
References error_printf(), init_infile(), init_outfile(), and lame_get_decode_only().
Referenced by main().
Here is the call graph for this function:
int lame_decoder | ( | lame_global_flags * | gfp, | |
FILE * | outf, | |||
int | skip_start, | |||
char * | inPath, | |||
char * | outPath, | |||
int * | enc_delay, | |||
int * | enc_padding | |||
) |
Definition at line 174 of file main.c.
References console_flush(), console_printf(), decoder_progress(), decoder_progress_finish(), disable_wav_header, error_printf(), flush_write, mp3data_struct::framenum, mp3data_struct::framesize, get_audio16(), gfp, i, input_format, lame_get_encoder_delay(), lame_get_in_samplerate(), lame_get_num_channels(), lame_get_num_samples(), lame_get_out_samplerate(), lame_get_version(), mp3input_data, mp3data_struct::nsamp, sf_aiff, sf_mp1, sf_mp123, sf_mp2, sf_mp3, sf_raw, sf_wave, silent, swapbytes, mp3data_struct::totalframes, Write16BitsLowHigh(), WriteBytes(), WriteBytesSwapped(), and WriteWaveHeader().
Referenced by main().
Here is the call graph for this function:
static int lame_encoder | ( | lame_global_flags * | gf, | |
FILE * | outf, | |||
int | nogap, | |||
char * | inPath, | |||
char * | outPath | |||
) | [static] |
Definition at line 361 of file main.c.
References encoder_progress(), encoder_progress_begin(), encoder_progress_end(), error_printf(), flush_write, get_audio(), lame_encode_buffer_int(), lame_encode_flush(), lame_encode_flush_nogap(), and LAME_MAXMP3BUFFER.
Referenced by main().
Here is the call graph for this function:
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 598 of file main.c.
References BOOL, brhist, brhist_init_package(), close_infile(), display_bitrates(), error_printf(), frontend_close_console(), frontend_debugf(), frontend_errorf(), frontend_msgf(), frontend_open_console(), func, i, init_files(), input_format, lame_close(), lame_decoder(), lame_encoder(), lame_get_decode_only(), lame_get_VBR(), lame_init(), lame_init_bitstream(), lame_init_params(), lame_mp3_tags_fid(), lame_set_debugf(), lame_set_errorf(), lame_set_msgf(), lame_set_nogap_currentindex(), lame_set_nogap_total(), MAX_NOGAP, mp3_delay, mp3_delay_set, parse_args(), parse_args_from_string(), parse_nogap_filenames(), PATH_MAX, print_lame_tag_leading_info(), print_trailing_info(), RH_HIST, sf_unknown, silent, update_interval, usage(), and vbr_off.
Here is the call graph for this function:
static int parse_args_from_string | ( | lame_global_flags *const | gfp, | |
const char * | p, | |||
char * | inPath, | |||
char * | outPath | |||
) | [static] |
static void parse_nogap_filenames | ( | int | nogapout, | |
char * | inPath, | |||
char * | outPath, | |||
char * | outdir | |||
) | [static] |
static void print_lame_tag_leading_info | ( | lame_global_flags * | gf | ) | [static] |
Definition at line 527 of file main.c.
References console_printf(), and lame_get_bWriteVbrTag().
Referenced by main().
Here is the call graph for this function:
static void print_trailing_info | ( | lame_global_flags * | gf | ) | [static] |
Definition at line 534 of file main.c.
References console_printf(), error_printf(), lame_get_bWriteVbrTag(), lame_get_decode_on_the_fly(), lame_get_findReplayGain(), lame_get_noclipGainChange(), lame_get_noclipScale(), lame_get_RadioGain(), and print_clipping_info.
Referenced by main().
Here is the call graph for this function:
char* strchr | ( | ) |
char* * strrchr | ( | ) |