1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//! RTP payload formats for video: VP8 (RFC 7741) and H.264 (RFC 6184, packetization mode 1)
//! packetisers and depacketisers, the H.264 normaliser, and the Dependency Descriptor writer.
//!
//! The order on the wire. Send: encode → normalise and check (H.264) → encrypt → packetise.
//! Receive: reorder → depacketise into one frame → decrypt and verify → decode. These modules
//! never see a key: they work on whatever bytes travel, which in an E2EE call is the encrypted
//! frame (its codec headers stay in the clear).
// The engine's video path takes these up; until then only the tests call them.
pub
pub
pub
pub
// The round trips need Sew's source tree (the fixture bitstreams of its media test client, not
// in the published package) and dev-dependencies the package drops (sha2, str0m's
// `unversioned`), so they run only with `testing` in Sew's tree (`sew_fixtures`, build.rs), as
// Sew's own test runs do; the package's own `cargo test` skips them, also when another crate of
// its workspace turns `testing` on.
// Separate attributes, not cfg(all(..)): clippy treats only a plain `#[cfg(test)]` module as test
// code (allow-expect-in-tests).
/// The largest RTP payload Sew sends; the RTP header, its extensions and SRTP's tag fit
/// beside it in a 1280-byte path.
pub const MTU: usize = 1200;
/// Why a frame or packet could not be built or read.
pub
/// One outgoing packet's payload (the caller adds the RTP header: SSRC, sequence number,
/// payload type, the 90 kHz timestamp and the extensions).
pub
/// One received packet, in sequence order.
pub
/// One reassembled frame.
pub