sipxmedialib  Version 3.3
RtpHeader.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2007 SIPez LLC.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _INCLUDED_RTPHEADER_H /* [ */
12 #define _INCLUDED_RTPHEADER_H
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 #include "os/OsIntTypes.h"
17 #include "mp/MpTypes.h"
18 
19 // MACROS
20 // EXTERNAL FUNCTIONS
21 // EXTERNAL VARIABLES
22 // CONSTANTS
23 // STRUCTS
24 // TYPEDEFS
25 // DEFINES
26 #define RTP_V_MASK 0xC0
27 #define RTP_V_SHIFT 6
28 #define RTP_P_MASK 0x20
29 #define RTP_P_SHIFT 5
30 #define RTP_X_MASK 0x10
31 #define RTP_X_SHIFT 4
32 #define RTP_CC_MASK 0x0F
33 #define RTP_CC_SHIFT 0
34 
35 #define RTP_M_MASK 0x80
36 #define RTP_M_SHIFT 7
37 #define RTP_PT_MASK 0x7F
38 #define RTP_PT_SHIFT 0
39 
40 #define RTP_MAX_CSRCS 16
41 
42 struct RtpHeader {
44  uint8_t vpxcc;
45  uint8_t mpt;
49 };
50 
51 
52 #endif /* ] _INCLUDED_RTPHEADER_H */
RtpSRC ssrc
SSRC (Big Endian!)
Definition: RtpHeader.h:48
uint32_t RtpTimestamp
RTP timestamp.
Definition: MpTypes.h:60
uint16_t RtpSeq
RTP sequence number.
Definition: MpTypes.h:59
RTP header as described in RFC 3550.
Definition: RtpHeader.h:43
uint8_t vpxcc
Version, Padding, Extension and CSRC Count bits.
Definition: RtpHeader.h:44
uint32_t RtpSRC
RTP SSRC or CSRC identifier.
Definition: MpTypes.h:61
uint8_t mpt
Marker and Payload Type bits.
Definition: RtpHeader.h:45
RtpSeq seq
Sequence Number (Big Endian!)
Definition: RtpHeader.h:46
RtpTimestamp timestamp
Timestamp (Big Endian!)
Definition: RtpHeader.h:47