pub struct ConditionedSplicePoint {
pub requested_pts: u64,
pub snapped_pts: u64,
pub delta_ticks: u64,
pub direction: SnapDirection,
}Expand description
The result of conditioning one splice point against a set of candidate boundaries (segment starts, or sync-sample/IDR timestamps).
Fields§
§requested_pts: u64The cue’s nominal target, in whatever clock unit the caller’s candidates share (this module does no unit conversion).
snapped_pts: u64The nearest candidate boundary actually chosen.
delta_ticks: u64|snapped_pts - requested_pts|.
direction: SnapDirectionWhether the snap landed before, after, or exactly on the request.
Implementations§
Trait Implementations§
Source§impl Clone for ConditionedSplicePoint
impl Clone for ConditionedSplicePoint
impl Copy for ConditionedSplicePoint
Source§impl Debug for ConditionedSplicePoint
impl Debug for ConditionedSplicePoint
impl Eq for ConditionedSplicePoint
Source§impl PartialEq for ConditionedSplicePoint
impl PartialEq for ConditionedSplicePoint
impl StructuralPartialEq for ConditionedSplicePoint
Auto Trait Implementations§
impl Freeze for ConditionedSplicePoint
impl RefUnwindSafe for ConditionedSplicePoint
impl Send for ConditionedSplicePoint
impl Sync for ConditionedSplicePoint
impl Unpin for ConditionedSplicePoint
impl UnsafeUnpin for ConditionedSplicePoint
impl UnwindSafe for ConditionedSplicePoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more