| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |
| 12 #define WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |
| 13 | 13 |
| 14 namespace webrtc | 14 namespace webrtc { |
| 15 { | |
| 16 | 15 |
| 17 // Table for adjusting FEC rate for NACK/FEC protection method | 16 // Table for adjusting FEC rate for NACK/FEC protection method |
| 18 // Table values are built as a sigmoid function, ranging from 0 to 100, based on | 17 // 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. | 18 // the HybridNackTH values defined in media_opt_util.h. |
| 20 const uint16_t VCMNackFecTable[100] = { | 19 const uint16_t VCMNackFecTable[100] = { |
| 21 0, | 20 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, |
| 22 0, | 21 1, 2, 2, 2, 3, 3, 4, 5, 6, 7, 9, 10, 12, 15, 18, |
| 23 0, | 22 21, 24, 28, 32, 37, 41, 46, 51, 56, 61, 66, 70, 74, 78, 81, |
| 24 0, | 23 84, 86, 89, 90, 92, 93, 95, 95, 96, 97, 97, 98, 98, 99, 99, |
| 25 0, | 24 99, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, |
| 26 0, | 25 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, |
| 27 0, | 26 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, |
| 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, | |
| 53 28, | |
| 54 32, | |
| 55 37, | |
| 56 41, | |
| 57 46, | |
| 58 51, | |
| 59 56, | |
| 60 61, | |
| 61 66, | |
| 62 70, | |
| 63 74, | |
| 64 78, | |
| 65 81, | |
| 66 84, | |
| 67 86, | |
| 68 89, | |
| 69 90, | |
| 70 92, | |
| 71 93, | |
| 72 95, | |
| 73 95, | |
| 74 96, | |
| 75 97, | |
| 76 97, | |
| 77 98, | |
| 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, | |
| 121 | |
| 122 }; | 27 }; |
| 123 | 28 |
| 124 } // namespace webrtc | 29 } // namespace webrtc |
| 125 | 30 |
| 126 #endif // WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ | 31 #endif // WEBRTC_MODULES_VIDEO_CODING_NACK_FEC_TABLES_H_ |
| OLD | NEW |