pub struct SourceProvenance<F> {
pub frame_ids: Vec<F>,
pub indices: Option<Vec<usize>>,
pub range: Option<TimeRange>,
}Expand description
Caller-supplied provenance linking decoded frames to their complete
retained source, for use with FrameSequence::with_provenance.
indices and range are an all-or-nothing pair: both None when the
decoded frames are the complete retained source, or both Some when they
declare the decoded frames’ positions within the retained source — which
may be a subset of it or all of it (explicit complete-source indices are
valid and let the caller declare a wider source time range).
Fields§
§frame_ids: Vec<F>Complete retained source identity in source order: every retained
frame of the sequence’s visual epoch, decoded or not. When indices
is None, these must be exactly the decoded frame identifiers in
order.
indices: Option<Vec<usize>>Each decoded frame’s position within frame_ids, or None when the
decoded frames are the complete retained source.
range: Option<TimeRange>The caller-declared inclusive time range of the retained source;
present exactly when indices is.