Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc

Issue 2491293002: Make FlexFEC packets paceable through RTPSender. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return overhead; 268 return overhead;
269 } 269 }
270 270
271 void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params, 271 void RTPSenderVideo::SetFecParameters(const FecProtectionParams& delta_params,
272 const FecProtectionParams& key_params) { 272 const FecProtectionParams& key_params) {
273 rtc::CritScope cs(&crit_); 273 rtc::CritScope cs(&crit_);
274 delta_fec_params_ = delta_params; 274 delta_fec_params_ = delta_params;
275 key_fec_params_ = key_params; 275 key_fec_params_ = key_params;
276 } 276 }
277 277
278 rtc::Optional<uint32_t> RTPSenderVideo::FlexfecSsrc() const {
279 if (flexfec_sender_) {
280 return rtc::Optional<uint32_t>(flexfec_sender_->Ssrc());
281 }
282 return rtc::Optional<uint32_t>(); // No value.
283 }
284
278 bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type, 285 bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type,
279 FrameType frame_type, 286 FrameType frame_type,
280 int8_t payload_type, 287 int8_t payload_type,
281 uint32_t rtp_timestamp, 288 uint32_t rtp_timestamp,
282 int64_t capture_time_ms, 289 int64_t capture_time_ms,
283 const uint8_t* payload_data, 290 const uint8_t* payload_data,
284 size_t payload_size, 291 size_t payload_size,
285 const RTPFragmentationHeader* fragmentation, 292 const RTPFragmentationHeader* fragmentation,
286 const RTPVideoHeader* video_header) { 293 const RTPVideoHeader* video_header) {
287 RTC_DCHECK_CALLED_SEQUENTIALLY(&encoder_checker_); 294 RTC_DCHECK_CALLED_SEQUENTIALLY(&encoder_checker_);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 rtc::CritScope cs(&crit_); 419 rtc::CritScope cs(&crit_);
413 return retransmission_settings_; 420 return retransmission_settings_;
414 } 421 }
415 422
416 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { 423 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) {
417 rtc::CritScope cs(&crit_); 424 rtc::CritScope cs(&crit_);
418 retransmission_settings_ = settings; 425 retransmission_settings_ = settings;
419 } 426 }
420 427
421 } // namespace webrtc 428 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698