Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/rtp_rtcp/source/fec_receiver_impl.h @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 1.9 KB
Line 
1/*
2 *  Copyright (c) 2012 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
11#ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
12#define WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
13
14// This header is included to get the nested declaration of Packet structure.
15
16#include "webrtc/modules/rtp_rtcp/interface/fec_receiver.h"
17#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
18#include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
19#include "webrtc/system_wrappers/interface/scoped_ptr.h"
20#include "webrtc/typedefs.h"
21
22namespace webrtc {
23
24class CriticalSectionWrapper;
25
26class FecReceiverImpl : public FecReceiver {
27 public:
28  FecReceiverImpl(const int32_t id, RtpData* callback);
29  virtual ~FecReceiverImpl();
30
31  virtual int32_t AddReceivedRedPacket(const RTPHeader& rtp_header,
32                                       const uint8_t* incoming_rtp_packet,
33                                       int packet_length,
34                                       uint8_t ulpfec_payload_type) OVERRIDE;
35
36  virtual int32_t ProcessReceivedFec() OVERRIDE;
37
38 private:
39  int id_;
40  scoped_ptr<CriticalSectionWrapper> crit_sect_;
41  RtpData* recovered_packet_callback_;
42  ForwardErrorCorrection* fec_;
43  // TODO(holmer): In the current version received_packet_list_ is never more
44  // than one packet, since we process FEC every time a new packet
45  // arrives. We should remove the list.
46  ForwardErrorCorrection::ReceivedPacketList received_packet_list_;
47  ForwardErrorCorrection::RecoveredPacketList recovered_packet_list_;
48};
49}  // namespace webrtc
50
51#endif  // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
Note: See TracBrowser for help on using the repository browser.