ccRTP
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
PayloadFormat Class Reference

Base payload format class. More...

#include <formats.h>

Inheritance diagram for PayloadFormat:
Inheritance graph
[legend]

Public Member Functions

PayloadType getPayloadType () const
 Get payload type numeric identifier carried in RTP packets. More...
 
uint32 getRTPClockRate () const
 Get RTP clock rate for this payload format. More...
 

Protected Member Functions

 PayloadFormat ()
 PayloadFormat must not be used but as base class. More...
 
virtual ~PayloadFormat ()
 PayloadFormat must not be used but as base class. More...
 
void setPayloadType (PayloadType pt)
 Set payload type numeric identifier carried in RTP packets. More...
 
void setRTPClockRate (uint32 rate)
 Set RTP clock rate. More...
 

Static Protected Attributes

static const uint32 defaultRTPClockRate
 

Detailed Description

Base payload format class.

The properties of a payload format that, as an RTP stack, ccRTP takes into account are the payload type (numeric identifier) and the RTP clock rate.

This is a base class for both StaticPayloadFormat and DynamicPayloadFormat.

Author
Federico Montesino Pouzols fedem.nosp@m.p@al.nosp@m.tern..nosp@m.org

Constructor & Destructor Documentation

PayloadFormat::PayloadFormat ( )
inlineprotected

PayloadFormat must not be used but as base class.

virtual PayloadFormat::~PayloadFormat ( )
inlineprotectedvirtual

PayloadFormat must not be used but as base class.

Member Function Documentation

PayloadType PayloadFormat::getPayloadType ( ) const
inline

Get payload type numeric identifier carried in RTP packets.

Returns
payload type numeric identifier.
uint32 PayloadFormat::getRTPClockRate ( ) const
inline

Get RTP clock rate for this payload format.

Note this method provides the RTP clock rate (for the timestamp in RTP data packets headers), which is not necessarily the same as the codec clock rate.

Returns
RTP clock rate in Hz.
void PayloadFormat::setPayloadType ( PayloadType  pt)
inlineprotected

Set payload type numeric identifier carried in RTP packets.

Parameters
ptpayload type number.
void PayloadFormat::setRTPClockRate ( uint32  rate)
inlineprotected

Set RTP clock rate.

Parameters
rateRTP clock rate in Hz.

Member Data Documentation

const uint32 PayloadFormat::defaultRTPClockRate
staticprotected

The documentation for this class was generated from the following file: