You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
  3. *
  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
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_
  11. #define CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_
  12. #include <memory>
  13. #include "call/flexfec_receive_stream.h"
  14. #include "call/rtp_packet_sink_interface.h"
  15. #include "system_wrappers/include/clock.h"
  16. namespace webrtc {
  17. class FlexfecReceiver;
  18. class ProcessThread;
  19. class ReceiveStatistics;
  20. class RecoveredPacketReceiver;
  21. class RtcpRttStats;
  22. class RtpPacketReceived;
  23. class RtpRtcp;
  24. class RtpStreamReceiverControllerInterface;
  25. class RtpStreamReceiverInterface;
  26. class FlexfecReceiveStreamImpl : public FlexfecReceiveStream {
  27. public:
  28. FlexfecReceiveStreamImpl(
  29. Clock* clock,
  30. RtpStreamReceiverControllerInterface* receiver_controller,
  31. const Config& config,
  32. RecoveredPacketReceiver* recovered_packet_receiver,
  33. RtcpRttStats* rtt_stats,
  34. ProcessThread* process_thread);
  35. ~FlexfecReceiveStreamImpl() override;
  36. // RtpPacketSinkInterface.
  37. void OnRtpPacket(const RtpPacketReceived& packet) override;
  38. Stats GetStats() const override;
  39. const Config& GetConfig() const override;
  40. private:
  41. // Config.
  42. const Config config_;
  43. // Erasure code interfacing.
  44. const std::unique_ptr<FlexfecReceiver> receiver_;
  45. // RTCP reporting.
  46. const std::unique_ptr<ReceiveStatistics> rtp_receive_statistics_;
  47. const std::unique_ptr<RtpRtcp> rtp_rtcp_;
  48. ProcessThread* process_thread_;
  49. std::unique_ptr<RtpStreamReceiverInterface> rtp_stream_receiver_;
  50. };
  51. } // namespace webrtc
  52. #endif // CALL_FLEXFEC_RECEIVE_STREAM_IMPL_H_