class TraceArray

Trace Array. More...

Full nameCoral::TraceArray
Definition#include <tracearray.h>
Inherited byMP3TraceArray, MPEGTraceArray
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Members

Protected Members


Detailed Description

This is an array of layer traces.

 TraceArray (const TraceConfiguration& config)

Constructor.

Parameters:
configTraceConfiguration object with configuration of the trace.

TraceArray ()

[virtual]

Destructor.

void  init (const cardinal maxLayers, const cardinal maxFrames)

Initialize trace array.

Parameters:
maxLayersMaximum number of layers.
maxFramesMaximum number of frames.

void  calculateEmpiricalEnvelope (const cardinal layer, const cardinal start, const cardinal end, const cardinal traceStart, const cardinal traceEnd, EmpiricalEnvelope* ee, const bool frameCount = false)

[const]

Calculate empirical envelope.

Parameters:
layerLayer number to calculate empirical envelope for.
startStart position.
endEnd position.
traceStartTrace start position.
traceEndTrace end position.
eeInitialized EmpiricalEnvelope to write sums into.
frameCounttrue, to calculate empirical envelope for frame count; false for byterate.

void  calculateOptimalIntervals ( double* costArray, cardinal* lengthArray, const cardinal minLength, const cardinal maxLength)

[const]

Calculate optimal intervals refering to given configuration.

Parameters:
costArrayArray to store costs into.
lengthArrayArray to store lengths into.
minLengthMinimum length.
maxLengthMaximum length.

inline double  calculateTrafficCost ( const cardinal position, const cardinal length)

[const]

Calculate traffic cost for an interval.

Parameters:
positionPosition.
lengthLength.

Returns: Cost.

TraceArray*  decreaseFrameRate ()

[const virtual]

Decrease frame rate to next lower setting.

Returns: TraceArray containing next lower frame rate setting or NULL, if current setting is lowest.

cardinal Layers

cardinal Frames

cardinal MaxLayers

cardinal MaxFrames

double FrameRate

Trace (struct)

EmpiricalEnvelope*  initEmpiricalEnvelope ( char* buffer, const cardinal eePairs, const bool frameCount = false)

[const]

Initialize EmpiricalEnvelope.

Parameters:
bufferBuffer for empirical envelope.
eePairsNumber of D-BIND pairs.
frameCounttrue, if empirical envelope is for frame count; false for byterate.

Returns: Required size.

TraceConfiguration Config

[protected]