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

stream.h File Reference

#include "bit.h"

Include dependency graph for stream.h:

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

Go to the source code of this file.

Classes

struct  mad_stream

Defines

#define MAD_BUFFER_GUARD   8
#define MAD_BUFFER_MDLEN   (511 + 2048 + MAD_BUFFER_GUARD)
#define MAD_RECOVERABLE(error)   ((error) & 0xff00)
#define mad_stream_options(stream, opts)   ((void) ((stream)->options = (opts)))

Enumerations

enum  mad_error {
  MAD_ERROR_NONE = 0x0000, MAD_ERROR_BUFLEN = 0x0001, MAD_ERROR_BUFPTR = 0x0002, MAD_ERROR_NOMEM = 0x0031,
  MAD_ERROR_LOSTSYNC = 0x0101, MAD_ERROR_BADLAYER = 0x0102, MAD_ERROR_BADBITRATE = 0x0103, MAD_ERROR_BADSAMPLERATE = 0x0104,
  MAD_ERROR_BADEMPHASIS = 0x0105, MAD_ERROR_BADCRC = 0x0201, MAD_ERROR_BADBITALLOC = 0x0211, MAD_ERROR_BADSCALEFACTOR = 0x0221,
  MAD_ERROR_BADFRAMELEN = 0x0231, MAD_ERROR_BADBIGVALUES = 0x0232, MAD_ERROR_BADBLOCKTYPE = 0x0233, MAD_ERROR_BADSCFSI = 0x0234,
  MAD_ERROR_BADDATAPTR = 0x0235, MAD_ERROR_BADPART3LEN = 0x0236, MAD_ERROR_BADHUFFTABLE = 0x0237, MAD_ERROR_BADHUFFDATA = 0x0238,
  MAD_ERROR_BADSTEREO = 0x0239
}
enum  { MAD_OPTION_IGNORECRC = 0x0001, MAD_OPTION_HALFSAMPLERATE = 0x0002 }

Functions

void mad_stream_init (struct mad_stream *)
void mad_stream_finish (struct mad_stream *)
void mad_stream_buffer (struct mad_stream *, unsigned char const *, unsigned long)
void mad_stream_skip (struct mad_stream *, unsigned long)
int mad_stream_sync (struct mad_stream *)
char const * mad_stream_errorstr (struct mad_stream const *)


Define Documentation

#define MAD_BUFFER_GUARD   8
 

Definition at line 27 of file stream.h.

#define MAD_BUFFER_MDLEN   (511 + 2048 + MAD_BUFFER_GUARD)
 

Definition at line 28 of file stream.h.

#define MAD_RECOVERABLE error   )     ((error) & 0xff00)
 

Definition at line 58 of file stream.h.

#define mad_stream_options stream,
opts   )     ((void) ((stream)->options = (opts)))
 

Definition at line 96 of file stream.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
MAD_OPTION_IGNORECRC 
MAD_OPTION_HALFSAMPLERATE 

Definition at line 83 of file stream.h.

enum mad_error
 

Enumeration values:
MAD_ERROR_NONE 
MAD_ERROR_BUFLEN 
MAD_ERROR_BUFPTR 
MAD_ERROR_NOMEM 
MAD_ERROR_LOSTSYNC 
MAD_ERROR_BADLAYER 
MAD_ERROR_BADBITRATE 
MAD_ERROR_BADSAMPLERATE 
MAD_ERROR_BADEMPHASIS 
MAD_ERROR_BADCRC 
MAD_ERROR_BADBITALLOC 
MAD_ERROR_BADSCALEFACTOR 
MAD_ERROR_BADFRAMELEN 
MAD_ERROR_BADBIGVALUES 
MAD_ERROR_BADBLOCKTYPE 
MAD_ERROR_BADSCFSI 
MAD_ERROR_BADDATAPTR 
MAD_ERROR_BADPART3LEN 
MAD_ERROR_BADHUFFTABLE 
MAD_ERROR_BADHUFFDATA 
MAD_ERROR_BADSTEREO 

Definition at line 30 of file stream.h.


Function Documentation

void mad_stream_buffer struct mad_stream ,
unsigned char const *  ,
unsigned  long
 

char const* mad_stream_errorstr struct mad_stream const *   ) 
 

void mad_stream_finish struct mad_stream  ) 
 

void mad_stream_init struct mad_stream  ) 
 

void mad_stream_skip struct mad_stream ,
unsigned  long
 

int mad_stream_sync struct mad_stream  ) 
 


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