| 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_ |
| 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_PACKET_RECEIVED_H_ |
| 12 | 12 |
| 13 #include "webrtc/common_types.h" | 13 #include "webrtc/common_types.h" |
| 14 #include "webrtc/modules/rtp_rtcp/source/rtp_packet.h" | 14 #include "webrtc/modules/rtp_rtcp/source/rtp_packet.h" |
| 15 #include "webrtc/system_wrappers/include/ntp_time.h" | 15 #include "webrtc/system_wrappers/include/ntp_time.h" |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 // Class to hold rtp packet with metadata for receiver side. | 18 // Class to hold rtp packet with metadata for receiver side. |
| 19 class RtpPacketReceived : public rtp::Packet { | 19 class RtpPacketReceived : public rtp::Packet { |
| 20 public: | 20 public: |
| 21 RtpPacketReceived() : Packet(nullptr) {} | 21 RtpPacketReceived() = default; |
| 22 explicit RtpPacketReceived(const ExtensionManager* extensions) | 22 explicit RtpPacketReceived(const ExtensionManager* extensions) |
| 23 : Packet(extensions) {} | 23 : Packet(extensions) {} |
| 24 | 24 |
| 25 void GetHeader(RTPHeader* header) const { | 25 void GetHeader(RTPHeader* header) const { |
| 26 Packet::GetHeader(header); | 26 Packet::GetHeader(header); |
| 27 header->payload_type_frequency = payload_type_frequency(); | 27 header->payload_type_frequency = payload_type_frequency(); |
| 28 } | 28 } |
| 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. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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 retransmit_ = 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_ |
| OLD | NEW |