class InterArrival
extends java.lang.Object
Constructor and Description |
---|
InterArrival(long timestampGroupLengthTicks,
double timestampToMsCoeff,
boolean enableBurstGrouping,
@NotNull DiagnosticContext diagnosticContext)
A timestamp group is defined as all packets with a timestamp which are at
most
timestampGroupLengthTicks older than the first timestamp in
that group. |
Modifier and Type | Method and Description |
---|---|
boolean |
computeDeltas(long timestamp,
long arrivalTimeMs,
int packetSize,
long[] deltas)
Returns
true if a delta was computed, or false if the
current group is still incomplete or if only one group has been
completed. |
boolean |
computeDeltas(long timestamp,
long arrivalTimeMs,
int packetSize,
long[] deltas,
long systemTimeMs) |
void |
Reset() |
public InterArrival(long timestampGroupLengthTicks, double timestampToMsCoeff, boolean enableBurstGrouping, @NotNull @NotNull DiagnosticContext diagnosticContext)
timestampGroupLengthTicks
older than the first timestamp in
that group.timestampGroupLengthTicks
- timestampToMsCoeff
- enableBurstGrouping
- public boolean computeDeltas(long timestamp, long arrivalTimeMs, int packetSize, long[] deltas)
true
if a delta was computed, or false
if the
current group is still incomplete or if only one group has been
completed.timestamp
- is the timestamp.arrivalTimeMs
- is the local time at which the packet arrived.packetSize
- is the size of the packet.deltas
- timestampDelta
is the computed timestamp delta,
arrivalTimeDeltaMs
is the computed arrival-time delta,
packetSizeDelta
is the computed size delta.public boolean computeDeltas(long timestamp, long arrivalTimeMs, int packetSize, long[] deltas, long systemTimeMs)
public void Reset()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.