|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjlibrtp.DataFrame
public class DataFrame
Data structure to hold a complete frame if frame reconstruction is enabled, or the data from an individual packet if it is not It also contains most of the data from the individual packets that it is based on.
Field Summary | |
---|---|
private boolean |
anyMarked
Whether any packets were marked or not |
private long[] |
CSRCs
contributing CSRCs, only read from the first packet |
private byte[][] |
data
The data from the individual packets, ordered |
protected int |
firstSeqNum
The first sequence number in this frame |
private int |
isComplete
Whether the frame contains the expected number of packets |
protected int |
lastSeqNum
The last sequence number in this frame |
private boolean[] |
marks
The marks on individual packets, ordered |
protected int |
noPkts
The number of packets expected for a complete frame |
private int |
payloadType
RTP payload type |
private long |
rtpTimestamp
The share RTP timestamp |
private int[] |
seqNum
The sequence numbers of the individual packets, ordered |
private long |
SSRC
the SSRC from which this frame originated |
private long |
timestamp
The calculated UNIX timestamp, guessed after 2 Sender Reports |
private int |
totalLength
The total amount of data bytes in this frame |
Constructor Summary | |
---|---|
protected |
DataFrame(PktBufNode aBufNode,
Participant p,
int noPkts)
The usual way to construct a frame is by giving it a PktBufNode, which contains links to all the other pkts that make it up. |
Method Summary | |
---|---|
int |
complete()
Checks whether the difference in sequence numbers corresponds to the number of packets received for the current timestamp, and whether this value corresponds to the expected number of packets. |
long[] |
csrcs()
The SSRCs that contributed to this frame |
byte[] |
getConcatenatedData()
Returns a concatenated version of the data from getData() It ignores missing sequence numbers, but then isComplete() will return false provided that RTPAppIntf.frameSize() provides a non-negative number for this payload type. |
byte[][] |
getData()
Returns a two dimensial array where the first dimension represents individual packets, from which the frame is made up, in order of increasing sequence number. |
boolean |
marked()
Returns true if any packet in the frame was marked. |
boolean[] |
marks()
Returns an array whose values, for the same index, correpond to whether the data was marked or not. |
int |
payloadType()
Returns the payload type of the packets |
long |
rtpTimestamp()
Returns the RTP timestamp of all the packets in the frame. |
int[] |
sequenceNumbers()
Returns an array whose values, for the same index, correpond to the sequence number of the packet from which the data came. |
long |
ssrc()
The SSRC associated with this frame. |
long |
timestamp()
If two SR packet have been received jlibrtp will attempt to calculate the local UNIX timestamp (in milliseconds) of all packets received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long rtpTimestamp
private long timestamp
private long SSRC
private long[] CSRCs
private int payloadType
private boolean[] marks
private boolean anyMarked
private int isComplete
private byte[][] data
private int[] seqNum
private int totalLength
protected int lastSeqNum
protected int firstSeqNum
protected int noPkts
Constructor Detail |
---|
protected DataFrame(PktBufNode aBufNode, Participant p, int noPkts)
Method Detail |
---|
public byte[][] getData()
public byte[] getConcatenatedData()
public long timestamp()
public long rtpTimestamp()
public int payloadType()
public int[] sequenceNumbers()
public boolean[] marks()
public boolean marked()
public long ssrc()
public long[] csrcs()
public int complete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |