Fork me on GitHub
pp-rtp.h
Go to the documentation of this file.
1 
13 #ifndef _JANUS_PP_RTP
14 #define _JANUS_PP_RTP
15 
16 
17 typedef struct janus_pp_rtp_header
18 {
19 #if __BYTE_ORDER == __BIG_ENDIAN
20  uint16_t version:2;
21  uint16_t padding:1;
22  uint16_t extension:1;
23  uint16_t csrccount:4;
24  uint16_t markerbit:1;
25  uint16_t type:7;
26 #elif __BYTE_ORDER == __LITTLE_ENDIAN
27  uint16_t csrccount:4;
28  uint16_t extension:1;
29  uint16_t padding:1;
30  uint16_t version:2;
31  uint16_t type:7;
32  uint16_t markerbit:1;
33 #endif
34  uint16_t seq_number;
35  uint32_t timestamp;
36  uint32_t ssrc;
37  uint32_t csrc[16];
39 
41  uint16_t type;
42  uint16_t length;
44 
45 typedef struct janus_pp_frame_packet {
46  uint16_t seq; /* RTP Sequence number */
47  uint64_t ts; /* RTP Timestamp */
48  uint16_t len; /* Length of the data */
49  int pt; /* Payload type of the data */
50  long offset; /* Offset of the data in the file */
51  int skip; /* Bytes to skip, besides the RTP header */
52  uint8_t drop; /* Whether this packet can be dropped (e.g., padding)*/
56 
57 
58 #endif
uint16_t markerbit
Definition: pp-rtp.h:24
struct janus_pp_rtp_header janus_pp_rtp_header
uint16_t seq
Definition: pp-rtp.h:46
struct janus_pp_rtp_header_extension janus_pp_rtp_header_extension
Definition: pp-rtp.h:40
uint64_t ts
Definition: pp-rtp.h:47
uint16_t type
Definition: pp-rtp.h:25
uint16_t version
Definition: pp-rtp.h:20
uint16_t type
Definition: pp-rtp.h:41
uint16_t padding
Definition: pp-rtp.h:21
long offset
Definition: pp-rtp.h:50
Definition: pp-rtp.h:17
uint16_t len
Definition: pp-rtp.h:48
uint32_t csrc[16]
Definition: pp-rtp.h:37
uint32_t timestamp
Definition: pp-rtp.h:35
struct janus_pp_frame_packet janus_pp_frame_packet
uint16_t extension
Definition: pp-rtp.h:22
int skip
Definition: pp-rtp.h:51
uint32_t ssrc
Definition: pp-rtp.h:36
uint16_t seq_number
Definition: pp-rtp.h:34
Definition: pp-rtp.h:45
struct janus_pp_frame_packet * next
Definition: pp-rtp.h:53
uint16_t length
Definition: pp-rtp.h:42
int pt
Definition: pp-rtp.h:49
uint8_t drop
Definition: pp-rtp.h:52
struct janus_pp_frame_packet * prev
Definition: pp-rtp.h:54
uint16_t csrccount
Definition: pp-rtp.h:23