From 5bf1ce22181d5b6f80630ac0bec876870ca4f8c7 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Tue, 31 Jan 2023 16:34:57 +0100 Subject: [PATCH] rtp: extra dox for rtcp_encode --- src/rtp/pkt.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/rtp/pkt.c b/src/rtp/pkt.c index 23171741b..f5eca91e3 100644 --- a/src/rtp/pkt.c +++ b/src/rtp/pkt.c @@ -259,6 +259,50 @@ int rtcp_vencode(struct mbuf *mb, enum rtcp_type type, uint32_t count, * @param count Packet-specific count * @param ... Variable arguments, type specific * + * Variable arguments for each RTCP type: + * + * \verbatim + SR SSRC of sender + NTP Timestamp (MSW) + NTP Timestamp (LSW) + RTP Timestamp + Sender packet count + Sender octet count + Encode handler for report block + Handler argument + + RR SSRC of sender + Encode handler for report block + Handler argument + + SDES Encode handler for SDES chunk + Handler argument + + BYE SSRCs (vector) + Reason string (optional) + + APP SSRC/CSRC + name (ASCII) + Data + Data length + + FIR SSRC + + NACK SSRC + FSN + BLP + + RTPFB SSRC packet + SSRC media + Encode handler + Handler argument + + PSFB SSRC packet + SSRC media + Encode handler + Handler argument + \endverbatim + * * @return 0 for success, otherwise errorcode */ int rtcp_encode(struct mbuf *mb, enum rtcp_type type, uint32_t count, ...)