OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <memory> | 15 #include <memory> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 18 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 class FlexfecSenderImpl; | 22 class FlexfecSender; |
23 | 23 |
24 class RedPacket { | 24 class RedPacket { |
25 public: | 25 public: |
26 explicit RedPacket(size_t length); | 26 explicit RedPacket(size_t length); |
27 | 27 |
28 void CreateHeader(const uint8_t* rtp_header, | 28 void CreateHeader(const uint8_t* rtp_header, |
29 size_t header_length, | 29 size_t header_length, |
30 int red_payload_type, | 30 int red_payload_type, |
31 int payload_type); | 31 int payload_type); |
32 void SetSeqNum(int seq_num); | 32 void SetSeqNum(int seq_num); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_; | 106 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_; |
107 int num_protected_frames_; | 107 int num_protected_frames_; |
108 int min_num_media_packets_; | 108 int min_num_media_packets_; |
109 FecProtectionParams params_; | 109 FecProtectionParams params_; |
110 FecProtectionParams new_params_; | 110 FecProtectionParams new_params_; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace webrtc | 113 } // namespace webrtc |
114 | 114 |
115 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ | 115 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_GENERATOR_H_ |
OLD | NEW |