clang-tidy: tidy-readability-redundant-declaration
https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-declaration.html Bug: webrtc:424706384 Change-Id: If65947a54c423e2d33482e4b46e0a0861530ed92 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/402940 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Philipp Hancke <phancke@meta.com> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45295}
This commit is contained in:
parent
5671453b03
commit
5f2da8d000
@ -174,5 +174,4 @@ AudioDecoder::SpeechType AudioDecoder::ConvertSpeechType(int16_t type) {
|
||||
}
|
||||
}
|
||||
|
||||
constexpr int AudioDecoder::kMaxNumberOfChannels;
|
||||
} // namespace webrtc
|
||||
|
||||
@ -122,5 +122,4 @@ ANAStats AudioEncoder::GetANAStats() const {
|
||||
return ANAStats();
|
||||
}
|
||||
|
||||
constexpr int AudioEncoder::kMaxNumberOfChannels;
|
||||
} // namespace webrtc
|
||||
|
||||
@ -27,10 +27,6 @@ constexpr int kDefaultLowRateComplexity =
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr int AudioEncoderOpusConfig::kDefaultFrameSizeMs;
|
||||
constexpr int AudioEncoderOpusConfig::kMinBitrateBps;
|
||||
constexpr int AudioEncoderOpusConfig::kMaxBitrateBps;
|
||||
|
||||
AudioEncoderOpusConfig::AudioEncoderOpusConfig()
|
||||
: frame_size_ms(kDefaultFrameSizeMs),
|
||||
sample_rate_hz(48000),
|
||||
|
||||
@ -137,34 +137,6 @@ std::string RtpExtension::ToString() const {
|
||||
return sb.str();
|
||||
}
|
||||
|
||||
constexpr char RtpExtension::kEncryptHeaderExtensionsUri[];
|
||||
constexpr char RtpExtension::kAudioLevelUri[];
|
||||
constexpr char RtpExtension::kTimestampOffsetUri[];
|
||||
constexpr char RtpExtension::kAbsSendTimeUri[];
|
||||
constexpr char RtpExtension::kAbsoluteCaptureTimeUri[];
|
||||
constexpr char RtpExtension::kVideoRotationUri[];
|
||||
constexpr char RtpExtension::kVideoContentTypeUri[];
|
||||
constexpr char RtpExtension::kVideoTimingUri[];
|
||||
constexpr char RtpExtension::kGenericFrameDescriptorUri00[];
|
||||
constexpr char RtpExtension::kDependencyDescriptorUri[];
|
||||
constexpr char RtpExtension::kVideoLayersAllocationUri[];
|
||||
constexpr char RtpExtension::kTransportSequenceNumberUri[];
|
||||
constexpr char RtpExtension::kTransportSequenceNumberV2Uri[];
|
||||
constexpr char RtpExtension::kPlayoutDelayUri[];
|
||||
constexpr char RtpExtension::kColorSpaceUri[];
|
||||
constexpr char RtpExtension::kMidUri[];
|
||||
constexpr char RtpExtension::kRidUri[];
|
||||
constexpr char RtpExtension::kRepairedRidUri[];
|
||||
constexpr char RtpExtension::kVideoFrameTrackingIdUri[];
|
||||
constexpr char RtpExtension::kCsrcAudioLevelsUri[];
|
||||
constexpr char RtpExtension::kCorruptionDetectionUri[];
|
||||
|
||||
constexpr int RtpExtension::kMinId;
|
||||
constexpr int RtpExtension::kMaxId;
|
||||
constexpr int RtpExtension::kMaxValueSize;
|
||||
constexpr int RtpExtension::kOneByteHeaderExtensionMaxId;
|
||||
constexpr int RtpExtension::kOneByteHeaderExtensionMaxValueSize;
|
||||
|
||||
bool RtpExtension::IsSupportedForAudio(absl::string_view uri) {
|
||||
return uri == RtpExtension::kAudioLevelUri ||
|
||||
uri == RtpExtension::kAbsSendTimeUri ||
|
||||
|
||||
@ -16,11 +16,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr int DependencyDescriptor::kMaxSpatialIds;
|
||||
constexpr int DependencyDescriptor::kMaxTemporalIds;
|
||||
constexpr int DependencyDescriptor::kMaxTemplates;
|
||||
constexpr int DependencyDescriptor::kMaxDecodeTargets;
|
||||
|
||||
namespace webrtc_impl {
|
||||
|
||||
absl::InlinedVector<DecodeTargetIndication, 10> StringToDecodeTargetIndications(
|
||||
|
||||
@ -86,12 +86,6 @@ VideoEncoder::ScalingSettings::ScalingSettings(const ScalingSettings&) =
|
||||
|
||||
VideoEncoder::ScalingSettings::~ScalingSettings() {}
|
||||
|
||||
// static
|
||||
constexpr VideoEncoder::ScalingSettings::KOff
|
||||
VideoEncoder::ScalingSettings::kOff;
|
||||
// static
|
||||
constexpr uint8_t VideoEncoder::EncoderInfo::kMaxFramerateFraction;
|
||||
|
||||
bool VideoEncoder::ResolutionBitrateLimits::operator==(
|
||||
const ResolutionBitrateLimits& rhs) const {
|
||||
return frame_size_pixels == rhs.frame_size_pixels &&
|
||||
|
||||
@ -98,8 +98,6 @@ void UpdateEventLogStreamConfig(RtcEventLog& event_log,
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr char AudioAllocationConfig::kKey[];
|
||||
|
||||
std::unique_ptr<StructParametersParser> AudioAllocationConfig::Parser() {
|
||||
return StructParametersParser::Create( //
|
||||
"min", &min_bitrate, //
|
||||
|
||||
@ -20,9 +20,6 @@
|
||||
#include "logging/rtc_event_log/events/rtc_event_log_parse_status.h"
|
||||
|
||||
namespace webrtc {
|
||||
constexpr RtcEvent::Type RtcEventAlrState::kType;
|
||||
constexpr RtcEventDefinition<RtcEventAlrState, LoggedAlrStateEvent, bool>
|
||||
RtcEventAlrState::definition_;
|
||||
|
||||
RtcEventAlrState::RtcEventAlrState(bool in_alr) : in_alr_(in_alr) {}
|
||||
|
||||
|
||||
@ -15,15 +15,9 @@
|
||||
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/rtc_event_log/rtc_event.h"
|
||||
#include "logging/rtc_event_log/events/rtc_event_definition.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr RtcEventDefinition<RtcEventAudioPlayout,
|
||||
LoggedAudioPlayoutEvent,
|
||||
uint32_t>
|
||||
RtcEventAudioPlayout::definition_;
|
||||
|
||||
RtcEventAudioPlayout::RtcEventAudioPlayout(uint32_t ssrc) : ssrc_(ssrc) {}
|
||||
|
||||
RtcEventAudioPlayout::RtcEventAudioPlayout(const RtcEventAudioPlayout& other)
|
||||
|
||||
@ -23,9 +23,6 @@
|
||||
#include "logging/rtc_event_log/events/rtc_event_log_parse_status.h"
|
||||
|
||||
namespace webrtc {
|
||||
constexpr RtcEvent::Type RtcEventBeginLog::kType;
|
||||
constexpr EventParameters RtcEventBeginLog::event_params_;
|
||||
constexpr FieldParameters RtcEventBeginLog::utc_start_time_params_;
|
||||
|
||||
RtcEventBeginLog::RtcEventBeginLog(Timestamp timestamp,
|
||||
Timestamp utc_start_time)
|
||||
|
||||
@ -16,16 +16,9 @@
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/rtc_event_log/rtc_event.h"
|
||||
#include "api/transport/bandwidth_usage.h"
|
||||
#include "logging/rtc_event_log/events/rtc_event_definition.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr RtcEventDefinition<RtcEventBweUpdateDelayBased,
|
||||
LoggedBweDelayBasedUpdate,
|
||||
int32_t,
|
||||
BandwidthUsage>
|
||||
RtcEventBweUpdateDelayBased::definition_;
|
||||
|
||||
RtcEventBweUpdateDelayBased::RtcEventBweUpdateDelayBased(
|
||||
int32_t bitrate_bps,
|
||||
BandwidthUsage detector_state)
|
||||
|
||||
@ -23,8 +23,6 @@
|
||||
#include "logging/rtc_event_log/events/rtc_event_log_parse_status.h"
|
||||
|
||||
namespace webrtc {
|
||||
constexpr RtcEvent::Type RtcEventEndLog::kType;
|
||||
constexpr EventParameters RtcEventEndLog::event_params_;
|
||||
|
||||
RtcEventEndLog::RtcEventEndLog(Timestamp timestamp)
|
||||
: RtcEvent(timestamp.us()) {}
|
||||
|
||||
@ -218,21 +218,6 @@ class RtcTestEvent final : public RtcEvent {
|
||||
const std::string string_;
|
||||
};
|
||||
|
||||
constexpr EventParameters RtcTestEvent::event_params;
|
||||
constexpr FieldParameters RtcTestEvent::timestamp_params;
|
||||
constexpr FieldParameters RtcTestEvent::bool_params;
|
||||
constexpr FieldParameters RtcTestEvent::signed32_params;
|
||||
constexpr FieldParameters RtcTestEvent::unsigned32_params;
|
||||
constexpr FieldParameters RtcTestEvent::signed64_params;
|
||||
constexpr FieldParameters RtcTestEvent::unsigned64_params;
|
||||
|
||||
constexpr FieldParameters RtcTestEvent::optional32_params;
|
||||
constexpr FieldParameters RtcTestEvent::optional64_params;
|
||||
constexpr FieldParameters RtcTestEvent::wrapping21_params;
|
||||
constexpr FieldParameters RtcTestEvent::string_params;
|
||||
|
||||
constexpr RtcEvent::Type RtcTestEvent::kType;
|
||||
|
||||
class RtcEventFieldTest : public ::testing::Test {
|
||||
protected:
|
||||
void SetUp() override {}
|
||||
|
||||
@ -29,9 +29,6 @@ constexpr size_t kMaxSampleRate = 48000;
|
||||
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
constexpr size_t BackgroundNoise::kMaxLpcOrder;
|
||||
|
||||
BackgroundNoise::BackgroundNoise(size_t num_channels)
|
||||
: num_channels_(num_channels),
|
||||
channel_parameters_(new ChannelParameters[num_channels_]) {
|
||||
|
||||
@ -70,12 +70,6 @@ void LoadDecoders(NetEq* neteq) {
|
||||
|
||||
} // namespace
|
||||
|
||||
const int NetEqDecodingTest::kTimeStepMs;
|
||||
const size_t NetEqDecodingTest::kBlockSize8kHz;
|
||||
const size_t NetEqDecodingTest::kBlockSize16kHz;
|
||||
const size_t NetEqDecodingTest::kBlockSize32kHz;
|
||||
const int NetEqDecodingTest::kInitSampleRateHz;
|
||||
|
||||
NetEqDecodingTest::NetEqDecodingTest()
|
||||
: clock_(0),
|
||||
env_(CreateEnvironment(&clock_)),
|
||||
|
||||
@ -122,9 +122,6 @@ void InterleaveToAudioFrame(DeinterleavedView<float> deinterleaved,
|
||||
}
|
||||
} // namespace
|
||||
|
||||
constexpr size_t FrameCombiner::kMaximumNumberOfChannels;
|
||||
constexpr size_t FrameCombiner::kMaximumChannelSize;
|
||||
|
||||
FrameCombiner::FrameCombiner(bool use_limiter)
|
||||
: data_dumper_(new ApmDataDumper(0)),
|
||||
limiter_(data_dumper_.get(), kMaximumChannelSize, "AudioMixer"),
|
||||
|
||||
@ -24,15 +24,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr std::array<float, kInterpolatedGainCurveTotalPoints>
|
||||
InterpolatedGainCurve::approximation_params_x_;
|
||||
|
||||
constexpr std::array<float, kInterpolatedGainCurveTotalPoints>
|
||||
InterpolatedGainCurve::approximation_params_m_;
|
||||
|
||||
constexpr std::array<float, kInterpolatedGainCurveTotalPoints>
|
||||
InterpolatedGainCurve::approximation_params_q_;
|
||||
|
||||
InterpolatedGainCurve::InterpolatedGainCurve(
|
||||
ApmDataDumper* apm_data_dumper,
|
||||
absl::string_view histogram_name_prefix)
|
||||
|
||||
@ -84,10 +84,6 @@ LimiterDbGainCurve::LimiterDbGainCurve()
|
||||
RTC_CHECK_GE(max_input_level_db_, knee_start_dbfs_ + knee_smoothness_db_);
|
||||
}
|
||||
|
||||
constexpr double LimiterDbGainCurve::max_input_level_db_;
|
||||
constexpr double LimiterDbGainCurve::knee_smoothness_db_;
|
||||
constexpr double LimiterDbGainCurve::compression_ratio_;
|
||||
|
||||
double LimiterDbGainCurve::GetOutputLevelDbfs(double input_level_dbfs) const {
|
||||
if (input_level_dbfs < knee_start_dbfs_) {
|
||||
return input_level_dbfs;
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr char RobustThroughputEstimatorSettings::kKey[];
|
||||
|
||||
RobustThroughputEstimatorSettings::RobustThroughputEstimatorSettings(
|
||||
const FieldTrialsView* key_value_config) {
|
||||
Parser()->Parse(
|
||||
|
||||
@ -47,8 +47,6 @@ constexpr TimeDelta kSendTimeGroupLength = TimeDelta::Millis(5);
|
||||
constexpr uint32_t kFixedSsrc = 0;
|
||||
} // namespace
|
||||
|
||||
constexpr char BweSeparateAudioPacketsSettings::kKey[];
|
||||
|
||||
BweSeparateAudioPacketsSettings::BweSeparateAudioPacketsSettings(
|
||||
const FieldTrialsView* key_value_config) {
|
||||
Parser()->Parse(
|
||||
|
||||
@ -22,7 +22,6 @@ namespace webrtc {
|
||||
|
||||
static constexpr TimeDelta kBurstDeltaThreshold = TimeDelta::Millis(5);
|
||||
static constexpr TimeDelta kMaxBurstDuration = TimeDelta::Millis(100);
|
||||
constexpr TimeDelta InterArrivalDelta::kArrivalTimeOffsetThreshold;
|
||||
|
||||
InterArrivalDelta::InterArrivalDelta(TimeDelta send_time_group_length)
|
||||
: send_time_group_length_(send_time_group_length),
|
||||
|
||||
@ -116,8 +116,6 @@ constexpr int kDeltaCounterMax = 1000;
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr char TrendlineEstimatorSettings::kKey[];
|
||||
|
||||
TrendlineEstimatorSettings::TrendlineEstimatorSettings(
|
||||
const FieldTrialsView& key_value_config) {
|
||||
if (key_value_config.IsEnabled(kBweWindowSizeInPacketsExperiment)) {
|
||||
|
||||
@ -123,8 +123,6 @@ size_t BufferToIndex(Vp8BufferReference buffer) {
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr size_t DefaultTemporalLayers::kNumReferenceBuffers;
|
||||
|
||||
std::vector<DefaultTemporalLayers::DependencyInfo>
|
||||
DefaultTemporalLayers::GetDependencyInfo(size_t num_layers) {
|
||||
// For indexing in the patterns described below (which temporal layers they
|
||||
|
||||
@ -51,8 +51,6 @@ constexpr auto kSwitch = DecodeTargetIndication::kSwitch;
|
||||
const double ScreenshareLayers::kMaxTL0FpsReduction = 2.5;
|
||||
const double ScreenshareLayers::kAcceptableTargetOvershoot = 2.0;
|
||||
|
||||
constexpr int ScreenshareLayers::kMaxNumTemporalLayers;
|
||||
|
||||
// Always emit a frame with certain interval, even if bitrate targets have
|
||||
// been exceeded. This prevents needless keyframe requests.
|
||||
const int ScreenshareLayers::kMaxFrameIntervalMs = 2750;
|
||||
|
||||
@ -52,8 +52,6 @@ TimeDelta GetSendNackDelay(const FieldTrialsView& field_trials) {
|
||||
}
|
||||
} // namespace
|
||||
|
||||
constexpr TimeDelta NackPeriodicProcessor::kUpdateInterval;
|
||||
|
||||
NackPeriodicProcessor::NackPeriodicProcessor(TimeDelta update_interval)
|
||||
: update_interval_(update_interval) {}
|
||||
|
||||
|
||||
@ -23,10 +23,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr int ScalabilityStructureFullSvc::kMaxNumSpatialLayers;
|
||||
constexpr int ScalabilityStructureFullSvc::kMaxNumTemporalLayers;
|
||||
constexpr absl::string_view ScalabilityStructureFullSvc::kFramePatternNames[];
|
||||
|
||||
ScalabilityStructureFullSvc::ScalabilityStructureFullSvc(
|
||||
int num_spatial_layers,
|
||||
int num_temporal_layers,
|
||||
|
||||
@ -22,9 +22,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
constexpr int ScalabilityStructureKeySvc::kMaxNumSpatialLayers;
|
||||
constexpr int ScalabilityStructureKeySvc::kMaxNumTemporalLayers;
|
||||
|
||||
ScalabilityStructureKeySvc::ScalabilityStructureKeySvc(int num_spatial_layers,
|
||||
int num_temporal_layers)
|
||||
: num_spatial_layers_(num_spatial_layers),
|
||||
|
||||
@ -39,9 +39,6 @@ Dti(int sid, int tid, const ScalableVideoController::LayerFrameConfig& config) {
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr int ScalabilityStructureL2T2KeyShift::kNumSpatialLayers;
|
||||
constexpr int ScalabilityStructureL2T2KeyShift::kNumTemporalLayers;
|
||||
|
||||
ScalabilityStructureL2T2KeyShift::~ScalabilityStructureL2T2KeyShift() = default;
|
||||
|
||||
ScalableVideoController::StreamLayersConfig
|
||||
|
||||
@ -39,9 +39,6 @@ Dti(int sid, int tid, const ScalableVideoController::LayerFrameConfig& config) {
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr int ScalabilityStructureSimulcast::kMaxNumSpatialLayers;
|
||||
constexpr int ScalabilityStructureSimulcast::kMaxNumTemporalLayers;
|
||||
|
||||
ScalabilityStructureSimulcast::ScalabilityStructureSimulcast(
|
||||
int num_spatial_layers,
|
||||
int num_temporal_layers,
|
||||
|
||||
@ -83,8 +83,6 @@ constexpr Frequency kMaxFramerateEstimate = Frequency::Hertz(200);
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr char JitterEstimator::Config::kFieldTrialsKey[];
|
||||
|
||||
JitterEstimator::Config JitterEstimator::Config::ParseAndValidate(
|
||||
absl::string_view field_trial) {
|
||||
Config config;
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// / zero or more Error Causes /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int AbortChunk::kType;
|
||||
|
||||
std::optional<AbortChunk> AbortChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -25,7 +25,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Type = 11 |Chunk Flags | Length = 4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int CookieAckChunk::kType;
|
||||
|
||||
std::optional<CookieAckChunk> CookieAckChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// / Cookie /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int CookieEchoChunk::kType;
|
||||
|
||||
std::optional<CookieEchoChunk> CookieEchoChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -42,7 +42,6 @@ namespace dcsctp {
|
||||
// / User Data (seq n of Stream S) /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int DataChunk::kType;
|
||||
|
||||
std::optional<DataChunk> DataChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// / one or more Error Causes /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ErrorChunk::kType;
|
||||
|
||||
std::optional<ErrorChunk> ErrorChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -42,7 +42,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Stream-N | Stream Sequence-N |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ForwardTsnChunk::kType;
|
||||
|
||||
std::optional<ForwardTsnChunk> ForwardTsnChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// / Heartbeat Information TLV (Variable-Length) /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int HeartbeatAckChunk::kType;
|
||||
|
||||
std::optional<HeartbeatAckChunk> HeartbeatAckChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// / Heartbeat Information TLV (Variable-Length) /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int HeartbeatRequestChunk::kType;
|
||||
|
||||
std::optional<HeartbeatRequestChunk> HeartbeatRequestChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -44,7 +44,6 @@ namespace dcsctp {
|
||||
// / User Data /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int IDataChunk::kType;
|
||||
|
||||
std::optional<IDataChunk> IDataChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -47,7 +47,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Message Identifier |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int IForwardTsnChunk::kType;
|
||||
|
||||
std::optional<IForwardTsnChunk> IForwardTsnChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -43,7 +43,6 @@ namespace dcsctp {
|
||||
// / Optional/Variable-Length Parameters /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int InitAckChunk::kType;
|
||||
|
||||
std::optional<InitAckChunk> InitAckChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -43,7 +43,6 @@ namespace dcsctp {
|
||||
// / Optional/Variable-Length Parameters /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int InitChunk::kType;
|
||||
|
||||
std::optional<InitChunk> InitChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -37,7 +37,6 @@ namespace dcsctp {
|
||||
// / Re-configuration Parameter (optional) /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ReConfigChunk::kType;
|
||||
|
||||
std::optional<ReConfigChunk> ReConfigChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -56,7 +56,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Duplicate TSN X |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int SackChunk::kType;
|
||||
|
||||
std::optional<SackChunk> SackChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -25,7 +25,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Type = 8 |Chunk Flags | Length = 4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ShutdownAckChunk::kType;
|
||||
|
||||
std::optional<ShutdownAckChunk> ShutdownAckChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Cumulative TSN Ack |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ShutdownChunk::kType;
|
||||
|
||||
std::optional<ShutdownChunk> ShutdownChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -27,7 +27,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Type = 14 |Reserved |T| Length = 4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ShutdownCompleteChunk::kType;
|
||||
|
||||
std::optional<ShutdownCompleteChunk> ShutdownCompleteChunk::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -23,7 +23,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Cause Code=10 | Cause Length=4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int CookieReceivedWhileShuttingDownCause::kType;
|
||||
|
||||
std::optional<CookieReceivedWhileShuttingDownCause>
|
||||
CookieReceivedWhileShuttingDownCause::Parse(
|
||||
|
||||
@ -23,7 +23,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Cause Code=7 | Cause Length=4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int InvalidMandatoryParameterCause::kType;
|
||||
|
||||
std::optional<InvalidMandatoryParameterCause>
|
||||
InvalidMandatoryParameterCause::Parse(webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -29,7 +29,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Stream Identifier | (Reserved) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int InvalidStreamIdentifierCause::kType;
|
||||
|
||||
std::optional<InvalidStreamIdentifierCause> InvalidStreamIdentifierCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -35,7 +35,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Missing Param Type #N-1 | Missing Param Type #N |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int MissingMandatoryParameterCause::kType;
|
||||
|
||||
std::optional<MissingMandatoryParameterCause>
|
||||
MissingMandatoryParameterCause::Parse(webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// / TSN value /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int NoUserDataCause::kType;
|
||||
|
||||
std::optional<NoUserDataCause> NoUserDataCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -23,7 +23,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Cause Code=4 | Cause Length=4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int OutOfResourceErrorCause::kType;
|
||||
|
||||
std::optional<OutOfResourceErrorCause> OutOfResourceErrorCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -31,7 +31,6 @@ namespace dcsctp {
|
||||
// / Additional Information /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ProtocolViolationCause::kType;
|
||||
|
||||
std::optional<ProtocolViolationCause> ProtocolViolationCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// / New Address TLVs /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int RestartOfAnAssociationWithNewAddressesCause::kType;
|
||||
|
||||
std::optional<RestartOfAnAssociationWithNewAddressesCause>
|
||||
RestartOfAnAssociationWithNewAddressesCause::Parse(
|
||||
|
||||
@ -28,7 +28,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Measure of Staleness (usec.) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int StaleCookieErrorCause::kType;
|
||||
|
||||
std::optional<StaleCookieErrorCause> StaleCookieErrorCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// / Unrecognized Chunk /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int UnrecognizedChunkTypeCause::kType;
|
||||
|
||||
std::optional<UnrecognizedChunkTypeCause> UnrecognizedChunkTypeCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -28,7 +28,6 @@ namespace dcsctp {
|
||||
// / Unrecognized Parameters /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int UnrecognizedParametersCause::kType;
|
||||
|
||||
std::optional<UnrecognizedParametersCause> UnrecognizedParametersCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -28,7 +28,6 @@ namespace dcsctp {
|
||||
// / Unresolvable Address /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int UnresolvableAddressCause::kType;
|
||||
|
||||
std::optional<UnresolvableAddressCause> UnresolvableAddressCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -31,7 +31,6 @@ namespace dcsctp {
|
||||
// / Upper Layer Abort Reason /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int UserInitiatedAbortCause::kType;
|
||||
|
||||
std::optional<UserInitiatedAbortCause> UserInitiatedAbortCause::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Number of new streams | Reserved |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int AddIncomingStreamsRequestParameter::kType;
|
||||
|
||||
std::optional<AddIncomingStreamsRequestParameter>
|
||||
AddIncomingStreamsRequestParameter::Parse(
|
||||
|
||||
@ -33,7 +33,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Number of new streams | Reserved |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int AddOutgoingStreamsRequestParameter::kType;
|
||||
|
||||
std::optional<AddOutgoingStreamsRequestParameter>
|
||||
AddOutgoingStreamsRequestParameter::Parse(
|
||||
|
||||
@ -24,7 +24,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Parameter Type = 49152 | Parameter Length = 4 |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ForwardTsnSupportedParameter::kType;
|
||||
|
||||
std::optional<ForwardTsnSupportedParameter> ForwardTsnSupportedParameter::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -32,7 +32,6 @@ namespace dcsctp {
|
||||
// / Heartbeat Information TLV (Variable-Length) /
|
||||
// \ \
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int HeartbeatInfoParameter::kType;
|
||||
|
||||
std::optional<HeartbeatInfoParameter> HeartbeatInfoParameter::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -40,7 +40,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Stream Number N-1 (optional) | Stream Number N (optional) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int IncomingSSNResetRequestParameter::kType;
|
||||
|
||||
std::optional<IncomingSSNResetRequestParameter>
|
||||
IncomingSSNResetRequestParameter::Parse(webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -44,7 +44,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Stream Number N-1 (optional) | Stream Number N (optional) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int OutgoingSSNResetRequestParameter::kType;
|
||||
|
||||
std::optional<OutgoingSSNResetRequestParameter>
|
||||
OutgoingSSNResetRequestParameter::Parse(webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -41,7 +41,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Receiver's Next TSN (optional) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ReconfigurationResponseParameter::kType;
|
||||
|
||||
absl::string_view ToString(ReconfigurationResponseParameter::Result result) {
|
||||
switch (result) {
|
||||
|
||||
@ -31,7 +31,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Re-configuration Request Sequence Number |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int SSNTSNResetRequestParameter::kType;
|
||||
|
||||
std::optional<SSNTSNResetRequestParameter> SSNTSNResetRequestParameter::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -23,8 +23,6 @@ namespace dcsctp {
|
||||
|
||||
// https://tools.ietf.org/html/rfc4960#section-3.3.3.1
|
||||
|
||||
constexpr int StateCookieParameter::kType;
|
||||
|
||||
std::optional<StateCookieParameter> StateCookieParameter::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
std::optional<BoundedByteReader<kHeaderSize>> reader = ParseTLV(data);
|
||||
|
||||
@ -36,7 +36,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | CHUNK TYPE N | PAD | PAD | PAD |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int SupportedExtensionsParameter::kType;
|
||||
|
||||
std::optional<SupportedExtensionsParameter> SupportedExtensionsParameter::Parse(
|
||||
webrtc::ArrayView<const uint8_t> data) {
|
||||
|
||||
@ -30,7 +30,6 @@ namespace dcsctp {
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
// | Error Detection Method Identifier (EDMID) |
|
||||
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
constexpr int ZeroChecksumAcceptableChunkParameter::kType;
|
||||
|
||||
std::optional<ZeroChecksumAcceptableChunkParameter>
|
||||
ZeroChecksumAcceptableChunkParameter::Parse(
|
||||
|
||||
@ -29,9 +29,6 @@
|
||||
|
||||
namespace dcsctp {
|
||||
|
||||
constexpr size_t DataTracker::kMaxDuplicateTsnReported;
|
||||
constexpr size_t DataTracker::kMaxGapAckBlocksReported;
|
||||
|
||||
bool DataTracker::AdditionalTsnBlocks::Add(UnwrappedTSN tsn) {
|
||||
// Find any block to expand. It will look for any block that includes (also
|
||||
// when expanded) the provided `tsn`. It will return the block that is greater
|
||||
|
||||
@ -26,7 +26,6 @@ namespace dcsctp {
|
||||
// Magic values, which the state cookie is prefixed with.
|
||||
constexpr uint32_t kMagic1 = 1684230979;
|
||||
constexpr uint32_t kMagic2 = 1414541360;
|
||||
constexpr size_t StateCookie::kCookieSize;
|
||||
|
||||
std::vector<uint8_t> StateCookie::Serialize() {
|
||||
std::vector<uint8_t> cookie;
|
||||
|
||||
@ -54,8 +54,6 @@ TimeDelta GetBackoffDuration(const TimerOptions& options,
|
||||
}
|
||||
} // namespace
|
||||
|
||||
constexpr TimeDelta Timer::kMaxTimerDuration;
|
||||
|
||||
Timer::Timer(TimerID id,
|
||||
absl::string_view name,
|
||||
OnExpired on_expired,
|
||||
|
||||
@ -37,8 +37,6 @@ const char kUseBaseHeavyVp8Tl3RateAllocationFieldTrialName[] =
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr char CongestionWindowConfig::kKey[];
|
||||
|
||||
std::unique_ptr<StructParametersParser> CongestionWindowConfig::Parser() {
|
||||
return StructParametersParser::Create("QueueSize", &queue_size_ms, //
|
||||
"MinBitrate", &min_bitrate_bps,
|
||||
@ -53,8 +51,6 @@ CongestionWindowConfig CongestionWindowConfig::Parse(absl::string_view config) {
|
||||
return res;
|
||||
}
|
||||
|
||||
constexpr char VideoRateControlConfig::kKey[];
|
||||
|
||||
std::unique_ptr<StructParametersParser> VideoRateControlConfig::Parser() {
|
||||
// The empty comments ensures that each pair is on a separate line.
|
||||
return StructParametersParser::Create(
|
||||
|
||||
@ -20,7 +20,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
constexpr float DriftingClock::kNoDrift;
|
||||
|
||||
DriftingClock::DriftingClock(Clock* clock, float speed)
|
||||
: clock_(clock), drift_(speed - 1.0f), start_time_(clock_->CurrentTime()) {
|
||||
|
||||
@ -70,8 +70,6 @@ int64_t GetNewAvgRttMs(const std::list<CallStats::RttTime>& reports,
|
||||
|
||||
} // namespace
|
||||
|
||||
constexpr TimeDelta CallStats::kUpdateInterval;
|
||||
|
||||
CallStats::CallStats(Clock* clock, TaskQueueBase* task_queue)
|
||||
: clock_(clock),
|
||||
max_rtt_ms_(-1),
|
||||
|
||||
@ -57,9 +57,6 @@ struct LayerRateInfo {
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
constexpr TimeDelta EncoderBitrateAdjuster::kWindowSize;
|
||||
constexpr size_t EncoderBitrateAdjuster::kMinFramesSinceLayoutChange;
|
||||
constexpr double EncoderBitrateAdjuster::kDefaultUtilizationFactor;
|
||||
|
||||
EncoderBitrateAdjuster::EncoderBitrateAdjuster(
|
||||
const VideoCodec& codec_settings,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user