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 18 matching lines...) Expand all Loading... |
29 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream { | 29 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream { |
30 public: | 30 public: |
31 FlexfecReceiveStreamImpl(const Config& config, | 31 FlexfecReceiveStreamImpl(const Config& config, |
32 RecoveredPacketReceiver* recovered_packet_receiver, | 32 RecoveredPacketReceiver* recovered_packet_receiver, |
33 RtcpRttStats* rtt_stats, | 33 RtcpRttStats* rtt_stats, |
34 ProcessThread* process_thread); | 34 ProcessThread* process_thread); |
35 ~FlexfecReceiveStreamImpl() override; | 35 ~FlexfecReceiveStreamImpl() override; |
36 | 36 |
37 const Config& GetConfig() const { return config_; } | 37 const Config& GetConfig() const { return config_; } |
38 | 38 |
39 bool AddAndProcessReceivedPacket(const RtpPacketReceived& packet); | 39 // TODO(nisse): Intended to be part of an RtpPacketReceiver interface. |
| 40 void OnRtpPacket(const RtpPacketReceived& packet); |
40 | 41 |
41 // Implements FlexfecReceiveStream. | 42 // Implements FlexfecReceiveStream. |
42 void Start() override; | 43 void Start() override; |
43 void Stop() override; | 44 void Stop() override; |
44 Stats GetStats() const override; | 45 Stats GetStats() const override; |
45 | 46 |
46 private: | 47 private: |
47 // Config. | 48 // Config. |
48 const Config config_; | 49 const Config config_; |
49 bool started_ GUARDED_BY(crit_); | 50 bool started_ GUARDED_BY(crit_); |
50 rtc::CriticalSection crit_; | 51 rtc::CriticalSection crit_; |
51 | 52 |
52 // Erasure code interfacing. | 53 // Erasure code interfacing. |
53 const std::unique_ptr<FlexfecReceiver> receiver_; | 54 const std::unique_ptr<FlexfecReceiver> receiver_; |
54 | 55 |
55 // RTCP reporting. | 56 // RTCP reporting. |
56 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 57 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
57 const std::unique_ptr<RtpRtcp> rtp_rtcp_; | 58 const std::unique_ptr<RtpRtcp> rtp_rtcp_; |
58 ProcessThread* process_thread_; | 59 ProcessThread* process_thread_; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace webrtc | 62 } // namespace webrtc |
62 | 63 |
63 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ | 64 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
OLD | NEW |