PayloadFormat(3)
π PayloadFormat(3) β the base payload format class, bestie π
okay so before we even start: this is a Library Functions Manual page, section 3, and it lives in the ccRTP world. It's giving "foundation energy" β literally the base class everybody else builds on. π«Ά
β¨ NAME β¨
PayloadFormat β the base payload format class. that's it. that's the whole name. iconic. π
πΈ SYNOPSIS πΈ
#include <formats.h>
Inherited by DynamicPayloadFormat, and StaticPayloadFormat.
so likeβ¦ you never really use her directly, you use her daughters. classic mother figure behavior. π
π Public Member Functions
PayloadType getPayloadType () constβ grab the payload type numeric identifier that gets carried in RTP packets.uint32 getRTPClockRate () constβ grab the RTP clock rate for this payload format.
π Protected Member Functions
PayloadFormat ()β bestie,PayloadFormatmust not be used but as base class. do not instantiate her, she is a concept. πvirtual ~PayloadFormat ()β same deal,PayloadFormatmust not be used but as base class.void setPayloadType (PayloadType pt)β set the payload type numeric identifier carried in RTP packets.void setRTPClockRate (uint32 rate)β set the RTP clock rate.
π Static Protected Attributes
static const uint32 defaultRTPClockRate
π Detailed Description π
Base payload format class. periodt.
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. those two things, that's the whole vibe check. β¨
This is a base class for both StaticPayloadFormat and DynamicPayloadFormat. so she's the mom, they're the main characters. π
Author
Federico Montesino Pouzols fedemp@altern.org β thank you for your service king π«‘
π οΈ Constructor & Destructor Documentation π οΈ
PayloadFormat::PayloadFormat () [inline], [protected]
PayloadFormat must not be used but as base class. fr fr. don't try it. π
virtual PayloadFormat::~PayloadFormat () [inline], [protected], [virtual]
PayloadFormat must not be used but as base class. same warning, same energy, she said what she said. π
π§ 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. β°
lowkey important: 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. do not confuse them bestie, they are different girls. π€
Returns
RTP clock rate in Hz.
void PayloadFormat::setPayloadType (PayloadType pt) [inline], [protected]
Set payload type numeric identifier carried in RTP packets.
Parameters
- pt β payload type number.
void PayloadFormat::setRTPClockRate (uint32 rate) [inline], [protected]
Set RTP clock rate.
Parameters
- rate β RTP clock rate in Hz.
π¦ Member Data Documentation π¦
const uint32 PayloadFormat::defaultRTPClockRate [static], [protected]
that's the one and only static protected attribute in the building. π
π¦ Author π¦
Generated automatically by Doxygen for ccRTP from the source code.
okay bestie that's the whole page, you ate that reading it π
β¨ this was the PayloadFormat(3) page from ccRTP, manual section 3 β and that lil doxygen-generated sign-off is the version/source situation, no date stamped on this one, we love an undated icon. mwah. ππππ«Ά
π¦ where this page comes from
- debian trixie: libccrtp-doc 2.0.9-4.1 Β· GPL-2.0-or-later WITH MIF exception
- ubuntu noble: libccrtp-doc 2.0.9-2.5build1
- ubuntu questing: libccrtp-doc 2.0.9-4.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms