Updates to video config to allow changes in google3 tests, in order to not break anything.

Bug: webrtc:8630
Change-Id: I71bfd3f01344c80a83b728385b9231b47ee1fd5d
Reviewed-on: https://webrtc-review.googlesource.com/32460
Commit-Queue: Seth Hampson <shampson@webrtc.org>
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Peter Thatcher <pthatcher@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21373}
This commit is contained in:
Seth Hampson
2017-12-19 11:37:41 -08:00
committed by Commit Bot
parent 134fbcf58c
commit f32795e33e
4 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,8 @@
namespace webrtc {
const double kDefaultBitratePriority = 1.0;
RtcpFeedback::RtcpFeedback() {}
RtcpFeedback::RtcpFeedback(RtcpFeedbackType type) : type(type) {}
RtcpFeedback::RtcpFeedback(RtcpFeedbackType type,

View File

@ -72,6 +72,7 @@ enum class DegradationPreference {
BALANCED,
};
extern const double kDefaultBitratePriority;
enum class PriorityType { VERY_LOW, LOW, MEDIUM, HIGH };
struct RtcpFeedback {

View File

@ -54,6 +54,7 @@ VideoEncoderConfig::VideoEncoderConfig()
encoder_specific_settings(nullptr),
min_transmit_bitrate_bps(0),
max_bitrate_bps(0),
bitrate_priority(1.0),
number_of_streams(0) {}
VideoEncoderConfig::VideoEncoderConfig(VideoEncoderConfig&&) = default;

View File

@ -35,6 +35,7 @@ struct VideoStream {
int min_bitrate_bps;
int target_bitrate_bps;
int max_bitrate_bps;
rtc::Optional<double> bitrate_priority;
int max_qp;
@ -142,6 +143,8 @@ class VideoEncoderConfig {
// unless the estimated bandwidth indicates that the link can handle it.
int min_transmit_bitrate_bps;
int max_bitrate_bps;
// The bitrate priority used for all VideoStreams.
double bitrate_priority;
// Max number of encoded VideoStreams to produce.
size_t number_of_streams;