| 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 11 matching lines...) Expand all Loading... |
| 22 class FlexfecReceiver; | 22 class FlexfecReceiver; |
| 23 class ProcessThread; | 23 class ProcessThread; |
| 24 class ReceiveStatistics; | 24 class ReceiveStatistics; |
| 25 class RecoveredPacketReceiver; | 25 class RecoveredPacketReceiver; |
| 26 class RtcpRttStats; | 26 class RtcpRttStats; |
| 27 class RtpPacketReceived; | 27 class RtpPacketReceived; |
| 28 class RtpRtcp; | 28 class RtpRtcp; |
| 29 class RtpStreamReceiverControllerInterface; | 29 class RtpStreamReceiverControllerInterface; |
| 30 class RtpStreamReceiverInterface; | 30 class RtpStreamReceiverInterface; |
| 31 | 31 |
| 32 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream, | 32 class FlexfecReceiveStreamImpl : public FlexfecReceiveStream { |
| 33 public RtpPacketSinkInterface { | |
| 34 public: | 33 public: |
| 35 FlexfecReceiveStreamImpl( | 34 FlexfecReceiveStreamImpl( |
| 36 RtpStreamReceiverControllerInterface* receiver_controller, | 35 RtpStreamReceiverControllerInterface* receiver_controller, |
| 37 const Config& config, | 36 const Config& config, |
| 38 RecoveredPacketReceiver* recovered_packet_receiver, | 37 RecoveredPacketReceiver* recovered_packet_receiver, |
| 39 RtcpRttStats* rtt_stats, | 38 RtcpRttStats* rtt_stats, |
| 40 ProcessThread* process_thread); | 39 ProcessThread* process_thread); |
| 41 ~FlexfecReceiveStreamImpl() override; | 40 ~FlexfecReceiveStreamImpl() override; |
| 42 | 41 |
| 43 // RtpPacketSinkInterface. | 42 // RtpPacketSinkInterface. |
| 44 void OnRtpPacket(const RtpPacketReceived& packet) override; | 43 void OnRtpPacket(const RtpPacketReceived& packet) override; |
| 45 | 44 |
| 46 // Implements FlexfecReceiveStream. | 45 // Implements FlexfecReceiveStream. |
| 47 void Start() override; | 46 void Start() override; |
| 48 void Stop() override; | 47 void Stop() override; |
| 49 Stats GetStats() const override; | 48 Stats GetStats() const override; |
| 50 | 49 |
| 51 const Config& GetConfig() const override; | 50 const Config& GetConfig() const override; |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 // Config. | 53 // Config. |
| 55 const Config config_; | 54 const Config config_; |
| 56 bool started_ GUARDED_BY(crit_); | 55 bool started_ GUARDED_BY(crit_); |
| 56 // TODO(eladalon): This critical section, which only protects started_, |
| 57 // is odd. We should probably just use an atomic-bool. |
| 57 rtc::CriticalSection crit_; | 58 rtc::CriticalSection crit_; |
| 58 | 59 |
| 59 // Erasure code interfacing. | 60 // Erasure code interfacing. |
| 60 const std::unique_ptr<FlexfecReceiver> receiver_; | 61 const std::unique_ptr<FlexfecReceiver> receiver_; |
| 61 | 62 |
| 62 // RTCP reporting. | 63 // RTCP reporting. |
| 63 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; | 64 const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_; |
| 64 const std::unique_ptr<RtpRtcp> rtp_rtcp_; | 65 const std::unique_ptr<RtpRtcp> rtp_rtcp_; |
| 65 ProcessThread* process_thread_; | 66 ProcessThread* process_thread_; |
| 66 | 67 |
| 67 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_; | 68 std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace webrtc | 71 } // namespace webrtc |
| 71 | 72 |
| 72 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ | 73 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_ |
| OLD | NEW |