| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool enable, | 155 bool enable, |
| 156 const VideoOptions* options, | 156 const VideoOptions* options, |
| 157 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override; | 157 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override; |
| 158 bool AddSendStream(const StreamParams& sp) override; | 158 bool AddSendStream(const StreamParams& sp) override; |
| 159 bool RemoveSendStream(uint32_t ssrc) override; | 159 bool RemoveSendStream(uint32_t ssrc) override; |
| 160 bool AddRecvStream(const StreamParams& sp) override; | 160 bool AddRecvStream(const StreamParams& sp) override; |
| 161 bool AddRecvStream(const StreamParams& sp, bool default_stream); | 161 bool AddRecvStream(const StreamParams& sp, bool default_stream); |
| 162 bool RemoveRecvStream(uint32_t ssrc) override; | 162 bool RemoveRecvStream(uint32_t ssrc) override; |
| 163 bool SetSink(uint32_t ssrc, | 163 bool SetSink(uint32_t ssrc, |
| 164 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; | 164 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; |
| 165 bool FillBitrateInfo(BandwidthEstimationInfo* bwe_info) override; |
| 165 bool GetStats(VideoMediaInfo* info) override; | 166 bool GetStats(VideoMediaInfo* info) override; |
| 166 | 167 |
| 167 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, | 168 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, |
| 168 const rtc::PacketTime& packet_time) override; | 169 const rtc::PacketTime& packet_time) override; |
| 169 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, | 170 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, |
| 170 const rtc::PacketTime& packet_time) override; | 171 const rtc::PacketTime& packet_time) override; |
| 171 void OnReadyToSend(bool ready) override; | 172 void OnReadyToSend(bool ready) override; |
| 172 void OnNetworkRouteChanged(const std::string& transport_name, | 173 void OnNetworkRouteChanged(const std::string& transport_name, |
| 173 const rtc::NetworkRoute& network_route) override; | 174 const rtc::NetworkRoute& network_route) override; |
| 174 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; | 175 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; | 267 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; |
| 267 | 268 |
| 268 bool SetVideoSend(bool mute, | 269 bool SetVideoSend(bool mute, |
| 269 const VideoOptions* options, | 270 const VideoOptions* options, |
| 270 rtc::VideoSourceInterface<webrtc::VideoFrame>* source); | 271 rtc::VideoSourceInterface<webrtc::VideoFrame>* source); |
| 271 | 272 |
| 272 void SetSend(bool send); | 273 void SetSend(bool send); |
| 273 | 274 |
| 274 const std::vector<uint32_t>& GetSsrcs() const; | 275 const std::vector<uint32_t>& GetSsrcs() const; |
| 275 VideoSenderInfo GetVideoSenderInfo(bool log_stats); | 276 VideoSenderInfo GetVideoSenderInfo(bool log_stats); |
| 276 void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info); | 277 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info); |
| 277 | 278 |
| 278 private: | 279 private: |
| 279 // Parameters needed to reconstruct the underlying stream. | 280 // Parameters needed to reconstruct the underlying stream. |
| 280 // webrtc::VideoSendStream doesn't support setting a lot of options on the | 281 // webrtc::VideoSendStream doesn't support setting a lot of options on the |
| 281 // fly, so when those need to be changed we tear down and reconstruct with | 282 // fly, so when those need to be changed we tear down and reconstruct with |
| 282 // similar parameters depending on which options changed etc. | 283 // similar parameters depending on which options changed etc. |
| 283 struct VideoSendStreamParameters { | 284 struct VideoSendStreamParameters { |
| 284 VideoSendStreamParameters( | 285 VideoSendStreamParameters( |
| 285 webrtc::VideoSendStream::Config config, | 286 webrtc::VideoSendStream::Config config, |
| 286 const VideoOptions& options, | 287 const VideoOptions& options, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // send_params/recv_params, rtp_extensions, options, etc. | 502 // send_params/recv_params, rtp_extensions, options, etc. |
| 502 VideoSendParameters send_params_; | 503 VideoSendParameters send_params_; |
| 503 VideoOptions default_send_options_; | 504 VideoOptions default_send_options_; |
| 504 VideoRecvParameters recv_params_; | 505 VideoRecvParameters recv_params_; |
| 505 int64_t last_stats_log_ms_; | 506 int64_t last_stats_log_ms_; |
| 506 }; | 507 }; |
| 507 | 508 |
| 508 } // namespace cricket | 509 } // namespace cricket |
| 509 | 510 |
| 510 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 511 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |