commit | 6c19decc14b706cff039cf4045bc33d67edc1bb7 | [log] [tgz] |
---|---|---|
author | Sebastian Jansson <srte@webrtc.org> | Fri Oct 05 11:23:57 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 05 15:06:17 2018 |
tree | a9c6874bf1e4286bd4b75289ff6510efdc85ba2f | |
parent | b88fe025b72efa9886f9f72d2b9412a7a631d924 [diff] |
Adds Clamping functions for DataRate. This is quite useful in many places where we need to restrict the range of a DataRate. It makes it easier to read the intention than with: value_ = std::max(some_lower_limit, std::min(value_, some_upper_limit)); The naming follows the naming for rtc::SafeClamp. Bug: webrtc:9709 Change-Id: I08e05197acec325d85babd2a06806a8667f2fcb1 Reviewed-on: https://webrtc-review.googlesource.com/c/104040 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25023}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.