niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
asapersson@webrtc.org | a768970 | 2012-04-19 07:01:29 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef MODULES_RTP_RTCP_SOURCE_RTP_RTCP_CONFIG_H_ |
| 12 | #define MODULES_RTP_RTCP_SOURCE_RTP_RTCP_CONFIG_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
| 14 | // Configuration file for RTP utilities (RTPSender, RTPReceiver ...) |
| 15 | namespace webrtc { |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 16 | enum { NACK_BYTECOUNT_SIZE = 60 }; // size of our NACK history |
stefan@webrtc.org | becf9c8 | 2013-02-01 15:09:57 +0000 | [diff] [blame] | 17 | // A sanity for the NACK list parsing at the send-side. |
| 18 | enum { kSendSideNackListSizeSanity = 20000 }; |
| 19 | enum { kDefaultMaxReorderingThreshold = 50 }; // In sequence numbers. |
stefan@webrtc.org | a271070 | 2013-03-05 09:02:06 +0000 | [diff] [blame] | 20 | enum { kRtcpMaxNackFields = 253 }; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 21 | |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 22 | enum { RTCP_INTERVAL_VIDEO_MS = 1000 }; |
| 23 | enum { RTCP_INTERVAL_AUDIO_MS = 5000 }; |
| 24 | enum { RTCP_SEND_BEFORE_KEY_FRAME_MS = 100 }; |
| 25 | enum { RTCP_MAX_REPORT_BLOCKS = 31 }; // RFC 3550 page 37 |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 26 | enum { |
| 27 | kRtcpAppCode_DATA_SIZE = 32 * 4 |
| 28 | }; // multiple of 4, this is not a limitation of the size |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 29 | enum { RTCP_NUMBER_OF_SR = 60 }; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 30 | |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 31 | enum { MAX_NUMBER_OF_TEMPORAL_ID = 8 }; // RFC |
| 32 | enum { MAX_NUMBER_OF_DEPENDENCY_QUALITY_ID = 128 }; // RFC |
asapersson@webrtc.org | a768970 | 2012-04-19 07:01:29 +0000 | [diff] [blame] | 33 | enum { MAX_NUMBER_OF_REMB_FEEDBACK_SSRCS = 255 }; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 35 | enum { BW_HISTORY_SIZE = 35 }; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 36 | |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 37 | #define MIN_AUDIO_BW_MANAGEMENT_BITRATE 6 |
| 38 | #define MIN_VIDEO_BW_MANAGEMENT_BITRATE 30 |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 40 | enum { RTP_MAX_BURST_SLEEP_TIME = 500 }; |
| 41 | enum { RTP_AUDIO_LEVEL_UNIQUE_ID = 0xbede }; |
danilchap | 162abd3 | 2015-12-10 02:39:40 -0800 | [diff] [blame] | 42 | enum { RTP_MAX_PACKETS_PER_FRAME = 512 }; // must be multiple of 32 |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 43 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 44 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 45 | #endif // MODULES_RTP_RTCP_SOURCE_RTP_RTCP_CONFIG_H_ |