Layer I


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

Function Documentation

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().

Here is the call graph for this function:

int mad_layer_I ( struct mad_stream stream,
struct mad_frame frame 
)


Variable Documentation

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)   
}
linear scaling table

Definition at line 59 of file layer12.c.

Referenced by I_sample().


Generated on Tue Jun 10 12:14:18 2008 for libmad by  doxygen 1.5.5