OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // received. | 53 // received. |
54 void SetUseRtxPayloadMappingOnRestore(bool val); | 54 void SetUseRtxPayloadMappingOnRestore(bool val); |
55 void SetRtxSsrc(uint32_t ssrc); | 55 void SetRtxSsrc(uint32_t ssrc); |
56 bool GetRtxSsrc(uint32_t* ssrc) const; | 56 bool GetRtxSsrc(uint32_t* ssrc) const; |
57 | 57 |
58 bool IsFecEnabled() const; | 58 bool IsFecEnabled() const; |
59 | 59 |
60 uint32_t GetRemoteSsrc() const; | 60 uint32_t GetRemoteSsrc() const; |
61 int GetCsrcs(uint32_t* csrcs) const; | 61 int GetCsrcs(uint32_t* csrcs) const; |
62 | 62 |
63 void Init(const std::vector<RtpRtcp*>& modules); | 63 void Init(RtpRtcp* rtp_rtcp); |
64 | 64 |
65 RtpReceiver* GetRtpReceiver() const; | 65 RtpReceiver* GetRtpReceiver() const; |
66 | 66 |
67 void EnableReceiveRtpHeaderExtension(const std::string& extension, int id); | 67 void EnableReceiveRtpHeaderExtension(const std::string& extension, int id); |
68 | 68 |
69 void StartReceive(); | 69 void StartReceive(); |
70 void StopReceive(); | 70 void StopReceive(); |
71 | 71 |
72 bool DeliverRtp(const uint8_t* rtp_packet, | 72 bool DeliverRtp(const uint8_t* rtp_packet, |
73 size_t rtp_packet_length, | 73 size_t rtp_packet_length, |
(...skipping 21 matching lines...) Expand all Loading... |
95 void NotifyReceiverOfFecPacket(const RTPHeader& header); | 95 void NotifyReceiverOfFecPacket(const RTPHeader& header); |
96 bool IsPacketInOrder(const RTPHeader& header) const; | 96 bool IsPacketInOrder(const RTPHeader& header) const; |
97 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; | 97 bool IsPacketRetransmitted(const RTPHeader& header, bool in_order) const; |
98 void UpdateHistograms(); | 98 void UpdateHistograms(); |
99 | 99 |
100 Clock* const clock_; | 100 Clock* const clock_; |
101 VideoCodingModule* const vcm_; | 101 VideoCodingModule* const vcm_; |
102 RemoteBitrateEstimator* const remote_bitrate_estimator_; | 102 RemoteBitrateEstimator* const remote_bitrate_estimator_; |
103 | 103 |
104 // TODO(pbos): Make const and set on construction. | 104 // TODO(pbos): Make const and set on construction. |
105 std::vector<RtpRtcp*> rtp_rtcp_; | 105 RtpRtcp* rtp_rtcp_; // Owned by ViEChannel |
106 | 106 |
107 RemoteNtpTimeEstimator ntp_estimator_; | 107 RemoteNtpTimeEstimator ntp_estimator_; |
108 RTPPayloadRegistry rtp_payload_registry_; | 108 RTPPayloadRegistry rtp_payload_registry_; |
109 | 109 |
110 const std::unique_ptr<RtpHeaderParser> rtp_header_parser_; | 110 const std::unique_ptr<RtpHeaderParser> rtp_header_parser_; |
111 const std::unique_ptr<RtpReceiver> rtp_receiver_; | 111 const std::unique_ptr<RtpReceiver> rtp_receiver_; |
112 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 112 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
113 std::unique_ptr<FecReceiver> fec_receiver_; | 113 std::unique_ptr<FecReceiver> fec_receiver_; |
114 | 114 |
115 rtc::CriticalSection receive_cs_; | 115 rtc::CriticalSection receive_cs_; |
116 bool receiving_ GUARDED_BY(receive_cs_); | 116 bool receiving_ GUARDED_BY(receive_cs_); |
117 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_); | 117 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_); |
118 bool restored_packet_in_use_ GUARDED_BY(receive_cs_); | 118 bool restored_packet_in_use_ GUARDED_BY(receive_cs_); |
119 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_); | 119 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace webrtc | 122 } // namespace webrtc |
123 | 123 |
124 #endif // WEBRTC_VIDEO_VIE_RECEIVER_H_ | 124 #endif // WEBRTC_VIDEO_VIE_RECEIVER_H_ |
OLD | NEW |