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

Unified Diff: webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h

Issue 2585293002: Reducing calling to SmoothingFilter in Fec Controller. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h
index 62a3533a7591a15fc6c98047dbdfb04fbdff918f..ac4b1e236a0fc45bff517061613dd9d77b0d8ada 100644
--- a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.h
@@ -87,8 +87,10 @@ class FecController final : public Controller {
const Config::Threshold& threshold,
const ThresholdInfo& threshold_info) const;
- bool FecEnablingDecision(const NetworkMetrics& metrics) const;
- bool FecDisablingDecision(const NetworkMetrics& metrics) const;
+ bool FecEnablingDecision(const NetworkMetrics& metrics,
+ const rtc::Optional<float>& packet_loss) const;
hlundin-webrtc 2016/12/22 10:42:39 I think you can pass an Optional<float> by value.
minyue-webrtc 2016/12/27 13:43:33 I am not sure about the efficiency between ref and
hlundin-webrtc 2017/01/09 14:46:16 I think the argument from ArrayView applies here a
kwiberg-webrtc 2017/01/09 14:55:19 I'm pretty sure Henrik is right (and if I were wri
kwiberg-webrtc 2017/01/10 02:19:28 So, I did the experiment, and it seems like even f
hlundin-webrtc 2017/01/10 08:34:07 Wow! Interesting findings. I stand corrected.
+ bool FecDisablingDecision(const NetworkMetrics& metrics,
+ const rtc::Optional<float>& packet_loss) const;
hlundin-webrtc 2016/12/22 10:42:39 And here.
const Config config_;
bool fec_enabled_;
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/audio_network_adaptor/fec_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698