PreRollState
pub struct PreRollState
What a pre-roll is holding right now.
PreRollState — fields
enabled: bool
Whether a pre-roll is configured at all.
duration_ms: u32
The duration it was asked for, in milliseconds. Zero when the pre-roll was sized in frames instead.
frames: u32
The frame count it was asked for. Zero when it was sized by duration instead.
buffered: u32
How many frames are held right now.
holds_duration: bool
Whether the ring is bounded by the duration rather than by the frame count.
held_us: u64
How much time the held frames actually span.
The honest figure. A pre-roll asked for in milliseconds on a camera delivering below its nominal rate holds less time than it was asked for, and this is where that shows.
bytes: u64
What the held frames occupy in memory.