Remove unused (no-op) VideoOptions.
Removing VideoOptions: adapt_input_to_encoder, adapt_view_switch, video_one_layer_screencast and video_high_bitrate. R=pthatcher@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/23079004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7448 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a4351a045d
commit
43336b6b9f
@ -301,14 +301,10 @@ struct VideoOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetAll(const VideoOptions& change) {
|
void SetAll(const VideoOptions& change) {
|
||||||
adapt_input_to_encoder.SetFrom(change.adapt_input_to_encoder);
|
|
||||||
adapt_input_to_cpu_usage.SetFrom(change.adapt_input_to_cpu_usage);
|
adapt_input_to_cpu_usage.SetFrom(change.adapt_input_to_cpu_usage);
|
||||||
adapt_cpu_with_smoothing.SetFrom(change.adapt_cpu_with_smoothing);
|
adapt_cpu_with_smoothing.SetFrom(change.adapt_cpu_with_smoothing);
|
||||||
adapt_view_switch.SetFrom(change.adapt_view_switch);
|
|
||||||
video_adapt_third.SetFrom(change.video_adapt_third);
|
video_adapt_third.SetFrom(change.video_adapt_third);
|
||||||
video_noise_reduction.SetFrom(change.video_noise_reduction);
|
video_noise_reduction.SetFrom(change.video_noise_reduction);
|
||||||
video_one_layer_screencast.SetFrom(change.video_one_layer_screencast);
|
|
||||||
video_high_bitrate.SetFrom(change.video_high_bitrate);
|
|
||||||
video_start_bitrate.SetFrom(change.video_start_bitrate);
|
video_start_bitrate.SetFrom(change.video_start_bitrate);
|
||||||
video_temporal_layer_screencast.SetFrom(
|
video_temporal_layer_screencast.SetFrom(
|
||||||
change.video_temporal_layer_screencast);
|
change.video_temporal_layer_screencast);
|
||||||
@ -338,16 +334,13 @@ struct VideoOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const VideoOptions& o) const {
|
bool operator==(const VideoOptions& o) const {
|
||||||
return adapt_input_to_encoder == o.adapt_input_to_encoder &&
|
return adapt_input_to_cpu_usage == o.adapt_input_to_cpu_usage &&
|
||||||
adapt_input_to_cpu_usage == o.adapt_input_to_cpu_usage &&
|
|
||||||
adapt_cpu_with_smoothing == o.adapt_cpu_with_smoothing &&
|
adapt_cpu_with_smoothing == o.adapt_cpu_with_smoothing &&
|
||||||
adapt_view_switch == o.adapt_view_switch &&
|
|
||||||
video_adapt_third == o.video_adapt_third &&
|
video_adapt_third == o.video_adapt_third &&
|
||||||
video_noise_reduction == o.video_noise_reduction &&
|
video_noise_reduction == o.video_noise_reduction &&
|
||||||
video_one_layer_screencast == o.video_one_layer_screencast &&
|
|
||||||
video_high_bitrate == o.video_high_bitrate &&
|
|
||||||
video_start_bitrate == o.video_start_bitrate &&
|
video_start_bitrate == o.video_start_bitrate &&
|
||||||
video_temporal_layer_screencast == o.video_temporal_layer_screencast &&
|
video_temporal_layer_screencast ==
|
||||||
|
o.video_temporal_layer_screencast &&
|
||||||
video_leaky_bucket == o.video_leaky_bucket &&
|
video_leaky_bucket == o.video_leaky_bucket &&
|
||||||
video_highest_bitrate == o.video_highest_bitrate &&
|
video_highest_bitrate == o.video_highest_bitrate &&
|
||||||
cpu_overuse_detection == o.cpu_overuse_detection &&
|
cpu_overuse_detection == o.cpu_overuse_detection &&
|
||||||
@ -364,8 +357,7 @@ struct VideoOptions {
|
|||||||
o.system_low_adaptation_threshhold &&
|
o.system_low_adaptation_threshhold &&
|
||||||
system_high_adaptation_threshhold ==
|
system_high_adaptation_threshhold ==
|
||||||
o.system_high_adaptation_threshhold &&
|
o.system_high_adaptation_threshhold &&
|
||||||
buffered_mode_latency == o.buffered_mode_latency &&
|
buffered_mode_latency == o.buffered_mode_latency && dscp == o.dscp &&
|
||||||
dscp == o.dscp &&
|
|
||||||
suspend_below_min_bitrate == o.suspend_below_min_bitrate &&
|
suspend_below_min_bitrate == o.suspend_below_min_bitrate &&
|
||||||
unsignalled_recv_stream_limit == o.unsignalled_recv_stream_limit &&
|
unsignalled_recv_stream_limit == o.unsignalled_recv_stream_limit &&
|
||||||
use_simulcast_adapter == o.use_simulcast_adapter &&
|
use_simulcast_adapter == o.use_simulcast_adapter &&
|
||||||
@ -376,14 +368,10 @@ struct VideoOptions {
|
|||||||
std::string ToString() const {
|
std::string ToString() const {
|
||||||
std::ostringstream ost;
|
std::ostringstream ost;
|
||||||
ost << "VideoOptions {";
|
ost << "VideoOptions {";
|
||||||
ost << ToStringIfSet("encoder adaption", adapt_input_to_encoder);
|
|
||||||
ost << ToStringIfSet("cpu adaption", adapt_input_to_cpu_usage);
|
ost << ToStringIfSet("cpu adaption", adapt_input_to_cpu_usage);
|
||||||
ost << ToStringIfSet("cpu adaptation smoothing", adapt_cpu_with_smoothing);
|
ost << ToStringIfSet("cpu adaptation smoothing", adapt_cpu_with_smoothing);
|
||||||
ost << ToStringIfSet("adapt view switch", adapt_view_switch);
|
|
||||||
ost << ToStringIfSet("video adapt third", video_adapt_third);
|
ost << ToStringIfSet("video adapt third", video_adapt_third);
|
||||||
ost << ToStringIfSet("noise reduction", video_noise_reduction);
|
ost << ToStringIfSet("noise reduction", video_noise_reduction);
|
||||||
ost << ToStringIfSet("1 layer screencast", video_one_layer_screencast);
|
|
||||||
ost << ToStringIfSet("high bitrate", video_high_bitrate);
|
|
||||||
ost << ToStringIfSet("start bitrate", video_start_bitrate);
|
ost << ToStringIfSet("start bitrate", video_start_bitrate);
|
||||||
ost << ToStringIfSet("video temporal layer screencast",
|
ost << ToStringIfSet("video temporal layer screencast",
|
||||||
video_temporal_layer_screencast);
|
video_temporal_layer_screencast);
|
||||||
@ -415,22 +403,14 @@ struct VideoOptions {
|
|||||||
return ost.str();
|
return ost.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encoder adaption, which is the gd callback in LMI, and TBA in WebRTC.
|
|
||||||
Settable<bool> adapt_input_to_encoder;
|
|
||||||
// Enable CPU adaptation?
|
// Enable CPU adaptation?
|
||||||
Settable<bool> adapt_input_to_cpu_usage;
|
Settable<bool> adapt_input_to_cpu_usage;
|
||||||
// Enable CPU adaptation smoothing?
|
// Enable CPU adaptation smoothing?
|
||||||
Settable<bool> adapt_cpu_with_smoothing;
|
Settable<bool> adapt_cpu_with_smoothing;
|
||||||
// Enable Adapt View Switch?
|
|
||||||
Settable<bool> adapt_view_switch;
|
|
||||||
// Enable video adapt third?
|
// Enable video adapt third?
|
||||||
Settable<bool> video_adapt_third;
|
Settable<bool> video_adapt_third;
|
||||||
// Enable denoising?
|
// Enable denoising?
|
||||||
Settable<bool> video_noise_reduction;
|
Settable<bool> video_noise_reduction;
|
||||||
// Experimental: Enable one layer screencast?
|
|
||||||
Settable<bool> video_one_layer_screencast;
|
|
||||||
// Experimental: Enable WebRtc higher bitrate?
|
|
||||||
Settable<bool> video_high_bitrate;
|
|
||||||
// Experimental: Enable WebRtc higher start bitrate?
|
// Experimental: Enable WebRtc higher start bitrate?
|
||||||
Settable<int> video_start_bitrate;
|
Settable<int> video_start_bitrate;
|
||||||
// Experimental: Enable WebRTC layered screencast.
|
// Experimental: Enable WebRTC layered screencast.
|
||||||
|
Loading…
Reference in New Issue
Block a user