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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 return rtp_sender_.SetAudioLevel(level_d_bov); | 787 return rtp_sender_.SetAudioLevel(level_d_bov); |
788 } | 788 } |
789 | 789 |
790 // Set payload type for Redundant Audio Data RFC 2198. | 790 // Set payload type for Redundant Audio Data RFC 2198. |
791 int32_t ModuleRtpRtcpImpl::SetSendREDPayloadType( | 791 int32_t ModuleRtpRtcpImpl::SetSendREDPayloadType( |
792 const int8_t payload_type) { | 792 const int8_t payload_type) { |
793 return rtp_sender_.SetRED(payload_type); | 793 return rtp_sender_.SetRED(payload_type); |
794 } | 794 } |
795 | 795 |
796 // Get payload type for Redundant Audio Data RFC 2198. | 796 // Get payload type for Redundant Audio Data RFC 2198. |
797 int32_t ModuleRtpRtcpImpl::SendREDPayloadType( | 797 int32_t ModuleRtpRtcpImpl::SendREDPayloadType(int8_t* payload_type) const { |
798 int8_t& payload_type) const { | 798 return rtp_sender_.RED(payload_type); |
799 return rtp_sender_.RED(&payload_type); | |
800 } | 799 } |
801 | 800 |
802 void ModuleRtpRtcpImpl::SetTargetSendBitrate(uint32_t bitrate_bps) { | 801 void ModuleRtpRtcpImpl::SetTargetSendBitrate(uint32_t bitrate_bps) { |
803 rtp_sender_.SetTargetBitrate(bitrate_bps); | 802 rtp_sender_.SetTargetBitrate(bitrate_bps); |
804 } | 803 } |
805 | 804 |
806 int32_t ModuleRtpRtcpImpl::SetKeyFrameRequestMethod( | 805 int32_t ModuleRtpRtcpImpl::SetKeyFrameRequestMethod( |
807 const KeyFrameRequestMethod method) { | 806 const KeyFrameRequestMethod method) { |
808 key_frame_req_method_ = method; | 807 key_frame_req_method_ = method; |
809 return 0; | 808 return 0; |
(...skipping 15 matching lines...) Expand all Loading... |
825 GetFeedbackState(), kRtcpSli, 0, 0, false, picture_id); | 824 GetFeedbackState(), kRtcpSli, 0, 0, false, picture_id); |
826 } | 825 } |
827 | 826 |
828 void ModuleRtpRtcpImpl::SetGenericFECStatus( | 827 void ModuleRtpRtcpImpl::SetGenericFECStatus( |
829 const bool enable, | 828 const bool enable, |
830 const uint8_t payload_type_red, | 829 const uint8_t payload_type_red, |
831 const uint8_t payload_type_fec) { | 830 const uint8_t payload_type_fec) { |
832 rtp_sender_.SetGenericFECStatus(enable, payload_type_red, payload_type_fec); | 831 rtp_sender_.SetGenericFECStatus(enable, payload_type_red, payload_type_fec); |
833 } | 832 } |
834 | 833 |
835 void ModuleRtpRtcpImpl::GenericFECStatus(bool& enable, | 834 void ModuleRtpRtcpImpl::GenericFECStatus(bool* enable, |
836 uint8_t& payload_type_red, | 835 uint8_t* payload_type_red, |
837 uint8_t& payload_type_fec) { | 836 uint8_t* payload_type_fec) { |
838 rtp_sender_.GenericFECStatus(&enable, &payload_type_red, | 837 rtp_sender_.GenericFECStatus(enable, payload_type_red, payload_type_fec); |
839 &payload_type_fec); | |
840 } | 838 } |
841 | 839 |
842 int32_t ModuleRtpRtcpImpl::SetFecParameters( | 840 int32_t ModuleRtpRtcpImpl::SetFecParameters( |
843 const FecProtectionParams* delta_params, | 841 const FecProtectionParams* delta_params, |
844 const FecProtectionParams* key_params) { | 842 const FecProtectionParams* key_params) { |
845 return rtp_sender_.SetFecParameters(delta_params, key_params); | 843 return rtp_sender_.SetFecParameters(delta_params, key_params); |
846 } | 844 } |
847 | 845 |
848 void ModuleRtpRtcpImpl::SetRemoteSSRC(const uint32_t ssrc) { | 846 void ModuleRtpRtcpImpl::SetRemoteSSRC(const uint32_t ssrc) { |
849 // Inform about the incoming SSRC. | 847 // Inform about the incoming SSRC. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( | 983 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( |
986 StreamDataCountersCallback* callback) { | 984 StreamDataCountersCallback* callback) { |
987 rtp_sender_.RegisterRtpStatisticsCallback(callback); | 985 rtp_sender_.RegisterRtpStatisticsCallback(callback); |
988 } | 986 } |
989 | 987 |
990 StreamDataCountersCallback* | 988 StreamDataCountersCallback* |
991 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { | 989 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { |
992 return rtp_sender_.GetRtpStatisticsCallback(); | 990 return rtp_sender_.GetRtpStatisticsCallback(); |
993 } | 991 } |
994 } // namespace webrtc | 992 } // namespace webrtc |
OLD | NEW |