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
//! Encoding and decoding for HDMI InfoFrames.
//!
//! `cartouche` encodes and decodes the five HDMI 2.1 InfoFrame types: AVI, Audio,
//! HDR Static Metadata, HDMI Forum Vendor-Specific, and Dynamic HDR. It is a pure
//! encoding/decoding library with no I/O and no allocation requirement.
//!
//! # Features
//!
//! - `std` (default, implies `alloc`): enables `std` support. `Decoded<T, W>` uses
//! `Vec<W>` for warning storage.
//! - `alloc`: enables `alloc` support without `std`. `Decoded<T, W>` uses `Vec<W>`.
//! - `serde`: derives `Serialize` and `Deserialize` on all public types.
//!
//! Without `alloc` or `std`, warning storage falls back to a fixed `[Option<W>; 8]`
//! array. No other behaviour changes.
extern crate alloc;
extern crate std;
/// The [`IntoPackets`](encode::IntoPackets) encoding trait.
/// The [`DecodeError`](error::DecodeError) type.
/// Per-frame warning enums and the unified [`Warning`](warn::Warning) wrapper.
/// The [`Decoded<T, W>`](decoded::Decoded) type returned by all decode paths.
/// The [`AudioInfoFrame`](audio::AudioInfoFrame) type.
/// The [`AviInfoFrame`](avi::AviInfoFrame) type.
/// The [`DynamicHdrInfoFrame`](dynamic_hdr::DynamicHdrInfoFrame) and [`DynamicHdrFragment`](dynamic_hdr::DynamicHdrFragment) types.
/// The [`HdmiForumVsi`](hdmi_forum_vsi::HdmiForumVsi) type.
/// The [`HdrStaticInfoFrame`](hdr_static::HdrStaticInfoFrame) type.
/// The [`InfoFrame`](frame::InfoFrame) and [`InfoFramePacket`](frame::InfoFramePacket) enums.
pub use decode;