OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 /* This function updates both bottle neck rates
*/ | 125 /* This function updates both bottle neck rates
*/ |
126 /* Parameters:
*/ | 126 /* Parameters:
*/ |
127 /* rtp_number - value from RTP packet, from NetEq
*/ | 127 /* rtp_number - value from RTP packet, from NetEq
*/ |
128 /* frame length - length of signal frame in ms, from iSAC decoder
*/ | 128 /* frame length - length of signal frame in ms, from iSAC decoder
*/ |
129 /* send_ts - value in RTP header giving send time in samples
*/ | 129 /* send_ts - value in RTP header giving send time in samples
*/ |
130 /* arr_ts - value given by timeGetTime() time of arrival in samples of pa
cket from NetEq */ | 130 /* arr_ts - value given by timeGetTime() time of arrival in samples of pa
cket from NetEq */ |
131 /* pksize - size of packet in bytes, from NetEq
*/ | 131 /* pksize - size of packet in bytes, from NetEq
*/ |
132 /* Index - integer (range 0...23) indicating bottle neck & jitter as est
imated by other side */ | 132 /* Index - integer (range 0...23) indicating bottle neck & jitter as est
imated by other side */ |
133 /* returns 0 if everything went fine, -1 otherwise
*/ | 133 /* returns 0 if everything went fine, -1 otherwise
*/ |
134 int16_t WebRtcIsac_UpdateBandwidthEstimator( | 134 int16_t WebRtcIsac_UpdateBandwidthEstimator( |
135 BwEstimatorstr *bwest_str, | 135 BwEstimatorstr* bwest_str, |
136 const uint16_t rtp_number, | 136 const uint16_t rtp_number, |
137 const int32_t frame_length, | 137 const int32_t frame_length, |
138 const uint32_t send_ts, | 138 const uint32_t send_ts, |
139 const uint32_t arr_ts, | 139 const uint32_t arr_ts, |
140 const int32_t pksize | 140 const int32_t pksize |
141 /*, const uint16_t Index*/) | 141 /*, const uint16_t Index*/) |
142 { | 142 { |
143 float weight = 0.0f; | 143 float weight = 0.0f; |
144 float curr_bw_inv = 0.0f; | 144 float curr_bw_inv = 0.0f; |
145 float rec_rtp_rate; | 145 float rec_rtp_rate; |
146 float t_diff_proj; | 146 float t_diff_proj; |
147 float arr_ts_diff; | 147 float arr_ts_diff; |
148 float send_ts_diff; | 148 float send_ts_diff; |
149 float arr_time_noise; | 149 float arr_time_noise; |
150 float arr_time_noise_abs; | 150 float arr_time_noise_abs; |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 s2nr = a_60 + b_60 * bottle_neck * 0.001 + c_60 * bottle_neck * | 1011 s2nr = a_60 + b_60 * bottle_neck * 0.001 + c_60 * bottle_neck * |
1012 bottle_neck * 0.000001; | 1012 bottle_neck * 0.000001; |
1013 break; | 1013 break; |
1014 default: | 1014 default: |
1015 s2nr = 0; | 1015 s2nr = 0; |
1016 } | 1016 } |
1017 | 1017 |
1018 return s2nr; | 1018 return s2nr; |
1019 | 1019 |
1020 } | 1020 } |
OLD | NEW |