Bayonne2 / Common C++ 2 Framework
Public Member Functions | Protected Member Functions | Static Protected Attributes | Private Attributes
PayloadFormat Class Reference
Payload types and formats.

Base payload format class. More...

#include <formats.h>

Inheritance diagram for PayloadFormat:
Inheritance graph
[legend]
Collaboration diagram for PayloadFormat:
Collaboration graph
[legend]

Public Member Functions

  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 must not be used but as base class. More...
 
virtual  ~PayloadFormat ()
  PayloadFormat must not be used but as base class. More...
 
  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
 

Private Attributes

  Numeric identifier. More...
 
uint32  RTPClockRate
  Rate in Hz. More...
 

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

Definition at line 132 of file formats.h.

Constructor & Destructor Documentation

PayloadFormat::PayloadFormat ( )
inlineprotected

PayloadFormat must not be used but as base class.

Definition at line 158 of file formats.h.

virtual PayloadFormat::~PayloadFormat ( )
inlineprotectedvirtual

PayloadFormat must not be used but as base class.

Definition at line 164 of file formats.h.

Member Function Documentation

PayloadType PayloadFormat::getPayloadType ( ) const
inline

Get payload type numeric identifier carried in RTP packets.

Returns
payload type numeric identifier.

Definition at line 140 of file formats.h.

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.

Definition at line 151 of file formats.h.

void PayloadFormat::setPayloadType ( PayloadType  pt )
inlineprotected

Set payload type numeric identifier carried in RTP packets.

Parameters
pt payload type number.

Definition at line 172 of file formats.h.

void PayloadFormat::setRTPClockRate ( uint32  rate )
inlineprotected

Set RTP clock rate.

Parameters
rate RTP clock rate in Hz.

Definition at line 180 of file formats.h.

Field Documentation

const uint32 PayloadFormat::defaultRTPClockRate
staticprotected

Definition at line 184 of file formats.h.

PayloadType PayloadFormat::payloadType
private

Numeric identifier.

Definition at line 187 of file formats.h.

uint32 PayloadFormat::RTPClockRate
private

Rate in Hz.

Definition at line 188 of file formats.h.


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

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /