tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pli.h (1190B)


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