• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 /*                                                                               */
19 /*********************************************************************************/
20 
21 /*
22 **   File:   rtprtcp.h
23 **
24 **   Description:
25 **      This file contains the definitions common to RTP and RTCP
26 */
27 
28 #ifndef RTPRTCP_H
29 #define RTPRTCP_H
30 
31 /*
32 ** Includes
33 */
34 
35 #ifndef OSCL_TYPES_H_INCLUDED
36 #include "oscl_types.h"
37 #endif
38 
39 typedef uint32 RtpSsrc;
40 typedef uint32 RtpTimeStamp;
41 typedef uint16 RtpPayloadType;
42 typedef uint16 RtpSeqType;
43 
44 
45 /*
46 ** Constants
47 */
48 const int16 NUM_BYTES_IN_UINT_32 = 4;
49 const uint8 DEFAULT_RTPRTCP_VERSION = 2;
50 const int16 RTPRTCP_VERSION_BIT_POSITION = 6;
51 const int16 RTPRTCP_PAD_FLAG_BIT_POSITION = 5;
52 const uint16 MAX_STR_COUNT = 256;
53 
54 #endif
55