Janus
Home
Demos
Documentation
Cite us!
Discuss Janus
Meetecho
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
postprocessing
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];
38
}
janus_pp_rtp_header
;
39
40
typedef
struct
janus_pp_rtp_header_extension
{
41
uint16_t
type
;
42
uint16_t
length
;
43
}
janus_pp_rtp_header_extension
;
44
45
typedef
struct
janus_pp_frame_packet
{
46
uint16_t
seq
;
/* RTP Sequence number */
47
uint64_t
ts
;
/* RTP Timestamp */
48
int
len
;
/* Length of the data */
49
long
offset
;
/* Offset of the data in the file */
50
int
skip
;
/* Bytes to skip, besides the RTP header */
51
struct
janus_pp_frame_packet
*
next
;
52
struct
janus_pp_frame_packet
*
prev
;
53
}
janus_pp_frame_packet
;
54
55
56
#endif