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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_packet_received.h

Issue 2693123002: Make Call::OnRecoveredPacket parse RTP header and call OnRtpPacket. (Closed)
Patch Set: Update fuzzer. Created 3 years, 7 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
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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_
(...skipping 18 matching lines...) Expand all
29 29
30 // Time in local time base as close as it can to packet arrived on the 30 // Time in local time base as close as it can to packet arrived on the
31 // network. 31 // network.
32 int64_t arrival_time_ms() const { return arrival_time_ms_; } 32 int64_t arrival_time_ms() const { return arrival_time_ms_; }
33 void set_arrival_time_ms(int64_t time) { arrival_time_ms_ = time; } 33 void set_arrival_time_ms(int64_t time) { arrival_time_ms_ = time; }
34 34
35 // Estimated from Timestamp() using rtcp Sender Reports. 35 // Estimated from Timestamp() using rtcp Sender Reports.
36 NtpTime capture_ntp_time() const { return capture_time_; } 36 NtpTime capture_ntp_time() const { return capture_time_; }
37 void set_capture_ntp_time(NtpTime time) { capture_time_ = time; } 37 void set_capture_ntp_time(NtpTime time) { capture_time_ = time; }
38 38
39 // Flag if packet arrived via rtx. 39 // Flag if packet was recovered via RTX or FEC.
40 bool retransmit() const { return retransmit_; } 40 bool recovered() const { return recovered_; }
41 void set_retransmit(bool value) { retransmit_ = value; } 41 void set_recovered(bool value) { recovered_ = value; }
42 42
43 int payload_type_frequency() const { return payload_type_frequency_; } 43 int payload_type_frequency() const { return payload_type_frequency_; }
44 void set_payload_type_frequency(int value) { 44 void set_payload_type_frequency(int value) {
45 payload_type_frequency_ = value; 45 payload_type_frequency_ = value;
46 } 46 }
47 47
48 private: 48 private:
49 NtpTime capture_time_; 49 NtpTime capture_time_;
50 int64_t arrival_time_ms_ = 0; 50 int64_t arrival_time_ms_ = 0;
51 int payload_type_frequency_ = 0; 51 int payload_type_frequency_ = 0;
52 bool retransmit_ = false; 52 bool recovered_ = false;
53 }; 53 };
54 54
55 } // namespace webrtc 55 } // namespace webrtc
56 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ 56 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698