X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/59cf25c47fbda22f3f4e14399f0436cc6ed2c56f..132a5a4a47f9dbc7c52ee15234d70258c59ccf8e:/lib/rtp.h diff --git a/lib/rtp.h b/lib/rtp.h index 3ac14be..d0ab1ed 100644 --- a/lib/rtp.h +++ b/lib/rtp.h @@ -15,16 +15,49 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +/** @file lib/rtp.h + * @brief RTP packet header format + * + * See RFC1889. + */ #ifndef RTP_H #define RTP_H -/* RTP is defined in RFC1889 */ +/** @brief RTP packet header format + * + * See RFC1889 (now obsoleted + * by RFC3550). + */ struct attribute((packed)) rtp_header { + /** @brief Version, padding, extension and CSRC + * + * Version is bits 6 and 7; currently always 2. + * + * Padding is bit 5; if set frame includes padding octets. + * + * eXtension is bit 4; if set there is a header extension. + * + * CSRC Count is bits 0-3 and is the number of CSRC identifiers following the + * header. + */ uint8_t vpxcc; + + /** @brief Marker and payload type + * + * Marker is bit 7. Profile-defined. + * + * Payload Type is bits 0-6. Profile defined. + */ uint8_t mpt; + + /** @brief Sequence number */ uint16_t seq; + + /** @brief Timestamp */ uint32_t timestamp; + + /** @brief Synchronization source */ uint32_t ssrc; };