Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: webrtc/modules/video_coding/frame_object.cc

Issue 2645343002: Don't update the jitter estimate with frames containing retransmitted packets. (Closed)
Patch Set: times_nacked() --> delayed_by_retransmission() Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/frame_object.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 int64_t RtpFrameObject::ReceivedTime() const { 116 int64_t RtpFrameObject::ReceivedTime() const {
117 return received_time_; 117 return received_time_;
118 } 118 }
119 119
120 int64_t RtpFrameObject::RenderTime() const { 120 int64_t RtpFrameObject::RenderTime() const {
121 return _renderTimeMs; 121 return _renderTimeMs;
122 } 122 }
123 123
124 bool RtpFrameObject::delayed_by_retransmission() const {
125 return times_nacked() > 0;
126 }
127
124 rtc::Optional<RTPVideoTypeHeader> RtpFrameObject::GetCodecHeader() const { 128 rtc::Optional<RTPVideoTypeHeader> RtpFrameObject::GetCodecHeader() const {
125 rtc::CritScope lock(&packet_buffer_->crit_); 129 rtc::CritScope lock(&packet_buffer_->crit_);
126 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_); 130 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_);
127 if (!packet) 131 if (!packet)
128 return rtc::Optional<RTPVideoTypeHeader>(); 132 return rtc::Optional<RTPVideoTypeHeader>();
129 return rtc::Optional<RTPVideoTypeHeader>(packet->video_header.codecHeader); 133 return rtc::Optional<RTPVideoTypeHeader>(packet->video_header.codecHeader);
130 } 134 }
131 135
132 } // namespace video_coding 136 } // namespace video_coding
133 } // namespace webrtc 137 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/frame_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698