| 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 11 matching lines...) Expand all Loading... |
| 22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/producer_fec.h" | 23 #include "webrtc/modules/rtp_rtcp/source/producer_fec.h" |
| 24 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" |
| 25 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" |
| 26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" |
| 27 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 27 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 enum { REDForFECHeaderLength = 1 }; | 30 enum { REDForFECHeaderLength = 1 }; |
| 31 | 31 |
| 32 struct RtpPacket { | |
| 33 uint16_t rtpHeaderLength; | |
| 34 ForwardErrorCorrection::Packet* pkt; | |
| 35 }; | |
| 36 | |
| 37 RTPSenderVideo::RTPSenderVideo(Clock* clock, RTPSenderInterface* rtpSender) | 32 RTPSenderVideo::RTPSenderVideo(Clock* clock, RTPSenderInterface* rtpSender) |
| 38 : _rtpSender(*rtpSender), | 33 : _rtpSender(*rtpSender), |
| 39 crit_(CriticalSectionWrapper::CreateCriticalSection()), | 34 crit_(CriticalSectionWrapper::CreateCriticalSection()), |
| 40 _videoType(kRtpVideoGeneric), | 35 _videoType(kRtpVideoGeneric), |
| 41 _retransmissionSettings(kRetransmitBaseLayer), | 36 _retransmissionSettings(kRetransmitBaseLayer), |
| 42 // Generic FEC | 37 // Generic FEC |
| 43 fec_(), | 38 fec_(), |
| 44 fec_enabled_(false), | 39 fec_enabled_(false), |
| 45 red_payload_type_(-1), | 40 red_payload_type_(-1), |
| 46 fec_payload_type_(-1), | 41 fec_payload_type_(-1), |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 CriticalSectionScoped cs(crit_.get()); | 333 CriticalSectionScoped cs(crit_.get()); |
| 339 return _retransmissionSettings; | 334 return _retransmissionSettings; |
| 340 } | 335 } |
| 341 | 336 |
| 342 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { | 337 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { |
| 343 CriticalSectionScoped cs(crit_.get()); | 338 CriticalSectionScoped cs(crit_.get()); |
| 344 _retransmissionSettings = settings; | 339 _retransmissionSettings = settings; |
| 345 } | 340 } |
| 346 | 341 |
| 347 } // namespace webrtc | 342 } // namespace webrtc |
| OLD | NEW |