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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 return overhead; | 265 return overhead; |
266 } | 266 } |
267 | 267 |
268 void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params, | 268 void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params, |
269 const FecProtectionParams& key_params) { | 269 const FecProtectionParams& key_params) { |
270 rtc::CritScope cs(&crit_); | 270 rtc::CritScope cs(&crit_); |
271 delta_fec_params_ = delta_params; | 271 delta_fec_params_ = delta_params; |
272 key_fec_params_ = key_params; | 272 key_fec_params_ = key_params; |
273 } | 273 } |
274 | 274 |
| 275 rtc::Optional<uint32_t> RTPSenderVideo::FlexfecSsrc() const { |
| 276 if (flexfec_sender_) { |
| 277 return rtc::Optional<uint32_t>(flexfec_sender_->ssrc()); |
| 278 } |
| 279 return rtc::Optional<uint32_t>(); |
| 280 } |
| 281 |
275 bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type, | 282 bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type, |
276 FrameType frame_type, | 283 FrameType frame_type, |
277 int8_t payload_type, | 284 int8_t payload_type, |
278 uint32_t rtp_timestamp, | 285 uint32_t rtp_timestamp, |
279 int64_t capture_time_ms, | 286 int64_t capture_time_ms, |
280 const uint8_t* payload_data, | 287 const uint8_t* payload_data, |
281 size_t payload_size, | 288 size_t payload_size, |
282 const RTPFragmentationHeader* fragmentation, | 289 const RTPFragmentationHeader* fragmentation, |
283 const RTPVideoHeader* video_header) { | 290 const RTPVideoHeader* video_header) { |
284 if (payload_size == 0) | 291 if (payload_size == 0) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 rtc::CritScope cs(&crit_); | 417 rtc::CritScope cs(&crit_); |
411 return retransmission_settings_; | 418 return retransmission_settings_; |
412 } | 419 } |
413 | 420 |
414 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { | 421 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { |
415 rtc::CritScope cs(&crit_); | 422 rtc::CritScope cs(&crit_); |
416 retransmission_settings_ = settings; | 423 retransmission_settings_ = settings; |
417 } | 424 } |
418 | 425 |
419 } // namespace webrtc | 426 } // namespace webrtc |
OLD | NEW |