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

Adpcm Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/adpcm.h>

List of all members.

Public Member Functions

 Adpcm (unsigned char *buffer, long isStereo)
void Decompress (short *dst, long n)

Private Member Functions

void FillBuffer ()
long GetBits (int n)
long GetSBits (int n)

Private Attributes

long stereo
int nBits
long valpred [2]
int index [2]
long nSamples
unsigned char * src
long bitBuf
int bitPos


Constructor & Destructor Documentation

Adpcm::Adpcm unsigned char *  buffer,
long  isStereo
 

Definition at line 83 of file adpcm.cc.

References bitBuf, bitPos, nBits, nSamples, src, and stereo.


Member Function Documentation

void Adpcm::Decompress short *  dst,
long  n
 

Definition at line 105 of file adpcm.cc.

References GetBits(), GetSBits(), i, index, indexTables, nBits, ns, nSamples, stepsizeTable, stereo, and valpred.

Referenced by CInputScript::ParseDefineSound().

void Adpcm::FillBuffer  )  [private]
 

Definition at line 96 of file adpcm.cc.

References bitBuf, bitPos, and src.

Referenced by GetBits(), and GetSBits().

long Adpcm::GetBits int  n  )  [private]
 

Definition at line 53 of file adpcm.cc.

References assert, bitBuf, bitPos, FillBuffer(), and v.

Referenced by Decompress().

long Adpcm::GetSBits int  n  )  [private]
 

Definition at line 66 of file adpcm.cc.

References assert, bitBuf, bitPos, FillBuffer(), and v.

Referenced by Decompress().


Member Data Documentation

long Adpcm::bitBuf [private]
 

Definition at line 17 of file adpcm.h.

Referenced by Adpcm(), FillBuffer(), GetBits(), and GetSBits().

int Adpcm::bitPos [private]
 

Definition at line 18 of file adpcm.h.

Referenced by Adpcm(), FillBuffer(), GetBits(), and GetSBits().

int Adpcm::index[2] [private]
 

Definition at line 11 of file adpcm.h.

Referenced by Decompress().

int Adpcm::nBits [private]
 

Definition at line 8 of file adpcm.h.

Referenced by Adpcm(), and Decompress().

long Adpcm::nSamples [private]
 

Definition at line 13 of file adpcm.h.

Referenced by Adpcm(), and Decompress().

unsigned char* Adpcm::src [private]
 

Definition at line 16 of file adpcm.h.

Referenced by Adpcm(), and FillBuffer().

long Adpcm::stereo [private]
 

Definition at line 7 of file adpcm.h.

Referenced by Adpcm(), and Decompress().

long Adpcm::valpred[2] [private]
 

Definition at line 10 of file adpcm.h.

Referenced by Decompress().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:26:11 2005 for OPIE by  doxygen 1.4.2