OLD | NEW |
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 Loading... |
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 |
OLD | NEW |