Data Structures | |
| struct | quantclass |
| quantization class table More... | |
Functions | |
| static void | II_samples (struct mad_bitptr *ptr, struct quantclass const *quantclass, mad_fixed_t output[3]) |
| Decodes three requantized Layer II samples from a bitstream. | |
| int | mad_layer_II (struct mad_stream *stream, struct mad_frame *frame) |
| Decodes a single Layer II frame. | |
Variables | |
| struct { | |
| unsigned int sblimit | |
| unsigned char const offsets [30] | |
| } | sbquant_table [5] |
| struct { | |
| unsigned short nbal | |
| unsigned short offset | |
| } | bitalloc_table [8] |
| static unsigned char const | offset_table [6][15] |
| offsets into quantization class table | |
| static struct quantclass | qc_table [17] |
| static void II_samples | ( | struct mad_bitptr * | ptr, | |
| struct quantclass const * | quantclass, | |||
| mad_fixed_t | output[3] | |||
| ) | [static] |
Decodes three requantized Layer II samples from a bitstream.
Definition at line 292 of file layer12.c.
References quantclass::bits, quantclass::C, quantclass::D, quantclass::group, mad_bit_read(), MAD_F_FRACBITS, mad_f_mul, quantclass::nlevels, and s.
Referenced by mad_layer_II().

| int mad_layer_II | ( | struct mad_stream * | stream, | |
| struct mad_frame * | frame | |||
| ) |
Decodes a single Layer II frame.
Definition at line 341 of file layer12.c.
References bitalloc_table, mad_header::bitrate, mad_header::crc_check, mad_header::crc_target, mad_stream::error, mad_header::flags, mad_frame::header, II_samples(), mad_bit_crc(), mad_bit_length(), mad_bit_read(), MAD_ERROR_BADCRC, MAD_ERROR_BADMODE, MAD_ERROR_BADSCALEFACTOR, mad_f_mul, MAD_FLAG_FREEFORMAT, MAD_FLAG_I_STEREO, MAD_FLAG_LSF_EXT, MAD_FLAG_PROTECTION, MAD_MODE_JOINT_STEREO, MAD_NCHANNELS, MAD_OPTION_IGNORECRC, mad_header::mode, mad_header::mode_extension, nbal, offset_table, offsets, mad_frame::options, mad_stream::ptr, qc_table, s, mad_header::samplerate, sblimit, sbquant_table, mad_frame::sbsample, and sf_table.

struct { ... } bitalloc_table[8] [static] |
Referenced by mad_layer_II().
unsigned char const offset_table[6][15] [static] |
Initial value:
{
{ 0, 1, 16 },
{ 0, 1, 2, 3, 4, 5, 16 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 },
{ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16 },
{ 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
}
Definition at line 267 of file layer12.c.
Referenced by mad_layer_II().
struct quantclass qc_table[17] [static] |
Referenced by mad_layer_II().
struct { ... } sbquant_table[5] [static] |
Referenced by mad_layer_II().
1.5.5