Use backticks not vertical bars to denote variables in comments for /rtc_tools
Bug: webrtc:12338 Change-Id: Id47ef14982a6f31df6fc2e6d317e14f6e269e706 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226954 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34571}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
2dbb4c9775
commit
54500adead
@ -88,10 +88,10 @@ double AbsSendTimeToMicroseconds(int64_t abs_send_time) {
|
||||
return abs_send_time * kTimestampToMicroSec;
|
||||
}
|
||||
|
||||
// Computes the difference |later| - |earlier| where |later| and |earlier|
|
||||
// are counters that wrap at |modulus|. The difference is chosen to have the
|
||||
// least absolute value. For example if |modulus| is 8, then the difference will
|
||||
// be chosen in the range [-3, 4]. If |modulus| is 9, then the difference will
|
||||
// Computes the difference `later` - `earlier` where `later` and `earlier`
|
||||
// are counters that wrap at `modulus`. The difference is chosen to have the
|
||||
// least absolute value. For example if `modulus` is 8, then the difference will
|
||||
// be chosen in the range [-3, 4]. If `modulus` is 9, then the difference will
|
||||
// be in [-4, 4].
|
||||
int64_t WrappingDifference(uint32_t later, uint32_t earlier, int64_t modulus) {
|
||||
RTC_DCHECK_LE(1, modulus);
|
||||
|
||||
@ -39,8 +39,8 @@ class AnalyzerConfig {
|
||||
float CallEndTimeSec() const { return GetCallTimeSec(end_time_); }
|
||||
|
||||
// Window and step size used for calculating moving averages, e.g. bitrate.
|
||||
// The generated data points will be |step_| microseconds apart.
|
||||
// Only events occurring at most |window_duration_| microseconds before the
|
||||
// The generated data points will be `step_` microseconds apart.
|
||||
// Only events occurring at most `window_duration_` microseconds before the
|
||||
// current data point will be part of the average.
|
||||
int64_t window_duration_;
|
||||
int64_t step_;
|
||||
@ -83,7 +83,7 @@ std::string GetStreamName(const ParsedRtcEventLog& parsed_log,
|
||||
uint32_t ssrc);
|
||||
std::string GetLayerName(LayerDescription layer);
|
||||
|
||||
// For each element in data_view, use |f()| to extract a y-coordinate and
|
||||
// For each element in data_view, use `f()` to extract a y-coordinate and
|
||||
// store the result in a TimeSeries.
|
||||
template <typename DataType, typename IterableType>
|
||||
void ProcessPoints(rtc::FunctionView<float(const DataType&)> fx,
|
||||
@ -99,7 +99,7 @@ void ProcessPoints(rtc::FunctionView<float(const DataType&)> fx,
|
||||
}
|
||||
}
|
||||
|
||||
// For each pair of adjacent elements in |data|, use |f()| to extract a
|
||||
// For each pair of adjacent elements in `data`, use `f()` to extract a
|
||||
// y-coordinate and store the result in a TimeSeries. Note that the x-coordinate
|
||||
// will be the time of the second element in the pair.
|
||||
template <typename DataType, typename ResultType, typename IterableType>
|
||||
@ -117,7 +117,7 @@ void ProcessPairs(
|
||||
}
|
||||
}
|
||||
|
||||
// For each pair of adjacent elements in |data|, use |f()| to extract a
|
||||
// For each pair of adjacent elements in `data`, use `f()` to extract a
|
||||
// y-coordinate and store the result in a TimeSeries. Note that the x-coordinate
|
||||
// will be the time of the second element in the pair.
|
||||
template <typename DataType, typename ResultType, typename IterableType>
|
||||
@ -138,10 +138,10 @@ void AccumulatePairs(
|
||||
}
|
||||
}
|
||||
|
||||
// Calculates a moving average of |data| and stores the result in a TimeSeries.
|
||||
// A data point is generated every |step| microseconds from |begin_time|
|
||||
// to |end_time|. The value of each data point is the average of the data
|
||||
// during the preceding |window_duration_us| microseconds.
|
||||
// Calculates a moving average of `data` and stores the result in a TimeSeries.
|
||||
// A data point is generated every `step` microseconds from `begin_time`
|
||||
// to `end_time`. The value of each data point is the average of the data
|
||||
// during the preceding `window_duration_us` microseconds.
|
||||
template <typename DataType, typename ResultType, typename IterableType>
|
||||
void MovingAverage(
|
||||
rtc::FunctionView<absl::optional<ResultType>(const DataType&)> fy,
|
||||
|
||||
Reference in New Issue
Block a user