#include <mw/rtp.h>
Link against: rtpremoved.lib
class RRtpPacket |
Protected Attributes | |
---|---|
TRtpPacket * | iPtr |
Public Member Functions | |
---|---|
RRtpPacket() | |
IMPORT_C RRtpCSRCs | CSRCs() |
IMPORT_C void | Close() |
IMPORT_C RRtpHeaderExtension | Extension() |
IMPORT_C TBool | ExtensionPresent() |
IMPORT_C TUint | Flags() |
TBool | IsOpen() |
IMPORT_C TBool | Marker() |
IMPORT_C TPtrC8 | Payload() |
IMPORT_C TUint | PayloadType() |
IMPORT_C TUint | SSRC() |
IMPORT_C TUint | SequenceNumber() |
IMPORT_C TUint | Timestamp() |
TBool | operator!=(RRtpPacket) |
TBool | operator==(RRtpPacket) |
A handle to an RTP packet.
The packet is accessed through the interface provided by this handle.
TRtpPacket * | iPtr | [protected] |
IMPORT_C RRtpCSRCs | CSRCs | ( | ) | const |
Gets a handle to a list of CSRCs (contributing sources).
If there are no CSRCs, then the list is empty.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C RRtpHeaderExtension | Extension | ( | ) | const |
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
RTP | 5 if there is no header extension. |
IMPORT_C TBool | ExtensionPresent | ( | ) | const |
Tests whether the packet has a header extension.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TUint | Flags | ( | ) | const |
Gets the first 32 bits of the packet header.
This may be useful for profiles that do things such as using a different number of marker bits.
Flags returned in this format.... V is most significant bit in flags 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P|X| CC |M| PT | sequence number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
TBool | IsOpen | ( | ) | const [inline] |
Tests whether this packet object is open.
IMPORT_C TBool | Marker | ( | ) | const |
Tests whether the marker bit is set in the packet header.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TPtrC8 | Payload | ( | ) | const |
Gets a pointer descriptor representing the packet's payload.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TUint | PayloadType | ( | ) | const |
Gets the type of payload carried by the packet.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TUint | SSRC | ( | ) | const |
Gets the SSRC, the 32-bit numeric synchronisation source identifier.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TUint | SequenceNumber | ( | ) | const |
Gets the packet's sequence number.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
IMPORT_C TUint | Timestamp | ( | ) | const |
Gets the packet's timestamp.
This is a monotonic linear time representation, but the resolution and zero point are profile dependent.
Panic Codes | |
---|---|
RTP | 1 if the packet has not been opened. Note that this panic is raised in debug mode only; in release mode, calling this function when the packet has not been opened is likely to raise panics such as KERN-EXEC 3. |
TBool | operator!= | ( | RRtpPacket | aThat | ) | const [inline] |
Tests whether this packet handle represents a different packet to the one represented by the specified handle.
Parameters | |
---|---|
aThat | The handle of the packet to be compared. |
TBool | operator== | ( | RRtpPacket | aThat | ) | const [inline] |
Tests whether this packet handle represents the same packet as the one represented by the specified handle.
Parameters | |
---|---|
aThat | The handle of the packet to be compared. |