Interleaving Class Reference

#include <MP3ADUinterleaving.hh>


Public Member Functions

 Interleaving (unsigned cycleSize, unsigned char const *cycleArray)
virtual ~Interleaving ()
unsigned cycleSize () const
unsigned char lookupInverseCycle (unsigned char index) const

Private Attributes

unsigned fCycleSize
unsigned char fInverseCycle [MAX_CYCLE_SIZE]


Detailed Description

Definition at line 30 of file MP3ADUinterleaving.hh.


Constructor & Destructor Documentation

Interleaving::Interleaving ( unsigned  cycleSize,
unsigned char const *  cycleArray 
)

Definition at line 32 of file MP3ADUinterleaving.cpp.

References fCycleSize, and fInverseCycle.

00034   : fCycleSize(cycleSize) {
00035   for (unsigned i = 0; i < fCycleSize; ++i) {
00036     fInverseCycle[cycleArray[i]] = i;
00037   }
00038 }

Interleaving::~Interleaving (  )  [virtual]

Definition at line 40 of file MP3ADUinterleaving.cpp.

00040                             {
00041 }


Member Function Documentation

unsigned Interleaving::cycleSize (  )  const [inline]

Definition at line 35 of file MP3ADUinterleaving.hh.

References fCycleSize.

Referenced by MP3ADUinterleaver::afterGettingFrame().

00035 {return fCycleSize;}

unsigned char Interleaving::lookupInverseCycle ( unsigned char  index  )  const [inline]

Definition at line 36 of file MP3ADUinterleaving.hh.

References fInverseCycle.

Referenced by MP3ADUinterleaver::doGetNextFrame().

00036                                                               {
00037     return fInverseCycle[index];
00038   }


Field Documentation

unsigned Interleaving::fCycleSize [private]

Definition at line 41 of file MP3ADUinterleaving.hh.

Referenced by cycleSize(), and Interleaving().

unsigned char Interleaving::fInverseCycle[MAX_CYCLE_SIZE] [private]

Definition at line 42 of file MP3ADUinterleaving.hh.

Referenced by Interleaving(), and lookupInverseCycle().


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 15:39:44 2008 for live by  doxygen 1.5.2