public class FrameDesc
extends java.lang.Object
Constructor and Description |
---|
FrameDesc(RTPEncodingDesc rtpEncoding,
RawPacket pkt,
long receivedMs)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
firstSequenceNumberKnown()
Returns whether or not the first sequence number of this frame
is known (conclusively)
|
int |
getEnd()
Gets the end sequence number for this source frame.
|
int |
getMaxSeen()
Gets the maximum sequence number that we've seen for this source frame.
|
int |
getMinSeen()
Gets the minimum sequence number that we've seen for this source frame.
|
long |
getReceivedMs()
Gets the time (in millis) when the first packet of this frame was
received.
|
RTPEncodingDesc |
getRTPEncoding()
Gets the
RTPEncodingDesc that this FrameDesc belongs to. |
int |
getStart()
Gets the start sequence number for this source frame.
|
long |
getTimestamp()
Gets the RTP timestamp for this frame.
|
boolean |
isIndependent()
Gets a boolean indicating whether or not this frame is independent.
|
boolean |
lastSequenceNumberKnown()
Returns whether or not the last sequence number of this frame
is known (conclusively)
|
boolean |
matches(RawPacket pkt)
Determines whether a packet belongs to this frame or not.
|
(package private) void |
setEnd(int end)
Sets the end sequence number of this source frame.
|
(package private) void |
setStart(int start)
Sets the start sequence number of this source frame.
|
(package private) boolean |
supportsFrameBoundaries()
Gets a boolean that indicates whether or not we can read the frame
boundaries of this frame.
|
java.lang.String |
toString() |
(package private) boolean |
update(RawPacket pkt)
Updates the state of this
FrameDesc . |
FrameDesc(RTPEncodingDesc rtpEncoding, RawPacket pkt, long receivedMs)
rtpEncoding
- the RTPEncodingDesc
that this instance belongs
to.pkt
- the first RawPacket
that we've seen for this frame.receivedMs
- the time (in millis) when the first packet of this
frame was received.boolean supportsFrameBoundaries()
public RTPEncodingDesc getRTPEncoding()
RTPEncodingDesc
that this FrameDesc
belongs to.RTPEncodingDesc
that this FrameDesc
belongs
to.public long getTimestamp()
public long getReceivedMs()
public int getEnd()
public boolean lastSequenceNumberKnown()
void setEnd(int end)
end
- the end sequence number of this source frame.public int getStart()
public boolean firstSequenceNumberKnown()
void setStart(int start)
start
- the start sequence number of this source frame.public boolean isIndependent()
public int getMinSeen()
public int getMaxSeen()
public boolean matches(RawPacket pkt)
public java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.