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

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

Issue 1208923002: iSAC: Functions for importing and exporting bandwidth est. info (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review comments Created 5 years, 5 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 /* Returns the bandwidth that iSAC should send with in bps */ 89 /* Returns the bandwidth that iSAC should send with in bps */
90 int16_t WebRtcIsacfix_GetUplinkBandwidth(const BwEstimatorstr *bwest_str); 90 int16_t WebRtcIsacfix_GetUplinkBandwidth(const BwEstimatorstr *bwest_str);
91 91
92 /* Returns the max delay (in ms) */ 92 /* Returns the max delay (in ms) */
93 int16_t WebRtcIsacfix_GetDownlinkMaxDelay(const BwEstimatorstr *bwest_str); 93 int16_t WebRtcIsacfix_GetDownlinkMaxDelay(const BwEstimatorstr *bwest_str);
94 94
95 /* Returns the max delay value from the other side in ms */ 95 /* Returns the max delay value from the other side in ms */
96 int16_t WebRtcIsacfix_GetUplinkMaxDelay(const BwEstimatorstr *bwest_str); 96 int16_t WebRtcIsacfix_GetUplinkMaxDelay(const BwEstimatorstr *bwest_str);
97 97
98 /* Fills in an IsacExternalBandwidthInfo struct. */
99 void WebRtcIsacfixBw_GetBandwidthInfo(BwEstimatorstr* bwest_str,
100 IsacBandwidthInfo* bwinfo);
101
102 /* Uses the values from an IsacExternalBandwidthInfo struct. */
103 void WebRtcIsacfixBw_SetBandwidthInfo(BwEstimatorstr* bwest_str,
104 const IsacBandwidthInfo* bwinfo);
105
98 /* 106 /*
99 * update amount of data in bottle neck buffer and burst handling 107 * update amount of data in bottle neck buffer and burst handling
100 * returns minimum payload size (bytes) 108 * returns minimum payload size (bytes)
101 */ 109 */
102 uint16_t WebRtcIsacfix_GetMinBytes(RateModel *State, 110 uint16_t WebRtcIsacfix_GetMinBytes(RateModel *State,
103 int16_t StreamSize, /* bytes in bitstream */ 111 int16_t StreamSize, /* bytes in bitstream */
104 const int16_t FrameLen, /* ms per frame */ 112 const int16_t FrameLen, /* ms per frame */
105 const int16_t BottleNeck, /* bottle ne ck rate; excl headers (bps) */ 113 const int16_t BottleNeck, /* bottle ne ck rate; excl headers (bps) */
106 const int16_t DelayBuildUp); /* max delay from bottle neck buffering (ms) */ 114 const int16_t DelayBuildUp); /* max delay from bottle neck buffering (ms) */
107 115
(...skipping 10 matching lines...) Expand all
118 126
119 /* Returns the new framelength value (input argument: bottle_neck) */ 127 /* Returns the new framelength value (input argument: bottle_neck) */
120 int16_t WebRtcIsacfix_GetNewFrameLength(int16_t bottle_neck, int16_t current_fra melength); 128 int16_t WebRtcIsacfix_GetNewFrameLength(int16_t bottle_neck, int16_t current_fra melength);
121 129
122 /* Returns the new SNR value (input argument: bottle_neck) */ 130 /* Returns the new SNR value (input argument: bottle_neck) */
123 //returns snr in Q10 131 //returns snr in Q10
124 int16_t WebRtcIsacfix_GetSnr(int16_t bottle_neck, int16_t framesamples); 132 int16_t WebRtcIsacfix_GetSnr(int16_t bottle_neck, int16_t framesamples);
125 133
126 134
127 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_BANDWIDTH_ESTIMATO R_H_ */ 135 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_BANDWIDTH_ESTIMATO R_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698