pub struct Rendition(/* private fields */);Expand description
A handle to one output rendition, holding the counters a caller bills against.
Cheap to clone, and it outlives the encode: the totals stay readable while
the rendition is idle, and keep accumulating if it starts again. Obtained
from Update::rendition.
Implementations§
Source§impl Rendition
impl Rendition
Sourcepub fn size(&self) -> Size
pub fn size(&self) -> Size
The output resolution, derived from the source aspect ratio.
Fixed for the life of the rendition: a source that resizes the ladder under it retires this rung and publishes the replacement under a new name.
Sourcepub fn frames(&self) -> u64
pub fn frames(&self) -> u64
How many frames this rendition has encoded, over every pipeline.
This is the meter to bill: monotonic, never reset, and counting what was
produced rather than how long a pipeline stayed alive, so a group fetch
and a live session are charged the same way. Subtracting two reads bills
the span between them, and frames / framerate is the media seconds that
reached consumers. Frames that failed to reach the output group are not
counted.