RTP Audio System  2.0.0
ResourceUtilizationPoint Class Reference

Resource Utilization Point. More...

#include <resourceutilizationpoint.h>

List of all members.

Public Member Functions

void reset ()
int operator== (const ResourceUtilizationPoint &rup) const
int operator!= (const ResourceUtilizationPoint &rup) const

Static Public Member Functions

static cardinal mergeResourceUtilizationLists (ResourceUtilizationPoint *destination, ResourceUtilizationPoint **listArray, const cardinal *listSizeArray, const cardinal listCount)
static void sortResourceUtilizationList (ResourceUtilizationPoint *rup, const integer start, const integer end)
static cardinal optimizeResourceUtilizationList (ResourceUtilizationPoint *rup, const cardinal count)
static cardinal grahamScanResourceUtilizationList (ResourceUtilizationPoint *rup, const cardinal count)

Public Attributes

card64 Bandwidth
double BandwidthCost
double Utilization
double FrameRate
cardinal Layers
BandwidthInfo LayerBandwidthInfo [RTPConstants::RTPMaxQualityLayers]
LayerClassMapping Mapping [RTPConstants::RTPMaxQualityLayers]

Static Private Member Functions

static void swapResourceUtilizationPoints (ResourceUtilizationPoint &a, ResourceUtilizationPoint &b)
static integer ccw (const ResourceUtilizationPoint &p0, const ResourceUtilizationPoint &p1, const ResourceUtilizationPoint &p2)

Detailed Description

Resource Utilization Point.

This class is a resource/utilization point used for the bandwidth mapping algorithm.

Author:
Thomas Dreibholz
Version:
1.0

Member Function Documentation

static integer ResourceUtilizationPoint::ccw ( const ResourceUtilizationPoint p0,
const ResourceUtilizationPoint p1,
const ResourceUtilizationPoint p2 
) [inline, static, private]

Compute convex hull on resource/utilization list using Graham Scan algorithm.

Parameters:
rupList.
countNumber of entries in list.
Returns:
Number of entries remaining in list.
cardinal ResourceUtilizationPoint::mergeResourceUtilizationLists ( ResourceUtilizationPoint destination,
ResourceUtilizationPoint **  listArray,
const cardinal listSizeArray,
const cardinal  listCount 
) [static]

Merge resource/utilization lists.

Parameters:
destinationDestination list.
listArrayArray of lists to merge.
listSizeArrayArray of list sizes.
listCountNumber of lists.
Returns:
Number of points in destination list.
int ResourceUtilizationPoint::operator!= ( const ResourceUtilizationPoint rup) const [inline]

Operator "!=".

int ResourceUtilizationPoint::operator== ( const ResourceUtilizationPoint rup) const [inline]

Operator "==".

Optimize resource/utilization list by utilization: Eliminate points which have higher resource requirements or cost than higher-utilized points following.

Parameters:
rupList.
countNumber of entries in list.
Returns:
Number of entries remaining in list.
void ResourceUtilizationPoint::sortResourceUtilizationList ( ResourceUtilizationPoint rup,
const integer  start,
const integer  end 
) [static]

Sort resource/utilization list by utilization.

Parameters:
rupList.
startFirst point number.
endLast point number.

Member Data Documentation

Total utilization.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines