pli.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2015 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 MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_PLI_H_
  11. #define MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_PLI_H_
  12. #include "modules/rtp_rtcp/source/rtcp_packet/psfb.h"
  13. namespace webrtc {
  14. namespace rtcp {
  15. class CommonHeader;
  16. // Picture loss indication (PLI) (RFC 4585).
  17. class Pli : public Psfb {
  18. public:
  19. static constexpr uint8_t kFeedbackMessageType = 1;
  20. Pli();
  21. Pli(const Pli& pli);
  22. ~Pli() override;
  23. bool Parse(const CommonHeader& packet);
  24. size_t BlockLength() const override;
  25. bool Create(uint8_t* packet,
  26. size_t* index,
  27. size_t max_length,
  28. PacketReadyCallback callback) const override;
  29. };
  30. } // namespace rtcp
  31. } // namespace webrtc
  32. #endif // MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_PLI_H_