CFrameTable Class Reference

class CFrameTable : public CBase

This class provides AAC utility functions.

AACAudioControllerUtility.lib
Since
3.0

Inherits from

Nested Classes and Structures

Public Member Functions
~CFrameTable ()
IMPORT_C TInt Bitrate ()
IMPORT_C TInt FindFramePosFromTime ( TUint &, TUint &)
IMPORT_C TInt FindFrameTimeFromPos ( TUint &, TUint &)
IMPORT_C TInt GetLastPosEvent ( TUint &)
IMPORT_C TInt InitFrameTable ( TInt , TInt )
IMPORT_C TInt IsSeeking ( TBool &)
IMPORT_C TInt LastFramePos ( TUint &)
IMPORT_C TInt LastFrameTime ( TUint &)
IMPORT_C CFrameTable * NewL ()
IMPORT_C TInt RegisterForEvent ( TFrameTableEvent , MFrameTableEventObserver *, TUint )
IMPORT_C void ResetTable ()
IMPORT_C TInt SetSourceReference ( TUint , TUint )
IMPORT_C void ShrinkTable ()
IMPORT_C TInt SubmitTableEntry ( TUint )
IMPORT_C TInt UnRegisterForEvent ( TFrameTableEvent , MFrameTableEventObserver *)
Private Member Functions
CFrameTable ()
TUint CalcFrameFromTimeMs ( TUint )
void ConstructL ()
TInt SubmitLowResTableEntry ( TBufRefPosEntry &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TFrameTableEvent { EPosReached , EDecodeInterval , EPlayWindowEndPosReached }
Private Attributes
TUint iAvgBitrate
TUint iCurrentFrameCount
TUint iEventPos
TUint iFrameNum
RArray < TBufRefPosEntry > iFrameTable
TUint iFramesPerLowResInterval
TUint iIntervalEvent
TInt iIntervalRef
TUint iLastBytePos
RArray < TBufRefPosEntry > iLowResFrameTable
TUint iLowResIntervalMs
TUint iMsecPerFrame
MFrameTableEventObserver * iObserver
TUint iOffset
TBool iOkToShrink
TUint iPlayWindowEndPosEventMs
TUint iPosEventMs
TUint iSampleRate
TUint iSamplesPerFrame
TUint iTimeRefMs

Constructor & Destructor Documentation

CFrameTable()

CFrameTable ( ) [private]

C++ default constructor.

~CFrameTable()

IMPORT_C ~CFrameTable ( ) [virtual]

Destructor.

Member Functions Documentation

Bitrate()

IMPORT_C TInt Bitrate ( )

CalcFrameFromTimeMs(TUint)

TUint CalcFrameFromTimeMs ( TUint aTimeMs ) [private]

Parameters

TUint aTimeMs

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

FindFramePosFromTime(TUint &, TUint &)

IMPORT_C TInt FindFramePosFromTime ( TUint & aTimeMs,
TUint & aPos
)

Parameters

TUint & aTimeMs
TUint & aPos

FindFrameTimeFromPos(TUint &, TUint &)

IMPORT_C TInt FindFrameTimeFromPos ( TUint & aTimeMs,
TUint & aPos
)

Parameters

TUint & aTimeMs
TUint & aPos

GetLastPosEvent(TUint &)

IMPORT_C TInt GetLastPosEvent ( TUint & aPos )

Parameters

TUint & aPos

InitFrameTable(TInt, TInt)

IMPORT_C TInt InitFrameTable ( TInt aSampleRate,
TInt aSamplesPerFrame
)

Parameters

TInt aSampleRate
TInt aSamplesPerFrame

IsSeeking(TBool &)

IMPORT_C TInt IsSeeking ( TBool & aIsSeeking )

Parameters

TBool & aIsSeeking

LastFramePos(TUint &)

IMPORT_C TInt LastFramePos ( TUint & aPos )

Parameters

TUint & aPos

LastFrameTime(TUint &)

IMPORT_C TInt LastFrameTime ( TUint & aTimeMs )

Parameters

TUint & aTimeMs

NewL()

IMPORT_C CFrameTable * NewL ( ) [static]

Two-phased constructor.

RegisterForEvent(TFrameTableEvent, MFrameTableEventObserver *, TUint)

IMPORT_C TInt RegisterForEvent ( TFrameTableEvent aEvent,
MFrameTableEventObserver * aObserver,
TUint aParam
)

Parameters

TFrameTableEvent aEvent
MFrameTableEventObserver * aObserver
TUint aParam

ResetTable()

IMPORT_C void ResetTable ( )

SetSourceReference(TUint, TUint)

IMPORT_C TInt SetSourceReference ( TUint aTimeMs,
TUint aPos
)

Parameters

TUint aTimeMs
TUint aPos

ShrinkTable()

IMPORT_C void ShrinkTable ( )

SubmitLowResTableEntry(TBufRefPosEntry &)

TInt SubmitLowResTableEntry ( TBufRefPosEntry & aEntry ) [private]

Parameters

TBufRefPosEntry & aEntry

SubmitTableEntry(TUint)

IMPORT_C TInt SubmitTableEntry ( TUint aPos )

Parameters

TUint aPos

UnRegisterForEvent(TFrameTableEvent, MFrameTableEventObserver *)

IMPORT_C TInt UnRegisterForEvent ( TFrameTableEvent aEvent,
MFrameTableEventObserver * aObserver
)

Member Enumerations Documentation

Enum TFrameTableEvent

Enumerators

EPosReached
EDecodeInterval
EPlayWindowEndPosReached

Member Data Documentation

TUint iAvgBitrate

TUint iAvgBitrate [private]

TUint iCurrentFrameCount

TUint iCurrentFrameCount [private]

TUint iEventPos

TUint iEventPos [private]

TUint iFrameNum

TUint iFrameNum [private]

RArray< TBufRefPosEntry > iFrameTable

RArray < TBufRefPosEntry > iFrameTable [private]

TUint iFramesPerLowResInterval

TUint iFramesPerLowResInterval [private]

TUint iIntervalEvent

TUint iIntervalEvent [private]

TInt iIntervalRef

TInt iIntervalRef [private]

TUint iLastBytePos

TUint iLastBytePos [private]

RArray< TBufRefPosEntry > iLowResFrameTable

RArray < TBufRefPosEntry > iLowResFrameTable [private]

TUint iLowResIntervalMs

TUint iLowResIntervalMs [private]

TUint iMsecPerFrame

TUint iMsecPerFrame [private]

MFrameTableEventObserver * iObserver

MFrameTableEventObserver * iObserver [private]

TUint iOffset

TUint iOffset [private]

TBool iOkToShrink

TBool iOkToShrink [private]

TUint iPlayWindowEndPosEventMs

TUint iPlayWindowEndPosEventMs [private]

TUint iPosEventMs

TUint iPosEventMs [private]

TUint iSampleRate

TUint iSampleRate [private]

TUint iSamplesPerFrame

TUint iSamplesPerFrame [private]

TUint iTimeRefMs

TUint iTimeRefMs [private]