FreeCalypso > hg > themwi-rtp-lib
annotate include/rtcp_defs.h @ 30:9fd693f234f8
definitions for RTCP SDES
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 08 Jul 2024 03:28:38 +0000 |
parents | 3e01a71b7c7c |
children |
rev | line source |
---|---|
29 | 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 | |
30
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
39 #define RTCP_PT_BYE 203 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
40 #define RTCP_PT_APP 204 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
41 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
42 #define SDES_ITEM_CNAME 1 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
43 #define SDES_ITEM_NAME 2 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
44 #define SDES_ITEM_EMAIL 3 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
45 #define SDES_ITEM_PHONE 4 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
46 #define SDES_ITEM_LOC 5 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
47 #define SDES_ITEM_TOOL 6 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
48 #define SDES_ITEM_NOTE 7 |
9fd693f234f8
definitions for RTCP SDES
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
49 #define SDES_ITEM_PRIV 8 |