#include <stdio.h>#include <string.h>#include <ctype.h>#include <stdlib.h>#include "common.h"#include "options.h"#include "encode_new.h"#include "tables.h"

Go to the source code of this file.
Functions | |
| int | js_bound (int m_ext) |
| void | hdr_to_frps (frame_info *frame) |
| int | toolame_BitrateIndex (int bRate, int version) |
| int | toolame_SmpFrqIndex (long sRate, int *version) |
| void | new_ext (char *filename, char *extname, char *newname) |
Variables | |
| char * | mode_names [4] = { "stereo", "j-stereo", "dual-ch", "single-ch" } |
| char * | version_names [2] = { "MPEG-2 LSF", "MPEG-1" } |
| double | s_freq [2][4] = { {22.05, 24, 16, 0}, {44.1, 48, 32, 0} } |
| int | bitrate [2][15] |
| double | multiple [64] |
| enum byte_order | NativeByteOrder = order_unknown |
| void hdr_to_frps | ( | frame_info * | frame | ) |
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 | m_ext | ) |
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 | bRate, | |
| int | version | |||
| ) |
Definition at line 95 of file common.c.
References bitrate, and fprintf.
Referenced by parse_args().
| int toolame_SmpFrqIndex | ( | long | sRate, | |
| int * | version | |||
| ) |
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] |
Initial value:
{
{0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160},
{0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384}
}
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] = { "stereo", "j-stereo", "dual-ch", "single-ch" } |
| double multiple[64] |
Initial value:
{
2.00000000000000, 1.58740105196820, 1.25992104989487,
1.00000000000000, 0.79370052598410, 0.62996052494744, 0.50000000000000,
0.39685026299205, 0.31498026247372, 0.25000000000000, 0.19842513149602,
0.15749013123686, 0.12500000000000, 0.09921256574801, 0.07874506561843,
0.06250000000000, 0.04960628287401, 0.03937253280921, 0.03125000000000,
0.02480314143700, 0.01968626640461, 0.01562500000000, 0.01240157071850,
0.00984313320230, 0.00781250000000, 0.00620078535925, 0.00492156660115,
0.00390625000000, 0.00310039267963, 0.00246078330058, 0.00195312500000,
0.00155019633981, 0.00123039165029, 0.00097656250000, 0.00077509816991,
0.00061519582514, 0.00048828125000, 0.00038754908495, 0.00030759791257,
0.00024414062500, 0.00019377454248, 0.00015379895629, 0.00012207031250,
0.00009688727124, 0.00007689947814, 0.00006103515625, 0.00004844363562,
0.00003844973907, 0.00003051757813, 0.00002422181781, 0.00001922486954,
0.00001525878906, 0.00001211090890, 0.00000961243477, 0.00000762939453,
0.00000605545445, 0.00000480621738, 0.00000381469727, 0.00000302772723,
0.00000240310869, 0.00000190734863, 0.00000151386361, 0.00000120155435,
1E-20
}
Definition at line 34 of file common.c.
Referenced by find_sf_max(), pick_scale(), scale_factor_calc(), and subband_quantization().
| enum byte_order NativeByteOrder = order_unknown |
| double s_freq[2][4] = { {22.05, 24, 16, 0}, {44.1, 48, 32, 0} } |
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] = { "MPEG-2 LSF", "MPEG-1" } |
1.5.5