| 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 const uint64_t picture_id) { | 1020 const uint64_t picture_id) { |
| 1021 return rtp_rtcp_modules_[0]->SendRTCPReferencePictureSelection(picture_id); | 1021 return rtp_rtcp_modules_[0]->SendRTCPReferencePictureSelection(picture_id); |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 void ViEChannel::OnIncomingPayloadType(int payload_type) { | 1024 void ViEChannel::OnIncomingPayloadType(int payload_type) { |
| 1025 CriticalSectionScoped cs(crit_.get()); | 1025 CriticalSectionScoped cs(crit_.get()); |
| 1026 if (receive_stats_callback_) | 1026 if (receive_stats_callback_) |
| 1027 receive_stats_callback_->OnIncomingPayloadType(payload_type); | 1027 receive_stats_callback_->OnIncomingPayloadType(payload_type); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 void ViEChannel::OnDecoderImplementationName(const char* implementation_name) { |
| 1031 CriticalSectionScoped cs(crit_.get()); |
| 1032 if (receive_stats_callback_) |
| 1033 receive_stats_callback_->OnDecoderImplementationName(implementation_name); |
| 1034 } |
| 1035 |
| 1030 void ViEChannel::OnReceiveRatesUpdated(uint32_t bit_rate, uint32_t frame_rate) { | 1036 void ViEChannel::OnReceiveRatesUpdated(uint32_t bit_rate, uint32_t frame_rate) { |
| 1031 CriticalSectionScoped cs(crit_.get()); | 1037 CriticalSectionScoped cs(crit_.get()); |
| 1032 if (receive_stats_callback_) | 1038 if (receive_stats_callback_) |
| 1033 receive_stats_callback_->OnIncomingRate(frame_rate, bit_rate); | 1039 receive_stats_callback_->OnIncomingRate(frame_rate, bit_rate); |
| 1034 } | 1040 } |
| 1035 | 1041 |
| 1036 void ViEChannel::OnDiscardedPacketsUpdated(int discarded_packets) { | 1042 void ViEChannel::OnDiscardedPacketsUpdated(int discarded_packets) { |
| 1037 CriticalSectionScoped cs(crit_.get()); | 1043 CriticalSectionScoped cs(crit_.get()); |
| 1038 if (receive_stats_callback_) | 1044 if (receive_stats_callback_) |
| 1039 receive_stats_callback_->OnDiscardedPacketsUpdated(discarded_packets); | 1045 receive_stats_callback_->OnDiscardedPacketsUpdated(discarded_packets); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 CriticalSectionScoped cs(crit_.get()); | 1250 CriticalSectionScoped cs(crit_.get()); |
| 1245 receive_stats_callback_ = receive_statistics_proxy; | 1251 receive_stats_callback_ = receive_statistics_proxy; |
| 1246 } | 1252 } |
| 1247 | 1253 |
| 1248 void ViEChannel::SetIncomingVideoStream( | 1254 void ViEChannel::SetIncomingVideoStream( |
| 1249 IncomingVideoStream* incoming_video_stream) { | 1255 IncomingVideoStream* incoming_video_stream) { |
| 1250 CriticalSectionScoped cs(crit_.get()); | 1256 CriticalSectionScoped cs(crit_.get()); |
| 1251 incoming_video_stream_ = incoming_video_stream; | 1257 incoming_video_stream_ = incoming_video_stream; |
| 1252 } | 1258 } |
| 1253 } // namespace webrtc | 1259 } // namespace webrtc |
| OLD | NEW |