Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/fec_receiver_impl.h

Issue 2451643002: Rename FecReceiver to UlpfecReceiver. (Closed)
Patch Set: Fix GYP. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 #include <memory>
15
16 #include "webrtc/base/criticalsection.h"
17 #include "webrtc/modules/rtp_rtcp/include/fec_receiver.h"
18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
19 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
20 #include "webrtc/typedefs.h"
21
22 namespace webrtc {
23
24 class FecReceiverImpl : public FecReceiver {
25 public:
26 explicit FecReceiverImpl(RtpData* callback);
27 virtual ~FecReceiverImpl();
28
29 int32_t AddReceivedRedPacket(const RTPHeader& rtp_header,
30 const uint8_t* incoming_rtp_packet,
31 size_t packet_length,
32 uint8_t ulpfec_payload_type) override;
33
34 int32_t ProcessReceivedFec() override;
35
36 FecPacketCounter GetPacketCounter() const override;
37
38 private:
39 rtc::CriticalSection crit_sect_;
40 RtpData* recovered_packet_callback_;
41 std::unique_ptr<ForwardErrorCorrection> fec_;
42 // TODO(holmer): In the current version |received_packets_| is never more
43 // than one packet, since we process FEC every time a new packet
44 // arrives. We should remove the list.
45 ForwardErrorCorrection::ReceivedPacketList received_packets_;
46 ForwardErrorCorrection::RecoveredPacketList recovered_packets_;
47 FecPacketCounter packet_counter_;
48 };
49
50 } // namespace webrtc
51
52 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_FEC_RECEIVER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/rtp_rtcp.gypi ('k') | webrtc/modules/rtp_rtcp/source/fec_receiver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698