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 12 matching lines...) Expand all Loading... |
23 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 23 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
24 #include "webrtc/modules/rtp_rtcp/source/producer_fec.h" | 24 #include "webrtc/modules/rtp_rtcp/source/producer_fec.h" |
25 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" |
26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" |
27 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 | 30 |
31 enum { REDForFECHeaderLength = 1 }; | 31 enum { REDForFECHeaderLength = 1 }; |
32 | 32 |
33 RTPSenderVideo::RTPSenderVideo(Clock* clock, RTPSenderInterface* rtp_sender) | 33 RTPSenderVideo::RTPSenderVideo(Clock* clock, RTPSender* rtp_sender) |
34 : rtp_sender_(rtp_sender), | 34 : rtp_sender_(rtp_sender), |
35 clock_(clock), | 35 clock_(clock), |
36 // Generic FEC | 36 // Generic FEC |
37 producer_fec_(&fec_), | 37 producer_fec_(&fec_), |
38 fec_bitrate_(1000, RateStatistics::kBpsScale), | 38 fec_bitrate_(1000, RateStatistics::kBpsScale), |
39 video_bitrate_(1000, RateStatistics::kBpsScale) {} | 39 video_bitrate_(1000, RateStatistics::kBpsScale) {} |
40 | 40 |
41 RTPSenderVideo::~RTPSenderVideo() {} | 41 RTPSenderVideo::~RTPSenderVideo() {} |
42 | 42 |
43 void RTPSenderVideo::SetVideoCodecType(RtpVideoCodecTypes video_type) { | 43 void RTPSenderVideo::SetVideoCodecType(RtpVideoCodecTypes video_type) { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 rtc::CritScope cs(&crit_); | 340 rtc::CritScope cs(&crit_); |
341 return retransmission_settings_; | 341 return retransmission_settings_; |
342 } | 342 } |
343 | 343 |
344 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { | 344 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { |
345 rtc::CritScope cs(&crit_); | 345 rtc::CritScope cs(&crit_); |
346 retransmission_settings_ = settings; | 346 retransmission_settings_ = settings; |
347 } | 347 } |
348 | 348 |
349 } // namespace webrtc | 349 } // namespace webrtc |
OLD | NEW |