
Go to the source code of this file.
Functions | |
| int | encode_init (frame_info *frame) |
| void | scalefactor_calc_new (double sb_sample[][3][SCALE_BLOCK][SBLIMIT], unsigned int scalar[][3][SBLIMIT], int nch, int sblimit) |
| INLINE double | mod (double a) |
| void | combine_LR_new (double sb_sample[2][3][SCALE_BLOCK][SBLIMIT], double joint_sample[3][SCALE_BLOCK][SBLIMIT], int sblimit) |
| void | find_sf_max (unsigned int sf_index[2][3][SBLIMIT], frame_info *frame, double sf_max[2][SBLIMIT]) |
| void | sf_transmission_pattern (unsigned int sf_index[2][3][SBLIMIT], unsigned int sf_selectinfo[2][SBLIMIT], frame_info *frame) |
| void | write_header (frame_info *frame, Bit_stream_struc *bs) |
| void | write_bit_alloc (unsigned int bit_alloc[2][SBLIMIT], frame_info *frame, Bit_stream_struc *bs) |
| void | write_scalefactors (unsigned int bit_alloc[2][SBLIMIT], unsigned int sf_selectinfo[2][SBLIMIT], unsigned int scalar[2][3][SBLIMIT], frame_info *frame, Bit_stream_struc *bs) |
| void | subband_quantization_new (unsigned int sf_index[2][3][SBLIMIT], double sb_samples[2][3][SCALE_BLOCK][SBLIMIT], unsigned int j_scale[3][SBLIMIT], double j_samps[3][SCALE_BLOCK][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], unsigned int sbband[2][3][SCALE_BLOCK][SBLIMIT], frame_info *frame) |
| void | write_samples_new (unsigned int sbband[2][3][SCALE_BLOCK][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], frame_info *frame, Bit_stream_struc *bs) |
| int | bits_for_nonoise_new (double SMR[2][SBLIMIT], unsigned int scfsi[2][SBLIMIT], frame_info *frame, float min_mnr, unsigned int bit_alloc[2][SBLIMIT]) |
| void | main_bit_allocation_new (double SMR[2][SBLIMIT], unsigned int scfsi[2][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], int *adb, frame_info *frame, options *glopts) |
| void | VBR_maxmnr_new (double mnr[2][SBLIMIT], char used[2][SBLIMIT], int sblimit, int nch, int *min_sb, int *min_ch, options *glopts) |
| int | VBR_bit_allocation_new (double SMR[2][SBLIMIT], unsigned int scfsi[2][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], int *adb, frame_info *frame, options *glopts) |
| void | maxmnr_new (double mnr[2][SBLIMIT], char used[2][SBLIMIT], int sblimit, int nch, int *min_sb, int *min_ch) |
| int | a_bit_allocation_new (double SMR[2][SBLIMIT], unsigned int scfsi[2][SBLIMIT], unsigned int bit_alloc[2][SBLIMIT], int *adb, frame_info *frame) |
| int a_bit_allocation_new | ( | double | SMR[2][SBLIMIT], | |
| unsigned int | scfsi[2][SBLIMIT], | |||
| unsigned int | bit_alloc[2][SBLIMIT], | |||
| int * | adb, | |||
| frame_info * | frame | |||
| ) |
Definition at line 1078 of file encode_new.c.
References bit_alloc(), bits, frame_header::error_protection, group, frame_info::header, init, frame_info::jsbound, line, maxmnr_new(), nbal, frame_info::nch, frame_info::sblimit, SCALE_BLOCK, SNR, step_index, and tablenum.
Referenced by main_bit_allocation_new().

| int bits_for_nonoise_new | ( | double | SMR[2][SBLIMIT], | |
| unsigned int | scfsi[2][SBLIMIT], | |||
| frame_info * | frame, | |||
| float | min_mnr, | |||
| unsigned int | bit_alloc[2][SBLIMIT] | |||
| ) |
Definition at line 634 of file encode_new.c.
References bit_alloc(), bits, frame_header::error_protection, group, frame_info::header, frame_info::jsbound, line, nbal, frame_info::nch, frame_info::sblimit, SCALE_BLOCK, SNR, step_index, and tablenum.
Referenced by main_bit_allocation_new().

| void combine_LR_new | ( | double | sb_sample[2][3][SCALE_BLOCK][SBLIMIT], | |
| double | joint_sample[3][SCALE_BLOCK][SBLIMIT], | |||
| int | sblimit | |||
| ) |
| int encode_init | ( | frame_info * | frame | ) |
Definition at line 104 of file encode_new.c.
References bitrate, frame_header::bitrate_index, fprintf, frame_info::header, line, MPEG_AUDIO_ID, nbal, frame_info::nch, NUMTABLES, s_freq, frame_header::sampling_frequency, SBLIMIT, step_index, steps, table_sblimit, tablenum, and frame_header::version.
| void find_sf_max | ( | unsigned int | sf_index[2][3][SBLIMIT], | |
| frame_info * | frame, | |||
| double | sf_max[2][SBLIMIT] | |||
| ) |
Definition at line 260 of file encode_new.c.
References multiple, frame_info::nch, and frame_info::sblimit.
Referenced by toolame().
| void main_bit_allocation_new | ( | double | SMR[2][SBLIMIT], | |
| unsigned int | scfsi[2][SBLIMIT], | |||
| unsigned int | bit_alloc[2][SBLIMIT], | |||
| int * | adb, | |||
| frame_info * | frame, | |||
| options * | glopts | |||
| ) |
Definition at line 733 of file encode_new.c.
References a_bit_allocation_new(), frame_info::actual_mode, available_bits(), bit_alloc(), bitrate, frame_header::bitrate_index, bits_for_nonoise_new(), FALSE, fprintf, frame_info::header, header, init, js_bound(), frame_info::jsbound, frame_header::lay, frame_header::mode, frame_header::mode_ext, MPG_MD_JOINT_STEREO, MPG_MD_MONO, MPG_MD_STEREO, s_freq, frame_header::sampling_frequency, frame_info::sblimit, TRUE, options::vbr, VBR_bit_allocation_new(), options::vbrlevel, vbrstats_new, options::verbosity, and frame_header::version.
Referenced by toolame().

