Home | History | Annotate | Download | only in source
      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 
     11 #ifndef WEBRTC_MODULES_VIDEO_CODING_SOURCE_NACK_FEC_TABLES_H_
     12 #define WEBRTC_MODULES_VIDEO_CODING_SOURCE_NACK_FEC_TABLES_H_
     13 
     14 namespace webrtc
     15 {
     16 
     17 // Table for adjusting FEC rate for NACK/FEC protection method
     18 // Table values are built as a sigmoid function, ranging from 0 to
     19 // kHighRttNackMs (100), based on the HybridNackTH values defined in
     20 // media_opt_util.h.
     21 const uint16_t VCMNackFecTable[100] = {
     22 0,
     23 0,
     24 0,
     25 0,
     26 0,
     27 0,
     28 0,
     29 0,
     30 0,
     31 0,
     32 0,
     33 1,
     34 1,
     35 1,
     36 1,
     37 1,
     38 2,
     39 2,
     40 2,
     41 3,
     42 3,
     43 4,
     44 5,
     45 6,
     46 7,
     47 9,
     48 10,
     49 12,
     50 15,
     51 18,
     52 21,
     53 24,
     54 28,
     55 32,
     56 37,
     57 41,
     58 46,
     59 51,
     60 56,
     61 61,
     62 66,
     63 70,
     64 74,
     65 78,
     66 81,
     67 84,
     68 86,
     69 89,
     70 90,
     71 92,
     72 93,
     73 95,
     74 95,
     75 96,
     76 97,
     77 97,
     78 98,
     79 98,
     80 99,
     81 99,
     82 99,
     83 99,
     84 99,
     85 99,
     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 100,
    122 
    123 };
    124 
    125 }  // namespace webrtc
    126 
    127 #endif // WEBRTC_MODULES_VIDEO_CODING_SOURCE_NACK_FEC_TABLES_H_
    128