• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include "logging/rtc_event_log/events/rtc_event_bwe_update_delay_based.h"
12 
13 #include "absl/memory/memory.h"
14 #include "modules/remote_bitrate_estimator/include/bwe_defines.h"
15 
16 namespace webrtc {
17 
RtcEventBweUpdateDelayBased(int32_t bitrate_bps,BandwidthUsage detector_state)18 RtcEventBweUpdateDelayBased::RtcEventBweUpdateDelayBased(
19     int32_t bitrate_bps,
20     BandwidthUsage detector_state)
21     : bitrate_bps_(bitrate_bps), detector_state_(detector_state) {}
22 
RtcEventBweUpdateDelayBased(const RtcEventBweUpdateDelayBased & other)23 RtcEventBweUpdateDelayBased::RtcEventBweUpdateDelayBased(
24     const RtcEventBweUpdateDelayBased& other)
25     : RtcEvent(other.timestamp_us_),
26       bitrate_bps_(other.bitrate_bps_),
27       detector_state_(other.detector_state_) {}
28 
29 RtcEventBweUpdateDelayBased::~RtcEventBweUpdateDelayBased() = default;
30 
GetType() const31 RtcEvent::Type RtcEventBweUpdateDelayBased::GetType() const {
32   return RtcEvent::Type::BweUpdateDelayBased;
33 }
34 
IsConfigEvent() const35 bool RtcEventBweUpdateDelayBased::IsConfigEvent() const {
36   return false;
37 }
38 
Copy() const39 std::unique_ptr<RtcEventBweUpdateDelayBased> RtcEventBweUpdateDelayBased::Copy()
40     const {
41   return absl::WrapUnique<RtcEventBweUpdateDelayBased>(
42       new RtcEventBweUpdateDelayBased(*this));
43 }
44 
45 }  // namespace webrtc
46