Functions | |
| static mad_fixed_t | I_sample (struct mad_bitptr *ptr, unsigned int nb) |
| Decodes one requantized Layer I sample from a bitstream. | |
| int | mad_layer_I (struct mad_stream *stream, struct mad_frame *frame) |
| Decodes a single Layer I frame. | |
Variables | |
| static mad_fixed_t const | linear_table [14] |
| linear scaling table | |
| static mad_fixed_t I_sample | ( | struct mad_bitptr * | ptr, | |
| unsigned int | nb | |||
| ) | [static] |
Decodes one requantized Layer I sample from a bitstream.
Definition at line 80 of file layer12.c.
References linear_table, mad_bit_read(), MAD_F_FRACBITS, mad_f_mul, and MAD_F_ONE.
Referenced by mad_layer_I().

| int mad_layer_I | ( | struct mad_stream * | stream, | |
| struct mad_frame * | frame | |||
| ) |
Decodes a single Layer I frame.
Definition at line 108 of file layer12.c.
References mad_header::crc_check, mad_header::crc_target, mad_stream::error, mad_header::flags, mad_frame::header, I_sample(), mad_bit_crc(), mad_bit_read(), MAD_ERROR_BADBITALLOC, MAD_ERROR_BADCRC, MAD_ERROR_BADSCALEFACTOR, mad_f_mul, MAD_FLAG_I_STEREO, MAD_FLAG_PROTECTION, MAD_MODE_JOINT_STEREO, MAD_NCHANNELS, MAD_OPTION_IGNORECRC, mad_header::mode, mad_header::mode_extension, mad_frame::options, mad_stream::ptr, s, mad_frame::sbsample, and sf_table.

mad_fixed_t const linear_table[14] [static] |
Initial value:
{
MAD_F(0x15555555),
MAD_F(0x12492492),
MAD_F(0x11111111),
MAD_F(0x10842108),
MAD_F(0x10410410),
MAD_F(0x10204081),
MAD_F(0x10101010),
MAD_F(0x10080402),
MAD_F(0x10040100),
MAD_F(0x10020040),
MAD_F(0x10010010),
MAD_F(0x10008004),
MAD_F(0x10004001),
MAD_F(0x10002000)
}
Definition at line 59 of file layer12.c.
Referenced by I_sample().
1.5.5