| 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 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Returns generated FEC packets with RED headers added. | 82 // Returns generated FEC packets with RED headers added. |
| 83 std::vector<std::unique_ptr<RedPacket>> GetFecPacketsAsRed( | 83 std::vector<std::unique_ptr<RedPacket>> GetFecPacketsAsRed( |
| 84 int red_payload_type, | 84 int red_payload_type, |
| 85 int ulpfec_payload_type, | 85 int ulpfec_payload_type, |
| 86 uint16_t first_seq_num, | 86 uint16_t first_seq_num, |
| 87 size_t rtp_header_length); | 87 size_t rtp_header_length); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 void DeleteMediaPackets(); | 90 void DeleteMediaPackets(); |
| 91 int Overhead() const; | 91 int Overhead() const; |
| 92 ForwardErrorCorrection fec_; | 92 std::unique_ptr<ForwardErrorCorrection> fec_; |
| 93 ForwardErrorCorrection::PacketList media_packets_; | 93 ForwardErrorCorrection::PacketList media_packets_; |
| 94 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_; | 94 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_; |
| 95 int num_protected_frames_; | 95 int num_protected_frames_; |
| 96 int num_important_packets_; | 96 int num_important_packets_; |
| 97 int min_num_media_packets_; | 97 int min_num_media_packets_; |
| 98 FecProtectionParams params_; | 98 FecProtectionParams params_; |
| 99 FecProtectionParams new_params_; | 99 FecProtectionParams new_params_; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace webrtc | 102 } // namespace webrtc |
| 103 | 103 |
| 104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ | 104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ |
| OLD | NEW |