Skip to main content

Crate cartouche

Crate cartouche 

Source
Expand description

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.

Modules§

audio
The AudioInfoFrame type.
avi
The AviInfoFrame type.
decoded
The Decoded<T, W> type returned by all decode paths.
dynamic_hdr
The DynamicHdrInfoFrame and DynamicHdrFragment types.
encode
The IntoPackets encoding trait.
error
The DecodeError type.
frame
The InfoFrame and InfoFramePacket enums.
hdmi_forum_vsi
The HdmiForumVsi type.
hdr_static
The HdrStaticInfoFrame type.
warn
Per-frame warning enums and the unified Warning wrapper.

Functions§

decode
Decode a single 31-byte wire packet into an InfoFramePacket.