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