Replaces both BitrateConstraintsMask and PeerConnectionInterface::BitrateParameters. The latter is kept temporarily for backwards compatibility. Bug: None Change-Id: Ibe1d043f2a76e56ff67809774e9c0f5e0ec9e00f Reviewed-on: https://webrtc-review.googlesource.com/74020 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23148}
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef API_TRANSPORT_BITRATE_SETTINGS_H_
|
|
#define API_TRANSPORT_BITRATE_SETTINGS_H_
|
|
|
|
#include "api/optional.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// Configuration of send bitrate. The |start_bitrate_bps| value is
|
|
// used for multiple purposes, both as a prior in the bandwidth
|
|
// estimator, and for initial configuration of the encoder. We may
|
|
// want to create separate apis for those, and use a smaller struct
|
|
// with only the min and max constraints.
|
|
struct BitrateSettings {
|
|
BitrateSettings();
|
|
~BitrateSettings();
|
|
BitrateSettings(const BitrateSettings&);
|
|
// 0 <= min <= start <= max should hold for set parameters.
|
|
rtc::Optional<int> min_bitrate_bps;
|
|
rtc::Optional<int> start_bitrate_bps;
|
|
rtc::Optional<int> max_bitrate_bps;
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // API_TRANSPORT_BITRATE_SETTINGS_H_
|