Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

frame.h File Reference

#include "fixed.h"
#include "timer.h"
#include "stream.h"

Include dependency graph for frame.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAD_NCHANNELS(header)   ((header)->mode ? 2 : 1)
#define MAD_NSBSAMPLES(header)
#define mad_header_finish(header)

Enumerations

enum  mad_layer { MAD_LAYER_I = 1, MAD_LAYER_II = 2, MAD_LAYER_III = 3 }
enum  mad_mode { MAD_MODE_SINGLE_CHANNEL = 0, MAD_MODE_DUAL_CHANNEL = 1, MAD_MODE_JOINT_STEREO = 2, MAD_MODE_STEREO = 3 }
enum  mad_emphasis { MAD_EMPHASIS_NONE = 0, MAD_EMPHASIS_50_15_US = 1, MAD_EMPHASIS_CCITT_J_17 = 3 }
enum  {
  MAD_FLAG_NPRIVATE_III = 0x0007, MAD_FLAG_INCOMPLETE = 0x0008, MAD_FLAG_PROTECTION = 0x0010, MAD_FLAG_COPYRIGHT = 0x0020,
  MAD_FLAG_ORIGINAL = 0x0040, MAD_FLAG_PADDING = 0x0080, MAD_FLAG_I_STEREO = 0x0100, MAD_FLAG_MS_STEREO = 0x0200,
  MAD_FLAG_FREEFORMAT = 0x0400, MAD_FLAG_LSF_EXT = 0x1000, MAD_FLAG_MC_EXT = 0x2000, MAD_FLAG_MPEG_2_5_EXT = 0x4000
}
enum  { MAD_PRIVATE_HEADER = 0x0100, MAD_PRIVATE_III = 0x001f }

Functions

void mad_header_init (struct mad_header *)
int mad_header_decode (struct mad_header *, struct mad_stream *)
void mad_frame_init (struct mad_frame *)
void mad_frame_finish (struct mad_frame *)
int mad_frame_decode (struct mad_frame *, struct mad_stream *)
void mad_frame_mute (struct mad_frame *)


Define Documentation

#define mad_header_finish header   ) 
 

Definition at line 106 of file frame.h.

#define MAD_NCHANNELS header   )     ((header)->mode ? 2 : 1)
 

Definition at line 75 of file frame.h.

#define MAD_NSBSAMPLES header   ) 
 

Value:

((header)->layer == MAD_LAYER_I ? 12 :  \
   (((header)->layer == MAD_LAYER_III &&  \
     ((header)->flags & MAD_FLAG_LSF_EXT)) ? 18 : 36))

Definition at line 76 of file frame.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
MAD_FLAG_NPRIVATE_III 
MAD_FLAG_INCOMPLETE 
MAD_FLAG_PROTECTION 
MAD_FLAG_COPYRIGHT 
MAD_FLAG_ORIGINAL 
MAD_FLAG_PADDING 
MAD_FLAG_I_STEREO 
MAD_FLAG_MS_STEREO 
MAD_FLAG_FREEFORMAT 
MAD_FLAG_LSF_EXT 
MAD_FLAG_MC_EXT 
MAD_FLAG_MPEG_2_5_EXT 

Definition at line 81 of file frame.h.

anonymous enum
 

Enumeration values:
MAD_PRIVATE_HEADER 
MAD_PRIVATE_III 

Definition at line 99 of file frame.h.

enum mad_emphasis
 

Enumeration values:
MAD_EMPHASIS_NONE 
MAD_EMPHASIS_50_15_US 
MAD_EMPHASIS_CCITT_J_17 

Definition at line 42 of file frame.h.

enum mad_layer
 

Enumeration values:
MAD_LAYER_I 
MAD_LAYER_II 
MAD_LAYER_III 

Definition at line 29 of file frame.h.

enum mad_mode
 

Enumeration values:
MAD_MODE_SINGLE_CHANNEL 
MAD_MODE_DUAL_CHANNEL 
MAD_MODE_JOINT_STEREO 
MAD_MODE_STEREO 

Definition at line 35 of file frame.h.


Function Documentation

int mad_frame_decode struct mad_frame ,
struct mad_stream
 

Referenced by LibMadPlugin::decode().

void mad_frame_finish struct mad_frame  ) 
 

Referenced by LibMadPlugin::close().

void mad_frame_init struct mad_frame  ) 
 

Referenced by LibMadPlugin::open().

void mad_frame_mute struct mad_frame  ) 
 

Referenced by LibMadPlugin::decode().

int mad_header_decode struct mad_header ,
struct mad_stream
 

Referenced by LibMadPlugin::audioSamples().

void mad_header_init struct mad_header  ) 
 


Generated on Sat Nov 5 16:24:23 2005 for OPIE by  doxygen 1.4.2