Static payload format objects.
More...
#include <formats.h>
Static payload format objects.
Class of payload formats objects for payload types statically assigned. Because these payloads have an RTP clock rate assigned, it is not specified to the constructor. A call to StaticPayloadFormat(sptPCMU) will set the proper clock rate and any other parameters for that static payload type.
- Author
- Federico Montesino Pouzols fedem.nosp@m.p@al.nosp@m.tern..nosp@m.org
Definition at line 200 of file formats.h.
Constructor.
Builds a payload format from a static payload binding identifier, assigning the numeric identifier and RTP clock rate statically bounded.
- Parameters
-
type | Numeric identifier in the range 0-96. |
- Note
- some identifiers are reserved.
Definition at line 90 of file rtppkt.cpp.
Get payload type numeric identifier carried in RTP packets.
- Returns
- payload type numeric identifier.
Definition at line 137 of file formats.h.
uint32 PayloadFormat::getRTPClockRate |
( |
| ) |
const |
|
inlineinherited |
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 148 of file formats.h.
Set payload type numeric identifier carried in RTP packets.
- Parameters
-
Definition at line 169 of file formats.h.
void PayloadFormat::setRTPClockRate |
( |
uint32 |
rate | ) |
|
|
inlineprotectedinherited |
Set RTP clock rate.
- Parameters
-
rate | RTP clock rate in Hz. |
Definition at line 177 of file formats.h.
NAMESPACE_COMMONCPP const uint32 PayloadFormat::defaultRTPClockRate = 8000 |
|
staticprotectedinherited |
uint32 StaticPayloadFormat::staticAudioTypesRates |
|
staticprivate |
Initial value:= {
8000,
0,
8000,
8000,
8000,
8000,
16000,
8000,
8000,
8000,
44100,
44100,
8000,
0,
90000,
8000,
11015,
22050,
8000
}
RTP clock rate for static payload types.
There is no need for a table like this for video types, since they all have 90000 Khz rate.
Definition at line 220 of file formats.h.
The documentation for this class was generated from the following files: