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

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

Issue 1493403003: modules/rtp_rtcp/include folder cleared of lint warnings (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: webrtc do not use newly depricated functions itself. Created 5 years 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698