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: rtcp_constants.h 23 ** 24 ** Description: 25 ** This file contains constants used internally for RTCP encoding and 26 ** decoding. It does not need to be exposed to the user of the library. 27 */ 28 29 #ifndef RTCP_CONSTANTS_H 30 #define RTCP_CONSTANTS_H 31 32 33 const uint8 SR_PACKET_TYPE = 200; 34 const uint8 RR_PACKET_TYPE = 201; 35 const uint8 SDES_PACKET_TYPE = 202; 36 const uint8 BYE_PACKET_TYPE = 203; 37 const uint8 APP_PACKET_TYPE = 204; 38 const uint8 RECORD_COUNT_MASK = 0x1F; 39 const int16 FRACTION_LOST_POSITION = 24; 40 const uint32 FRACTION_LOST_MASK = 0x00FFFFFF; 41 const uint8 DEFAULT_RTCP_VERSION = 2; 42 const uint8 RTCP_PAD_BIT_MASK = 0x20; 43 44 45 // size constants 46 const int32 RTCP_HEADER_SIZE = 4; 47 const int32 RTCP_REPORT_BLOCK_SIZE = 24; 48 const int32 RTCP_RR_SENDER_INFO_SIZE = 4; 49 const int32 RTCP_SR_SENDER_INFO_SIZE = 24; 50 51 const int32 RTCP_APP_HEADER_INFO_SIZE = 8; 52 const int32 RTCP_PVSS_APP_COMMON_SIZE = 24; 53 const int32 RTCP_PVSS_APP_DRC_SIZE = 20; 54 const int32 RTCP_PVSS_APP_BUFLOW_SIZE = 4; 55 const int32 RTCP_PVSS_APP_BUFHIGH_SIZE = 4; 56 57 58 #endif 59