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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.h

Issue 1920123002: Cap the send bitrate for opus and iSAC before passing down to VoE. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Reverting patch set 3. Created 4 years, 7 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
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 WebRtcVoiceEngine* engine() { return engine_; } 220 WebRtcVoiceEngine* engine() { return engine_; }
221 int GetLastEngineError() { return engine()->GetLastEngineError(); } 221 int GetLastEngineError() { return engine()->GetLastEngineError(); }
222 int GetOutputLevel(int channel); 222 int GetOutputLevel(int channel);
223 bool SetPlayout(int channel, bool playout); 223 bool SetPlayout(int channel, bool playout);
224 bool ChangePlayout(bool playout); 224 bool ChangePlayout(bool playout);
225 int CreateVoEChannel(); 225 int CreateVoEChannel();
226 bool DeleteVoEChannel(int channel); 226 bool DeleteVoEChannel(int channel);
227 bool IsDefaultRecvStream(uint32_t ssrc) { 227 bool IsDefaultRecvStream(uint32_t ssrc) {
228 return default_recv_ssrc_ == static_cast<int64_t>(ssrc); 228 return default_recv_ssrc_ == static_cast<int64_t>(ssrc);
229 } 229 }
230 bool SetSendBitrate(int bps); 230 bool SetMaxSendBitrate(int bps);
231 bool SetChannelParameters(int channel, 231 bool SetChannelParameters(int channel,
232 const webrtc::RtpParameters& parameters); 232 const webrtc::RtpParameters& parameters);
233 bool SetSendBitrate(int channel, int bps); 233 bool SetMaxSendBitrate(int channel, int bps);
234 bool HasSendCodec() const { 234 bool HasSendCodec() const {
235 return send_codec_spec_.codec_inst.pltype != -1; 235 return send_codec_spec_.codec_inst.pltype != -1;
236 } 236 }
237 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters); 237 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters);
238 void SetupRecording(); 238 void SetupRecording();
239 239
240 rtc::ThreadChecker worker_thread_checker_; 240 rtc::ThreadChecker worker_thread_checker_;
241 241
242 WebRtcVoiceEngine* const engine_ = nullptr; 242 WebRtcVoiceEngine* const engine_ = nullptr;
243 std::vector<AudioCodec> send_codecs_; 243 std::vector<AudioCodec> send_codecs_;
244 std::vector<AudioCodec> recv_codecs_; 244 std::vector<AudioCodec> recv_codecs_;
245 int send_bitrate_bps_ = 0; 245 int max_send_bitrate_bps_ = 0;
246 AudioOptions options_; 246 AudioOptions options_;
247 rtc::Optional<int> dtmf_payload_type_; 247 rtc::Optional<int> dtmf_payload_type_;
248 bool desired_playout_ = false; 248 bool desired_playout_ = false;
249 bool recv_transport_cc_enabled_ = false; 249 bool recv_transport_cc_enabled_ = false;
250 bool playout_ = false; 250 bool playout_ = false;
251 bool send_ = false; 251 bool send_ = false;
252 webrtc::Call* const call_ = nullptr; 252 webrtc::Call* const call_ = nullptr;
253 253
254 // SSRC of unsignalled receive stream, or -1 if there isn't one. 254 // SSRC of unsignalled receive stream, or -1 if there isn't one.
255 int64_t default_recv_ssrc_ = -1; 255 int64_t default_recv_ssrc_ = -1;
(...skipping 29 matching lines...) Expand all
285 int cng_payload_type = -1; 285 int cng_payload_type = -1;
286 int cng_plfreq = -1; 286 int cng_plfreq = -1;
287 webrtc::CodecInst codec_inst; 287 webrtc::CodecInst codec_inst;
288 } send_codec_spec_; 288 } send_codec_spec_;
289 289
290 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 290 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
291 }; 291 };
292 } // namespace cricket 292 } // namespace cricket
293 293
294 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 294 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698