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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return rtp_sender_->TimeToSendPacket(ssrc, sequence_number, capture_time_ms, | 410 return rtp_sender_->TimeToSendPacket(ssrc, sequence_number, capture_time_ms, |
411 retransmission, pacing_info); | 411 retransmission, pacing_info); |
412 } | 412 } |
413 | 413 |
414 size_t ModuleRtpRtcpImpl::TimeToSendPadding( | 414 size_t ModuleRtpRtcpImpl::TimeToSendPadding( |
415 size_t bytes, | 415 size_t bytes, |
416 const PacedPacketInfo& pacing_info) { | 416 const PacedPacketInfo& pacing_info) { |
417 return rtp_sender_->TimeToSendPadding(bytes, pacing_info); | 417 return rtp_sender_->TimeToSendPadding(bytes, pacing_info); |
418 } | 418 } |
419 | 419 |
420 size_t ModuleRtpRtcpImpl::MaxPayloadSize() const { | |
421 return rtp_sender_->MaxPayloadSize(); | |
422 } | |
423 | |
424 size_t ModuleRtpRtcpImpl::MaxRtpPacketSize() const { | 420 size_t ModuleRtpRtcpImpl::MaxRtpPacketSize() const { |
425 return rtp_sender_->MaxRtpPacketSize(); | 421 return rtp_sender_->MaxRtpPacketSize(); |
426 } | 422 } |
427 | 423 |
428 void ModuleRtpRtcpImpl::SetMaxRtpPacketSize(size_t rtp_packet_size) { | 424 void ModuleRtpRtcpImpl::SetMaxRtpPacketSize(size_t rtp_packet_size) { |
429 RTC_DCHECK_LE(rtp_packet_size, IP_PACKET_SIZE) | 425 RTC_DCHECK_LE(rtp_packet_size, IP_PACKET_SIZE) |
430 << "rtp packet size too large: " << rtp_packet_size; | 426 << "rtp packet size too large: " << rtp_packet_size; |
431 RTC_DCHECK_GT(rtp_packet_size, packet_overhead_) | 427 RTC_DCHECK_GT(rtp_packet_size, packet_overhead_) |
432 << "rtp packet size too small: " << rtp_packet_size; | 428 << "rtp packet size too small: " << rtp_packet_size; |
433 | 429 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 StreamDataCountersCallback* | 884 StreamDataCountersCallback* |
889 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { | 885 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { |
890 return rtp_sender_->GetRtpStatisticsCallback(); | 886 return rtp_sender_->GetRtpStatisticsCallback(); |
891 } | 887 } |
892 | 888 |
893 void ModuleRtpRtcpImpl::SetVideoBitrateAllocation( | 889 void ModuleRtpRtcpImpl::SetVideoBitrateAllocation( |
894 const BitrateAllocation& bitrate) { | 890 const BitrateAllocation& bitrate) { |
895 rtcp_sender_.SetVideoBitrateAllocation(bitrate); | 891 rtcp_sender_.SetVideoBitrateAllocation(bitrate); |
896 } | 892 } |
897 } // namespace webrtc | 893 } // namespace webrtc |
OLD | NEW |