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