Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 /* This function updates the receiving estimate */ 83 /* This function updates the receiving estimate */
84 /* Parameters: */ 84 /* Parameters: */
85 /* rtp_number - value from RTP packet, from NetEq */ 85 /* rtp_number - value from RTP packet, from NetEq */
86 /* frame length - length of signal frame in ms, from iSAC decoder */ 86 /* frame length - length of signal frame in ms, from iSAC decoder */
87 /* send_ts - value in RTP header giving send time in samples */ 87 /* send_ts - value in RTP header giving send time in samples */
88 /* arr_ts - value given by timeGetTime() time of arrival in samples of packet from NetEq */ 88 /* arr_ts - value given by timeGetTime() time of arrival in samples of packet from NetEq */
89 /* pksize - size of packet in bytes, from NetEq */ 89 /* pksize - size of packet in bytes, from NetEq */
90 /* Index - integer (range 0...23) indicating bottle neck & jitter as e stimated by other side */ 90 /* Index - integer (range 0...23) indicating bottle neck & jitter as e stimated by other side */
91 /* returns 0 if everything went fine, -1 otherwise */ 91 /* returns 0 if everything went fine, -1 otherwise */
92 int16_t WebRtcIsac_UpdateBandwidthEstimator( 92 int16_t WebRtcIsac_UpdateBandwidthEstimator(
93 BwEstimatorstr* bwest_str, 93 BwEstimatorstr* bwest_str,
94 const uint16_t rtp_number, 94 const uint16_t rtp_number,
95 const int32_t frame_length, 95 const int32_t frame_length,
96 const uint32_t send_ts, 96 const uint32_t send_ts,
97 const uint32_t arr_ts, 97 const uint32_t arr_ts,
98 const int32_t pksize); 98 const int32_t pksize);
99 99
100 /* Update receiving estimates. Used when we only receive BWE index, no iSAC da ta packet. */ 100 /* Update receiving estimates. Used when we only receive BWE index, no iSAC da ta packet. */
101 int16_t WebRtcIsac_UpdateUplinkBwImpl( 101 int16_t WebRtcIsac_UpdateUplinkBwImpl(
102 BwEstimatorstr* bwest_str, 102 BwEstimatorstr* bwest_str,
103 int16_t Index, 103 int16_t Index,
104 enum IsacSamplingRate encoderSamplingFreq); 104 enum IsacSamplingRate encoderSamplingFreq);
105 105
106 /* Returns the bandwidth/jitter estimation code (integer 0...23) to put in the sending iSAC payload */ 106 /* Returns the bandwidth/jitter estimation code (integer 0...23) to put in the sending iSAC payload */
107 uint16_t WebRtcIsac_GetDownlinkBwJitIndexImpl( 107 uint16_t WebRtcIsac_GetDownlinkBwJitIndexImpl(
108 BwEstimatorstr* bwest_str, 108 BwEstimatorstr* bwest_str,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 int16_t WebRtcIsac_UpdateUplinkJitter( 168 int16_t WebRtcIsac_UpdateUplinkJitter(
169 BwEstimatorstr* bwest_str, 169 BwEstimatorstr* bwest_str,
170 int32_t index); 170 int32_t index);
171 171
172 #if defined(__cplusplus) 172 #if defined(__cplusplus)
173 } 173 }
174 #endif 174 #endif
175 175
176 176
177 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_BANDWIDTH_ESTIMATO R_H_ */ 177 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_BANDWIDTH_ESTIMATO R_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698