comparison include/rtcp_defs.h @ 29:3e01a71b7c7c

implement RTCP Rx
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 08 Jul 2024 02:55:32 +0000
parents
children 9fd693f234f8
comparison
equal deleted inserted replaced
28:defe58aa537c 29:3e01a71b7c7c
1 /*
2 * Some definitions for RTCP, just enough to implement the subset
3 * planned for libtwrtp.
4 */
5
6 #pragma once
7
8 #include <stdint.h>
9
10 struct rtcp_sr_rr_hdr {
11 uint8_t v_p_rc;
12 uint8_t pt;
13 uint16_t len;
14 uint32_t ssrc;
15 };
16
17 struct rtcp_sr_block {
18 uint32_t ntp_sec;
19 uint32_t ntp_fract;
20 uint32_t rtp_ts;
21 uint32_t pkt_count;
22 uint32_t octet_count;
23 };
24
25 struct rtcp_rr_block {
26 uint32_t ssrc;
27 uint32_t lost_word;
28 uint32_t max_seq_ext;
29 uint32_t jitter;
30 uint16_t lsr_sec;
31 uint16_t lsr_fract;
32 uint16_t dlsr_sec;
33 uint16_t dlsr_fract;
34 };
35
36 #define RTCP_PT_SR 200
37 #define RTCP_PT_RR 201
38 #define RTCP_PT_SDES 202