Expand description
bdinfo-rs-core — a memory-safe Blu-ray disc analyzer library.
This is the library the bdinfo-rs CLI drives: it reads a Blu-ray disc
structure (a BDMV folder tree or a UDF .iso image), parses the index,
playlist, and clip-information files, demuxes the transport streams, and
reports every elementary stream’s codec details.
Design rules:
#![forbid(unsafe_code)]— memory safety is the point.- Every read is bounds-checked and fallible; we never index raw or panic on input-derived bytes
(the
indexing_slicing/unwrap_usedgate enforces this). - All multi-byte integers are big-endian and host-independent — with one exception: the UDF
descriptors in
vfs::udfare little-endian, per ECMA-167.
Modules§
- bdrom
- BDMV metadata parsers — the small structural files under
BDMV/. - bitstream
- Bit-level reader over an in-memory transport-stream payload — the MSB-first bitstream primitive every codec parser drives.
- bytes
- Big-endian byte readers — the bounded, panic-free primitives every BDMV and transport-stream parser is built from.
- codec
- Elementary-stream codec scanners.
- discovery
- Blu-ray folder-structure discovery primitives.
- error
- The shared library error type for malformed Blu-ray metadata.
- index
index.bdmvversion detection.- language_
codes - ISO-639 language-code -> English-name lookup.
- primitives
- Domain newtypes for the Blu-ray model’s primitive values.
- report
- Disc report composition.
- stream
- Transport-stream data model — the typed shape every BDMV/M2TS parser fills.
- vfs
- Virtual filesystem seam — the IO abstraction every BD/BDMV parser reads through.
Functions§
- version
- Returns the version of the
bdinfo-rs-corelibrary crate (itsCARGO_PKG_VERSION).