123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef MEDIA_BASE_MEDIA_CONFIG_H_
- #define MEDIA_BASE_MEDIA_CONFIG_H_
- namespace cricket {
- struct MediaConfig {
-
-
- bool enable_dscp = false;
-
- struct Video {
-
-
- bool enable_cpu_adaptation = true;
-
-
-
-
-
- bool suspend_below_min_bitrate = false;
-
-
-
-
-
-
-
-
-
- bool enable_prerenderer_smoothing = true;
-
- bool periodic_alr_bandwidth_probing = false;
-
-
-
-
-
- bool experiment_cpu_load_estimator = false;
-
- int rtcp_report_interval_ms = 1000;
- } video;
-
- struct Audio {
-
- int rtcp_report_interval_ms = 5000;
- } audio;
- bool operator==(const MediaConfig& o) const {
- return enable_dscp == o.enable_dscp &&
- video.enable_cpu_adaptation == o.video.enable_cpu_adaptation &&
- video.suspend_below_min_bitrate ==
- o.video.suspend_below_min_bitrate &&
- video.enable_prerenderer_smoothing ==
- o.video.enable_prerenderer_smoothing &&
- video.periodic_alr_bandwidth_probing ==
- o.video.periodic_alr_bandwidth_probing &&
- video.experiment_cpu_load_estimator ==
- o.video.experiment_cpu_load_estimator &&
- video.rtcp_report_interval_ms == o.video.rtcp_report_interval_ms &&
- audio.rtcp_report_interval_ms == o.audio.rtcp_report_interval_ms;
- }
- bool operator!=(const MediaConfig& o) const { return !(*this == o); }
- };
- }
- #endif
|