layer12.c File Reference

Implements MPEG Layer I and Layer II methods for mad_stream structure. More...

#include "global.h"
#include "fixed.h"
#include "bit.h"
#include "stream.h"
#include "frame.h"
#include "layer12.h"
#include "sf_table.dat"
#include "qc_table.dat"

Include dependency graph for layer12.c:

Go to the source code of this file.

Data Structures

struct  quantclass
 quantization class table More...

Defines

#define CHAR_BIT   8

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

static mad_fixed_t const sf_table [64]
 scalefactor table.
static mad_fixed_t const linear_table [14]
 linear scaling table
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]


Detailed Description

Implements MPEG Layer I and Layer II methods for mad_stream structure.

Definition in file layer12.c.


Define Documentation

#define CHAR_BIT   8

Definition at line 34 of file layer12.c.


Variable Documentation

unsigned short nbal

Definition at line 252 of file layer12.c.

Referenced by mad_layer_II().

unsigned short offset

Definition at line 253 of file layer12.c.

unsigned char const offsets[30]

Definition at line 232 of file layer12.c.

Referenced by mad_layer_II().

unsigned int sblimit

Definition at line 231 of file layer12.c.

Referenced by III_decode(), and mad_layer_II().

mad_fixed_t const sf_table[64] [static]

scalefactor table.

used in both Layer I and Layer II decoding

Definition at line 48 of file layer12.c.

Referenced by mad_layer_I(), and mad_layer_II().


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