
Go to the source code of this file.
Data Structures | |
| struct | sb_alloc |
| struct | frame_header |
| struct | frame_info |
| struct | bit_stream_struc |
Defines | |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE 1 |
| #define | FLOAT float |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | NULL_CHAR '\0' |
| #define | MAX_U_32_NUM 0xFFFFFFFF |
| #define | PI 3.14159265358979 |
| #define | PI2 PI/2 |
| #define | PI4 PI/4 |
| #define | PI64 PI/64 |
| #define | LN_TO_LOG10 0.2302585093 |
| #define | VOL_REF_NUM 0 |
| #define | MPEG_AUDIO_ID 1 |
| #define | MPEG_PHASE2_LSF 0 |
| #define | MAC_WINDOW_SIZE 24 |
| #define | MONO 1 |
| #define | STEREO 2 |
| #define | BITS_IN_A_BYTE 8 |
| #define | WORD 16 |
| #define | MAX_NAME_SIZE 255 |
| #define | SBLIMIT 32 |
| #define | SSLIMIT 18 |
| #define | FFT_SIZE 1024 |
| #define | HAN_SIZE 512 |
| #define | SCALE_BLOCK 12 |
| #define | SCALE_RANGE 64 |
| #define | SCALE 32768 |
| #define | CRC16_POLYNOMIAL 0x8005 |
| #define | CRC8_POLYNOMIAL 0x1D |
| #define | MPG_MD_STEREO 0 |
| #define | MPG_MD_JOINT_STEREO 1 |
| #define | MPG_MD_DUAL_CHANNEL 2 |
| #define | MPG_MD_MONO 3 |
| #define | MPG_MD_LR_LR 0 |
| #define | MPG_MD_LR_I 1 |
| #define | MPG_MD_MS_LR 2 |
| #define | MPG_MD_MS_I 3 |
| #define | MINIMUM 4 |
| #define | MAX_LENGTH 32 |
| #define | READ_MODE 0 |
| #define | WRITE_MODE 1 |
| #define | ALIGNING 8 |
| #define | BINARY 0 |
| #define | ASCII 1 |
| #define | BUFFER_SIZE 4096 |
| #define | FLOAT8 float |
| #define | MIN(A, B) ((A) < (B) ? (A) : (B)) |
| #define | MAX(A, B) ((A) > (B) ? (A) : (B)) |
Typedefs | |
| typedef struct sb_alloc * | alloc_ptr |
| typedef sb_alloc | al_table [SBLIMIT][16] |
| typedef struct bit_stream_struc | Bit_stream_struc |
Enumerations | |
| enum | byte_order { order_unknown, order_bigEndian, order_littleEndian } |
Functions | |
| int | js_bound (int) |
| void | hdr_to_frps (frame_info *) |
| int | toolame_BitrateIndex (int, int) |
| int | toolame_SmpFrqIndex (long, int *) |
| void | new_ext (char *filename, char *extname, char *newname) |
Variables | |
| enum byte_order | NativeByteOrder |
| char * | mode_names [4] |
| char * | version_names [2] |
| double | s_freq [2][4] |
| int | bitrate [2][15] |
| double | multiple [64] |
| #define BITS_IN_A_BYTE 8 |
| #define CRC16_POLYNOMIAL 0x8005 |
| #define CRC8_POLYNOMIAL 0x1D |
| #define FFT_SIZE 1024 |
| #define FLOAT8 float |
| #define HAN_SIZE 512 |
Definition at line 46 of file common.h.
Referenced by psycho_1(), psycho_3_dump(), toolame(), and window_subband().
| #define LN_TO_LOG10 0.2302585093 |
Definition at line 31 of file common.h.
Referenced by psycho_2(), psycho_2_init(), psycho_4(), and psycho_4_spreading_function().
| #define MAX_U_32_NUM 0xFFFFFFFF |
Definition at line 24 of file common.h.
Referenced by parse_args(), parse_input_file(), and read_samples().
| #define MONO 1 |
| #define MPEG_AUDIO_ID 1 |
Definition at line 34 of file common.h.
Referenced by encode_init(), pick_table(), psycho_1(), toolame(), and toolame_SmpFrqIndex().
| #define MPEG_PHASE2_LSF 0 |
| #define PI64 PI/64 |
| #define STEREO 2 |
| #define WRITE_MODE 1 |
| typedef struct bit_stream_struc Bit_stream_struc |
| enum byte_order |
| void hdr_to_frps | ( | frame_info * | ) |
Definition at line 76 of file common.c.
References frame_info::actual_mode, encode_init(), frame_info::header, js_bound(), frame_info::jsbound, frame_header::mode, frame_header::mode_ext, MPG_MD_JOINT_STEREO, MPG_MD_MONO, frame_info::nch, pick_table(), and frame_info::sblimit.
Referenced by toolame().

| int js_bound | ( | int | ) |
Definition at line 64 of file common.c.
References fprintf.
Referenced by hdr_to_frps(), main_bit_allocation(), and main_bit_allocation_new().
| void new_ext | ( | char * | filename, | |
| char * | extname, | |||
| char * | newname | |||
| ) |
| int toolame_BitrateIndex | ( | int | , | |
| int | ||||
| ) |
Definition at line 95 of file common.c.
References bitrate, and fprintf.
Referenced by parse_args().
| int toolame_SmpFrqIndex | ( | long | , | |
| int * | ||||
| ) |
Definition at line 118 of file common.c.
References fprintf, MPEG_AUDIO_ID, and MPEG_PHASE2_LSF.
Referenced by aiff_check(), parse_args(), and parse_input_file().
| int bitrate[2][15] |
Definition at line 29 of file common.c.
Referenced by a52_syncinfo(), AC3_encode_init(), available_bits(), avcodec_string(), compute_stats(), AC3ConfigAudio::create_objects(), AssetEditWindow::create_objects(), do_video_stats(), encode_init(), main_bit_allocation(), main_bit_allocation_new(), MPA_encode_init(), mpeg3_ac3_check(), parse_args(), pick_table(), print_config(), print_report(), psycho_1(), psycho_3(), toolame(), and toolame_BitrateIndex().
| char* mode_names[4] |
| double multiple[64] |
Definition at line 34 of file common.c.
Referenced by find_sf_max(), pick_scale(), scale_factor_calc(), and subband_quantization().
| double s_freq[2][4] |
Definition at line 26 of file common.c.
Referenced by available_bits(), encode_init(), main_bit_allocation(), main_bit_allocation_new(), pick_table(), print_config(), psycho_3_init(), and toolame().
| char* version_names[2] |
1.5.5