Use backticks not vertical bars to denote variables in comments for /common_video
Bug: webrtc:12338 Change-Id: I3db5820cbd4f2ccaa5bba308a4ba0bcb895ed9ad Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226946 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34566}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
68e98fb248
commit
6a9838a3ff
@ -43,7 +43,7 @@ class FrameRateEstimator {
|
||||
// Get the current average FPS, based on the frames currently in the window.
|
||||
absl::optional<double> GetAverageFps() const;
|
||||
|
||||
// Move the window so it ends at |now|, and return the new fps estimate.
|
||||
// Move the window so it ends at `now`, and return the new fps estimate.
|
||||
absl::optional<double> GetAverageFps(Timestamp now);
|
||||
|
||||
// Completely clear the averaging window.
|
||||
|
@ -152,7 +152,7 @@ H264BitstreamParser::Result H264BitstreamParser::ParseNonParameterSetNalu(
|
||||
// else
|
||||
{
|
||||
// ref_pic_list_modification():
|
||||
// |slice_type| checks here don't use named constants as they aren't named
|
||||
// `slice_type` checks here don't use named constants as they aren't named
|
||||
// in the spec for this segment. Keeping them consistent makes it easier to
|
||||
// verify that they are both the same.
|
||||
if (slice_type % 5 != 2 && slice_type % 5 != 4) {
|
||||
|
@ -50,7 +50,7 @@ class SpsVuiRewriter : private SpsParser {
|
||||
rtc::Buffer* destination,
|
||||
Direction Direction);
|
||||
|
||||
// Parses NAL units from |buffer|, strips AUD blocks and rewrites VUI in SPS
|
||||
// Parses NAL units from `buffer`, strips AUD blocks and rewrites VUI in SPS
|
||||
// blocks if necessary.
|
||||
static rtc::Buffer ParseOutgoingBitstreamAndRewrite(
|
||||
rtc::ArrayView<const uint8_t> buffer,
|
||||
|
@ -40,7 +40,7 @@ class VideoFrameBufferPool {
|
||||
~VideoFrameBufferPool();
|
||||
|
||||
// Returns a buffer from the pool. If no suitable buffer exist in the pool
|
||||
// and there are less than |max_number_of_buffers| pending, a buffer is
|
||||
// and there are less than `max_number_of_buffers` pending, a buffer is
|
||||
// created. Returns null otherwise.
|
||||
rtc::scoped_refptr<I420Buffer> CreateI420Buffer(int width, int height);
|
||||
rtc::scoped_refptr<NV12Buffer> CreateNV12Buffer(int width, int height);
|
||||
|
@ -98,9 +98,9 @@ double I420SSIM(const I420BufferInterface& ref_buffer,
|
||||
const I420BufferInterface& test_buffer);
|
||||
|
||||
// Helper function for scaling NV12 to NV12.
|
||||
// If the |src_width| and |src_height| matches the |dst_width| and |dst_height|,
|
||||
// then |tmp_buffer| is not used. In other cases, the minimum size of
|
||||
// |tmp_buffer| should be:
|
||||
// If the `src_width` and `src_height` matches the `dst_width` and `dst_height`,
|
||||
// then `tmp_buffer` is not used. In other cases, the minimum size of
|
||||
// `tmp_buffer` should be:
|
||||
// (src_width/2) * (src_height/2) * 2 + (dst_width/2) * (dst_height/2) * 2
|
||||
void NV12Scale(uint8_t* tmp_buffer,
|
||||
const uint8_t* src_y,
|
||||
|
Reference in New Issue
Block a user