niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 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 | |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame^] | 11 | #ifndef WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |
| 12 | #define WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 13 | |
| 14 | namespace webrtc |
| 15 | { |
| 16 | |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 17 | // Table for adjusting FEC rate for NACK/FEC protection method |
pkasting@chromium.org | 16825b1 | 2015-01-12 21:51:21 +0000 | [diff] [blame] | 18 | // Table values are built as a sigmoid function, ranging from 0 to 100, based on |
| 19 | // the HybridNackTH values defined in media_opt_util.h. |
pbos@webrtc.org | 7b859cc | 2013-04-02 15:54:38 +0000 | [diff] [blame] | 20 | const uint16_t VCMNackFecTable[100] = { |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 21 | 0, |
| 22 | 0, |
| 23 | 0, |
| 24 | 0, |
| 25 | 0, |
| 26 | 0, |
| 27 | 0, |
| 28 | 0, |
| 29 | 0, |
| 30 | 0, |
| 31 | 0, |
| 32 | 1, |
| 33 | 1, |
| 34 | 1, |
| 35 | 1, |
| 36 | 1, |
| 37 | 2, |
| 38 | 2, |
| 39 | 2, |
| 40 | 3, |
| 41 | 3, |
| 42 | 4, |
| 43 | 5, |
| 44 | 6, |
| 45 | 7, |
| 46 | 9, |
| 47 | 10, |
| 48 | 12, |
| 49 | 15, |
| 50 | 18, |
| 51 | 21, |
| 52 | 24, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 53 | 28, |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 54 | 32, |
| 55 | 37, |
| 56 | 41, |
| 57 | 46, |
| 58 | 51, |
| 59 | 56, |
| 60 | 61, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 61 | 66, |
| 62 | 70, |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 63 | 74, |
| 64 | 78, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 65 | 81, |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 66 | 84, |
| 67 | 86, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 68 | 89, |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 69 | 90, |
| 70 | 92, |
| 71 | 93, |
| 72 | 95, |
| 73 | 95, |
| 74 | 96, |
| 75 | 97, |
| 76 | 97, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 77 | 98, |
mikhal@google.com | 679450f | 2011-08-01 22:14:58 +0000 | [diff] [blame] | 78 | 98, |
| 79 | 99, |
| 80 | 99, |
| 81 | 99, |
| 82 | 99, |
| 83 | 99, |
| 84 | 99, |
| 85 | 100, |
| 86 | 100, |
| 87 | 100, |
| 88 | 100, |
| 89 | 100, |
| 90 | 100, |
| 91 | 100, |
| 92 | 100, |
| 93 | 100, |
| 94 | 100, |
| 95 | 100, |
| 96 | 100, |
| 97 | 100, |
| 98 | 100, |
| 99 | 100, |
| 100 | 100, |
| 101 | 100, |
| 102 | 100, |
| 103 | 100, |
| 104 | 100, |
| 105 | 100, |
| 106 | 100, |
| 107 | 100, |
| 108 | 100, |
| 109 | 100, |
| 110 | 100, |
| 111 | 100, |
| 112 | 100, |
| 113 | 100, |
| 114 | 100, |
| 115 | 100, |
| 116 | 100, |
| 117 | 100, |
| 118 | 100, |
| 119 | 100, |
| 120 | 100, |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 121 | |
| 122 | }; |
| 123 | |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 124 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 125 | |
Henrik Kjellander | 2557b86 | 2015-11-18 22:00:21 +0100 | [diff] [blame^] | 126 | #endif // WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |