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
//! Ergonomic RustDuck entry point.
//!
//! The safe TSDuck API is re-exported from [`rustduck_core`]. Optional pure
//! Rust transport-stream utilities are available only through the matching
//! `ext-*` Cargo features, under the [`ext`] namespace.
//!
//! # Quick start
//!
//! Analyze one or more 188-byte transport-stream packets:
//!
//! ```no_run
//! use rustduck::{DuckContext, Report, TS_PACKET_SIZE, TSAnalyzer};
//!
//! fn main() -> rustduck::Result<()> {
//! let duck = DuckContext::new(Report::null()?)?;
//! let mut analyzer = TSAnalyzer::new(duck)?;
//! analyzer.feed(&[0x47; TS_PACKET_SIZE])?;
//!
//! let snapshot = analyzer.snapshot()?;
//! println!("{} packets", snapshot.summary.packet_count);
//! Ok(())
//! }
//! ```
pub use *;
/// Explicitly opt-in transport-stream extensions.