| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 bool transport_cc_enabled, | 403 bool transport_cc_enabled, |
| 404 webrtc::RtcpMode rtcp_mode); | 404 webrtc::RtcpMode rtcp_mode); |
| 405 void SetRecvParameters(const ChangedRecvParameters& recv_params); | 405 void SetRecvParameters(const ChangedRecvParameters& recv_params); |
| 406 | 406 |
| 407 void OnFrame(const webrtc::VideoFrame& frame) override; | 407 void OnFrame(const webrtc::VideoFrame& frame) override; |
| 408 bool IsDefaultStream() const; | 408 bool IsDefaultStream() const; |
| 409 | 409 |
| 410 void SetSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink); | 410 void SetSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink); |
| 411 | 411 |
| 412 VideoReceiverInfo GetVideoReceiverInfo(bool log_stats); | 412 VideoReceiverInfo GetVideoReceiverInfo(bool log_stats); |
| 413 const webrtc::VideoReceiveStream::Config& config() const { return config_; } |
| 413 | 414 |
| 414 // Used to disable RED/FEC when the remote description doesn't contain those | 415 // Used to disable RED/FEC when the remote description doesn't contain those |
| 415 // codecs. This is needed to be able to work around an RTX bug which is only | 416 // codecs. This is needed to be able to work around an RTX bug which is only |
| 416 // happening if the remote side doesn't send RED, but the local side is | 417 // happening if the remote side doesn't send RED, but the local side is |
| 417 // configured to receive RED. | 418 // configured to receive RED. |
| 418 // TODO(holmer): Remove this after a couple of Chrome versions, M53-54 | 419 // TODO(holmer): Remove this after a couple of Chrome versions, M53-54 |
| 419 // time frame. | 420 // time frame. |
| 420 void SetUlpfecDisabledRemotely(bool disable); | 421 void SetUlpfecDisabledRemotely(bool disable); |
| 421 | 422 |
| 422 private: | 423 private: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 rtc::Optional<VideoCodecSettings> SelectSendVideoCodec( | 481 rtc::Optional<VideoCodecSettings> SelectSendVideoCodec( |
| 481 const std::vector<VideoCodecSettings>& remote_mapped_codecs) const; | 482 const std::vector<VideoCodecSettings>& remote_mapped_codecs) const; |
| 482 | 483 |
| 483 static bool ReceiveCodecsHaveChanged(std::vector<VideoCodecSettings> before, | 484 static bool ReceiveCodecsHaveChanged(std::vector<VideoCodecSettings> before, |
| 484 std::vector<VideoCodecSettings> after); | 485 std::vector<VideoCodecSettings> after); |
| 485 | 486 |
| 486 void FillSenderStats(VideoMediaInfo* info, bool log_stats); | 487 void FillSenderStats(VideoMediaInfo* info, bool log_stats); |
| 487 void FillReceiverStats(VideoMediaInfo* info, bool log_stats); | 488 void FillReceiverStats(VideoMediaInfo* info, bool log_stats); |
| 488 void FillBandwidthEstimationStats(const webrtc::Call::Stats& stats, | 489 void FillBandwidthEstimationStats(const webrtc::Call::Stats& stats, |
| 489 VideoMediaInfo* info); | 490 VideoMediaInfo* info); |
| 491 void FillSendAndReceiveCodecStats(VideoMediaInfo* video_media_info); |
| 490 | 492 |
| 491 rtc::ThreadChecker thread_checker_; | 493 rtc::ThreadChecker thread_checker_; |
| 492 | 494 |
| 493 uint32_t rtcp_receiver_report_ssrc_; | 495 uint32_t rtcp_receiver_report_ssrc_; |
| 494 bool sending_; | 496 bool sending_; |
| 495 webrtc::Call* const call_; | 497 webrtc::Call* const call_; |
| 496 | 498 |
| 497 DefaultUnsignalledSsrcHandler default_unsignalled_ssrc_handler_; | 499 DefaultUnsignalledSsrcHandler default_unsignalled_ssrc_handler_; |
| 498 UnsignalledSsrcHandler* const unsignalled_ssrc_handler_; | 500 UnsignalledSsrcHandler* const unsignalled_ssrc_handler_; |
| 499 | 501 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 521 VideoSendParameters send_params_; | 523 VideoSendParameters send_params_; |
| 522 VideoOptions default_send_options_; | 524 VideoOptions default_send_options_; |
| 523 VideoRecvParameters recv_params_; | 525 VideoRecvParameters recv_params_; |
| 524 bool red_disabled_by_remote_side_; | 526 bool red_disabled_by_remote_side_; |
| 525 int64_t last_stats_log_ms_; | 527 int64_t last_stats_log_ms_; |
| 526 }; | 528 }; |
| 527 | 529 |
| 528 } // namespace cricket | 530 } // namespace cricket |
| 529 | 531 |
| 530 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 532 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |