Skip to main content

Module damage

Module damage 

Source
Expand description

Turning the delivery engine’s drops into the workspace’s one damage report.

SRT delivers payloads, not a byte stream with positions, so a loss is reported against the packet sequence the reader counts (DamageLocation::ordinal) and, when the scheduler knew it, the play time the packet was due at (MediaTimeRange).

§Coalescing rule

One report per contiguous run of dropped sequence numbers that share a reason. A run ends when a sequence number is delivered, when the next dropped number is not the successor of the previous one, or when the reason changes. A stream that loses every other packet therefore reports once per single-packet run, and one that loses a run of 200 consecutive packets reports that run once — never one report per packet.

Constants§

DAMAGE_TIMESCALE
The time base of an SRT timestamp: the wire carries microseconds (draft-sharabayko-srt-01 §3.1).

Functions§

dropped_before_delivery
A report for content this adapter dropped before the scheduler saw it: a datagram over the configured size, an inbound datagram the bounded channel had no room for, or a payload the application read too slowly.
reports
One report per contiguous run of dropped that shares a reason.
what
The structure name a report about a dropped data packet uses, in SRT’s own terms.