| void maxmnr_new | ( | double | mnr[2][SBLIMIT], | |
| char | used[2][SBLIMIT], | |||
| int | sblimit, | |||
| int | nch, | |||
| int * | min_sb, | |||
| int * | min_ch | |||
| ) |
| INLINE double mod | ( | double | a | ) |
Definition at line 231 of file encode_new.c.
Referenced by decode_init(), l1_unscale(), l2_unscale_group(), and parse_mos().
| void scalefactor_calc_new | ( | double | sb_sample[][3][SCALE_BLOCK][SBLIMIT], | |
| unsigned int | scalar[][3][SBLIMIT], | |||
| int | nch, | |||
| int | sblimit | |||
| ) |
Definition at line 179 of file encode_new.c.
References SCALE_BLOCK, and scalefactor.
Referenced by toolame().
| void sf_transmission_pattern | ( | unsigned int | sf_index[2][3][SBLIMIT], | |
| unsigned int | sf_selectinfo[2][SBLIMIT], | |||
| frame_info * | frame | |||
| ) |
Definition at line 288 of file encode_new.c.
References frame_info::nch, and frame_info::sblimit.
Referenced by toolame().
| void subband_quantization_new | ( | unsigned int | sf_index[2][3][SBLIMIT], | |
| double | sb_samples[2][3][SCALE_BLOCK][SBLIMIT], | |||
| unsigned int | j_scale[3][SBLIMIT], | |||
| double | j_samps[3][SCALE_BLOCK][SBLIMIT], | |||
| unsigned int | bit_alloc[2][SBLIMIT], | |||
| unsigned int | sbband[2][3][SCALE_BLOCK][SBLIMIT], | |||
| frame_info * | frame | |||
| ) |
Definition at line 480 of file encode_new.c.
References a, b, bit_alloc(), frame_info::jsbound, line, frame_info::nch, frame_info::sblimit, SCALE_BLOCK, scalefactor, step_index, steps2n, and tablenum.
Referenced by toolame().

| int VBR_bit_allocation_new | ( | double | SMR[2][SBLIMIT], | |
| unsigned int | scfsi[2][SBLIMIT], | |||
| unsigned int | bit_alloc[2][SBLIMIT], | |||
| int * | adb, | |||
| frame_info * | frame, | |||
| options * | glopts | |||
| ) |
Definition at line 934 of file encode_new.c.
References bit_alloc(), bits, frame_header::error_protection, group, frame_info::header, init, frame_info::jsbound, line, nbal, frame_info::nch, frame_info::sblimit, SCALE_BLOCK, SNR, step_index, tablenum, and VBR_maxmnr_new().
Referenced by main_bit_allocation_new().

| void VBR_maxmnr_new | ( | double | mnr[2][SBLIMIT], | |
| char | used[2][SBLIMIT], | |||
| int | sblimit, | |||
| int | nch, | |||
| int * | min_sb, | |||
| int * | min_ch, | |||
| options * | glopts | |||
| ) |
Definition at line 888 of file encode_new.c.
References options::vbrlevel.
Referenced by VBR_bit_allocation_new().
| void write_bit_alloc | ( | unsigned int | bit_alloc[2][SBLIMIT], | |
| frame_info * | frame, | |||
| Bit_stream_struc * | bs | |||
| ) |
Definition at line 383 of file encode_new.c.
References bit_alloc(), frame_info::jsbound, line, nbal, frame_info::nch, putbits(), frame_info::sblimit, and tablenum.
Referenced by toolame().

| void write_header | ( | frame_info * | frame, | |
| Bit_stream_struc * | bs | |||
| ) |
Definition at line 356 of file encode_new.c.
References frame_header::bitrate_index, frame_header::copyright, frame_header::emphasis, frame_header::error_protection, frame_header::extension, frame_info::header, header, frame_header::lay, frame_header::mode, frame_header::mode_ext, frame_header::original, frame_header::padding, put1bit(), putbits(), frame_header::sampling_frequency, and frame_header::version.

| void write_samples_new | ( | unsigned int | sbband[2][3][SCALE_BLOCK][SBLIMIT], | |
| unsigned int | bit_alloc[2][SBLIMIT], | |||
| frame_info * | frame, | |||
| Bit_stream_struc * | bs | |||
| ) |
Definition at line 560 of file encode_new.c.
References bit_alloc(), bits, group, frame_info::jsbound, line, frame_info::nch, putbits(), frame_info::sblimit, SCALE_BLOCK, step_index, steps, and tablenum.
Referenced by toolame().

| void write_scalefactors | ( | unsigned int | bit_alloc[2][SBLIMIT], | |
| unsigned int | sf_selectinfo[2][SBLIMIT], | |||
| unsigned int | scalar[2][3][SBLIMIT], | |||
| frame_info * | frame, | |||
| Bit_stream_struc * | bs | |||
| ) |
Definition at line 413 of file encode_new.c.
References bit_alloc(), frame_info::nch, putbits(), and frame_info::sblimit.
Referenced by toolame().

1.5.5