#include "mpeg3private.h"#include "mpeg3protos.h"#include "tables.h"

Go to the source code of this file.
Functions | |
| static int | select_table (mpeg3_layer_t *audio) |
| static int | step_one (mpeg3_layer_t *audio, unsigned int *bit_alloc, int *scale) |
| static int | step_two (mpeg3_layer_t *audio, unsigned int *bit_alloc, float fraction[2][4][SBLIMIT], int *scale, int x1) |
| int | mpeg3audio_dolayer2 (mpeg3_layer_t *audio, char *frame, int frame_size, float **output, int render) |
Variables | |
| static struct al_table | alloc_0 [] |
| static struct al_table | alloc_1 [] |
| static struct al_table | alloc_2 [] |
| static struct al_table | alloc_3 [] |
| static struct al_table | alloc_4 [] |
| int mpeg3audio_dolayer2 | ( | mpeg3_layer_t * | audio, | |
| char * | frame, | |||
| int | frame_size, | |||
| float ** | output, | |||
| int | render | |||
| ) |
Definition at line 375 of file layer2.c.
References bit_alloc(), mpeg3_layer_t::channels, mpeg3_layer_t::error_protection, mpeg3_layer_t::II_sblimit, mpeg3_layer_t::jsbound, mpeg3_layer_t::mode, mpeg3_layer_t::mode_ext, mpeg3audio_synth_stereo(), mpeg3bits_getbits(), mpeg3bits_use_ptr(), MPG_MD_JOINT_STEREO, SBLIMIT, SCALE_BLOCK, select_table(), mpeg3_layer_t::single, step_one(), step_two(), and mpeg3_layer_t::stream.
Referenced by read_frame().

| static int select_table | ( | mpeg3_layer_t * | audio | ) | [static] |
Definition at line 159 of file layer2.c.
References mpeg3_layer_t::alloc, mpeg3_layer_t::bitrate_index, mpeg3_layer_t::channels, mpeg3_layer_t::II_sblimit, mpeg3_layer_t::lsf, mpeg3_layer_t::sampling_frequency_code, and tables.
Referenced by mpeg3audio_dolayer2().
| static int step_one | ( | mpeg3_layer_t * | audio, | |
| unsigned int * | bit_alloc, | |||
| int * | scale | |||
| ) | [static] |
Definition at line 184 of file layer2.c.
References mpeg3_layer_t::alloc, mpeg3_layer_t::channels, mpeg3_layer_t::II_sblimit, mpeg3_layer_t::jsbound, mpeg3_layer_t::layer2_scfsi_buf, mpeg3bits_getbits(), step, and mpeg3_layer_t::stream.
Referenced by mpeg3audio_dolayer2().

| static int step_two | ( | mpeg3_layer_t * | audio, | |
| unsigned int * | bit_alloc, | |||
| float | fraction[2][4][SBLIMIT], | |||
| int * | scale, | |||
| int | x1 | |||
| ) | [static] |
Definition at line 267 of file layer2.c.
References mpeg3_layer_t::alloc, bits, mpeg3_layer_t::channels, cm, al_table::d, mpeg3_layer_t::II_sblimit, mpeg3_layer_t::jsbound, mpeg3_grp_3tab, mpeg3_grp_5tab, mpeg3_grp_9tab, mpeg3_muls, mpeg3bits_getbits(), step, and mpeg3_layer_t::stream.
Referenced by mpeg3audio_dolayer2().

Initial value:
{
{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} }
Initial value:
{
{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
{4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
{3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} }
1.5.5