Chromium Code Reviews| 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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 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 arrived via rtx. |
| 40 bool retransmit() const { return retransmit_; } | 40 bool retransmit() const { return retransmit_; } |
|
brandtr
2017/02/15 12:20:50
rename to 'retransmitted'/'set_retransmitted', to
nisse-webrtc
2017/02/15 13:59:14
On the receive side, that verb doesn't seem quite
nisse-webrtc
2017/05/09 12:37:56
Danil suggested that we use only a single "recover
| |
| 41 void set_retransmit(bool value) { retransmit_ = value; } | 41 void set_retransmit(bool value) { retransmit_ = value; } |
| 42 | 42 |
| 43 // Flag if packet was recovered via fec. | |
| 44 bool recovered() const { return recovered_; } | |
| 45 void set_recovered(bool value) { recovered_ = value; } | |
| 46 | |
| 43 int payload_type_frequency() const { return payload_type_frequency_; } | 47 int payload_type_frequency() const { return payload_type_frequency_; } |
| 44 void set_payload_type_frequency(int value) { | 48 void set_payload_type_frequency(int value) { |
| 45 payload_type_frequency_ = value; | 49 payload_type_frequency_ = value; |
| 46 } | 50 } |
| 47 | 51 |
| 48 private: | 52 private: |
| 49 NtpTime capture_time_; | 53 NtpTime capture_time_; |
| 50 int64_t arrival_time_ms_ = 0; | 54 int64_t arrival_time_ms_ = 0; |
| 51 int payload_type_frequency_ = 0; | 55 int payload_type_frequency_ = 0; |
| 52 bool retransmit_ = false; | 56 bool retransmit_ = false; |
| 57 bool recovered_ = false; | |
| 53 }; | 58 }; |
| 54 | 59 |
| 55 } // namespace webrtc | 60 } // namespace webrtc |
| 56 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ | 61 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ |
| OLD | NEW |