Go to the source code of this file.
|
STATUS | createRtpPacket (UINT8, BOOL, BOOL, UINT8, BOOL, UINT8, UINT16, UINT32, UINT32, PUINT32, UINT16, UINT32, PBYTE, PBYTE, UINT32, PRtpPacket *) |
|
STATUS | setRtpPacket (UINT8, BOOL, BOOL, UINT8, BOOL, UINT8, UINT16, UINT32, UINT32, PUINT32, UINT16, UINT32, PBYTE, PBYTE, UINT32, PRtpPacket) |
|
STATUS | freeRtpPacket (PRtpPacket *) |
|
STATUS | createRtpPacketFromBytes (PBYTE, UINT32, PRtpPacket *) |
|
STATUS | constructRetransmitRtpPacketFromBytes (PBYTE, UINT32, UINT16, UINT8, UINT32, PRtpPacket *) |
|
STATUS | setRtpPacketFromBytes (PBYTE, UINT32, PRtpPacket) |
|
STATUS | createBytesFromRtpPacket (PRtpPacket, PBYTE, PUINT32) |
|
STATUS | setBytesFromRtpPacket (PRtpPacket, PBYTE, UINT32) |
|
STATUS | constructRtpPackets (PPayloadArray, UINT8, UINT16, UINT32, UINT32, PRtpPacket, UINT32) |
|
◆ CSRC_COUNT_MASK
#define CSRC_COUNT_MASK 0xF |
◆ CSRC_LENGTH
◆ CSRC_OFFSET
◆ EXTENSION_MASK
#define EXTENSION_MASK 0x1 |
◆ EXTENSION_SHIFT
#define EXTENSION_SHIFT 4 |
◆ GET_UINT16_SEQ_NUM
#define GET_UINT16_SEQ_NUM |
( |
|
seqIndex | ) |
((UINT16) ((seqIndex) % (MAX_UINT16 + 1))) |
◆ MARKER_MASK
◆ MARKER_SHIFT
◆ MIN_HEADER_LENGTH
#define MIN_HEADER_LENGTH 12 |
◆ PADDING_MASK
◆ PADDING_SHIFT
◆ PAYLOAD_TYPE_MASK
#define PAYLOAD_TYPE_MASK 0x7F |
◆ RTP_GET_RAW_PACKET_SIZE
#define RTP_GET_RAW_PACKET_SIZE |
( |
|
pRtpPacket | ) |
(RTP_HEADER_LEN(pRtpPacket) + ((pRtpPacket)->payloadLength)) |
◆ RTP_HEADER_LEN
#define RTP_HEADER_LEN |
( |
|
pRtpPacket | ) |
(12 + (pRtpPacket)->header.csrcCount * CSRC_LENGTH + ((pRtpPacket)->header.extension ? 4 + (pRtpPacket)->header.extensionLength : 0)) |
◆ SEQ_NUMBER_OFFSET
#define SEQ_NUMBER_OFFSET 2 |
◆ SSRC_OFFSET
◆ TIMESTAMP_OFFSET
#define TIMESTAMP_OFFSET 4 |
◆ TWCC_EXT_PROFILE
#define TWCC_EXT_PROFILE 0xBEDE |
◆ TWCC_PAYLOAD
#define TWCC_PAYLOAD |
( |
|
extId, |
|
|
|
sequenceNum |
|
) |
| htonl((((extId) & 0xfu) << 28u) | (1u << 24u) | ((UINT32) (sequenceNum) << 8u)) |
◆ TWCC_SEQNUM
#define TWCC_SEQNUM |
( |
|
extPayload | ) |
((UINT16) getUnalignedInt16BigEndian(extPayload + 1)) |
◆ VERSION_MASK
◆ VERSION_SHIFT
◆ DepayRtpPayloadFunc
typedef STATUS(* DepayRtpPayloadFunc) (PBYTE, UINT32, PBYTE, PUINT32, PBOOL) |
◆ PayloadArray
◆ PPayloadArray
◆ PRtpPacket
◆ PRtpPacketHeader
◆ RtpPacket
◆ RtpPacketHeader
◆ constructRetransmitRtpPacketFromBytes()
STATUS constructRetransmitRtpPacketFromBytes |
( |
PBYTE |
rawPacket, |
|
|
UINT32 |
packetLength, |
|
|
UINT16 |
sequenceNum, |
|
|
UINT8 |
payloadType, |
|
|
UINT32 |
ssrc, |
|
|
PRtpPacket * |
ppRtpPacket |
|
) |
| |
◆ constructRtpPackets()
STATUS constructRtpPackets |
( |
PPayloadArray |
pPayloadArray, |
|
|
UINT8 |
payloadType, |
|
|
UINT16 |
startSequenceNumber, |
|
|
UINT32 |
timestamp, |
|
|
UINT32 |
ssrc, |
|
|
PRtpPacket |
pPackets, |
|
|
UINT32 |
packetCount |
|
) |
| |
◆ createBytesFromRtpPacket()
STATUS createBytesFromRtpPacket |
( |
PRtpPacket |
pRtpPacket, |
|
|
PBYTE |
pRawPacket, |
|
|
PUINT32 |
pPacketLength |
|
) |
| |
◆ createRtpPacket()
STATUS createRtpPacket |
( |
UINT8 |
version, |
|
|
BOOL |
padding, |
|
|
BOOL |
extension, |
|
|
UINT8 |
csrcCount, |
|
|
BOOL |
marker, |
|
|
UINT8 |
payloadType, |
|
|
UINT16 |
sequenceNumber, |
|
|
UINT32 |
timestamp, |
|
|
UINT32 |
ssrc, |
|
|
PUINT32 |
csrcArray, |
|
|
UINT16 |
extensionProfile, |
|
|
UINT32 |
extensionLength, |
|
|
PBYTE |
extensionPayload, |
|
|
PBYTE |
payload, |
|
|
UINT32 |
payloadLength, |
|
|
PRtpPacket * |
ppRtpPacket |
|
) |
| |
◆ createRtpPacketFromBytes()
STATUS createRtpPacketFromBytes |
( |
PBYTE |
rawPacket, |
|
|
UINT32 |
packetLength, |
|
|
PRtpPacket * |
ppRtpPacket |
|
) |
| |
◆ freeRtpPacket()
◆ setBytesFromRtpPacket()
STATUS setBytesFromRtpPacket |
( |
PRtpPacket |
pRtpPacket, |
|
|
PBYTE |
pRawPacket, |
|
|
UINT32 |
packetLength |
|
) |
| |
◆ setRtpPacket()
STATUS setRtpPacket |
( |
UINT8 |
version, |
|
|
BOOL |
padding, |
|
|
BOOL |
extension, |
|
|
UINT8 |
csrcCount, |
|
|
BOOL |
marker, |
|
|
UINT8 |
payloadType, |
|
|
UINT16 |
sequenceNumber, |
|
|
UINT32 |
timestamp, |
|
|
UINT32 |
ssrc, |
|
|
PUINT32 |
csrcArray, |
|
|
UINT16 |
extensionProfile, |
|
|
UINT32 |
extensionLength, |
|
|
PBYTE |
extensionPayload, |
|
|
PBYTE |
payload, |
|
|
UINT32 |
payloadLength, |
|
|
PRtpPacket |
pRtpPacket |
|
) |
| |
◆ setRtpPacketFromBytes()
STATUS setRtpPacketFromBytes |
( |
PBYTE |
rawPacket, |
|
|
UINT32 |
packetLength, |
|
|
PRtpPacket |
pRtpPacket |
|
) |
| |