How dolbylaboratories/spdif works
SPDIF is a command-line audio transport converter: it accepts AC-3/E-AC-3 elementary streams and produces IEC 60958/IEC 61937-compatible output; the README also describes deformatting. The visible implementation centers on the CLI, transport logic, and a reusable Dolby bitstream interface. The graph preserves the documented conversion/deformatting workflow and the sampled parsing/support layers. Some subsystem relationships are documented only at a high level; those links are dashed where source call paths were not shown.
Main entry points: spdif.c SPDIF command · fmi_api.c Frame API · bsid_ddp.c BSI unpacking · bsod.c Bitstream reader
Components 16
CLI and transport
- SPDIF command
spdif.c - IEC transport
spdif.c - Transport data
data.c
Frame interface
- Frame API
common/fmi/c_ref/code/fmi_api.c - Frame utilities
common/fmi/c_ref/code/fmi_utl.c
Bitstream parsing
- BSI unpacking
common/bsi/c_ref/code/bsid_ddp.c - BSI structures
- Bitstream reader
common/bitstream_ops/c_ref/code/bsod.c - Aux data
common/auxdata/c_ref/code/axdd.c - Dynamic range
common/drc/c_ref/code/drcd.h
Shared support
- Global definitions
common/global/c_ref/code/gbl.c - Error handling
common/error/c_ref/code/err.h - Debug support
common/debug/c_ref/code/dbg.h
Other components
- CLI user
- IEC audio output
- Audio elementary stream
Connections 15
- CLI user → SPDIF command: runs
README.md - Audio elementary stream → SPDIF command: provides stream
README.md - SPDIF command → IEC transport: dispatches
spdif.c - IEC transport → IEC audio output: formats
README.md - SPDIF command → Frame API: uses frame API
- IEC transport → Transport data: uses tables
- Frame API → BSI unpacking: uses BSI parsing
common/fmi/c_ref/code/fmi_api.c - Frame API → Bitstream reader: reads bits
common/fmi/c_ref/code/fmi_api.c - Frame API → Dynamic range: uses DRC types
common/fmi/c_ref/code/fmi_api.c - Frame utilities → BSI unpacking: maps frame data
common/fmi/c_ref/code/fmi_utl.c - Frame utilities → Aux data: uses aux data
common/fmi/c_ref/code/fmi_utl.c - BSI unpacking → Bitstream reader: unpacks bits
common/bsi/c_ref/code/bsid_ddp.c - BSI unpacking → Dynamic range: uses DRC types
common/bsi/c_ref/code/bsid_ddp.c - Aux data → Bitstream reader: reads bits
common/auxdata/c_ref/code/axdd.c - Bitstream reader → SPDIF command: uses declarations
common/bitstream_ops/c_ref/code/bsod.c