Expand description
Input log: record what a host fed a BufferController and replay it offline.
A log is plain text, one row per call, header Input::CSV_HEADER
(kind,now_us,a,b). The first rows after the header describe the controller
(config rows, one per ControllerConfig field, and a seed row when a
stall-memory seed was used); the remaining rows are the Inputs in call
order:
| kind | a | b |
|---|---|---|
chunk | bytes | last PCR, 27 MHz, or empty |
media | track key | media end, 27 MHz |
tick | 1 with a position, 0 without | playback position, 27 MHz, or empty |
register, unregister | track key | empty |
hint | Hint::name token | empty |
config (now_us 0) | ConfigKey::name token | value (true/false for flags) |
seed (now_us 0) | peak, microseconds | age, microseconds |
InputLog::replay feeds the inputs through one fresh controller built from the recorded
configuration, so the same log gives the same decisions on any host. Logs recorded before
config rows existed parse with InputLog::parse_with_config.
Structs§
- Input
Log - A complete, self-describing input log: the controller configuration, the optional stall-memory seed, and the inputs in call order.
- Input
LogError - A log row that could not be read.
Enums§
- Config
Key - A
ControllerConfigfield as it appears in aconfigrow. - Input
- One call a host made into a
BufferController. - Reason
- Why a log row or log failed to parse or replay.