| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 145   // VideoMediaChannel implementation | 145   // VideoMediaChannel implementation | 
| 146   rtc::DiffServCodePoint PreferredDscp() const override; | 146   rtc::DiffServCodePoint PreferredDscp() const override; | 
| 147 | 147 | 
| 148   bool SetSendParameters(const VideoSendParameters& params) override; | 148   bool SetSendParameters(const VideoSendParameters& params) override; | 
| 149   bool SetRecvParameters(const VideoRecvParameters& params) override; | 149   bool SetRecvParameters(const VideoRecvParameters& params) override; | 
| 150   webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const override; | 150   webrtc::RtpParameters GetRtpParameters(uint32_t ssrc) const override; | 
| 151   bool SetRtpParameters(uint32_t ssrc, | 151   bool SetRtpParameters(uint32_t ssrc, | 
| 152                         const webrtc::RtpParameters& parameters) override; | 152                         const webrtc::RtpParameters& parameters) override; | 
| 153   bool GetSendCodec(VideoCodec* send_codec) override; | 153   bool GetSendCodec(VideoCodec* send_codec) override; | 
| 154   bool SetSend(bool send) override; | 154   bool SetSend(bool send) override; | 
| 155   bool SetVideoSend(uint32_t ssrc, | 155   bool SetVideoSend( | 
| 156                     bool mute, | 156       uint32_t ssrc, | 
| 157                     const VideoOptions* options) override; | 157       bool enable, | 
|  | 158       const VideoOptions* options, | 
|  | 159       rtc::VideoSourceInterface<cricket::VideoFrame>* source) override; | 
| 158   bool AddSendStream(const StreamParams& sp) override; | 160   bool AddSendStream(const StreamParams& sp) override; | 
| 159   bool RemoveSendStream(uint32_t ssrc) override; | 161   bool RemoveSendStream(uint32_t ssrc) override; | 
| 160   bool AddRecvStream(const StreamParams& sp) override; | 162   bool AddRecvStream(const StreamParams& sp) override; | 
| 161   bool AddRecvStream(const StreamParams& sp, bool default_stream); | 163   bool AddRecvStream(const StreamParams& sp, bool default_stream); | 
| 162   bool RemoveRecvStream(uint32_t ssrc) override; | 164   bool RemoveRecvStream(uint32_t ssrc) override; | 
| 163   bool SetSink(uint32_t ssrc, | 165   bool SetSink(uint32_t ssrc, | 
| 164                rtc::VideoSinkInterface<VideoFrame>* sink) override; | 166                rtc::VideoSinkInterface<VideoFrame>* sink) override; | 
| 165   bool GetStats(VideoMediaInfo* info) override; | 167   bool GetStats(VideoMediaInfo* info) override; | 
| 166   void SetSource( |  | 
| 167       uint32_t ssrc, |  | 
| 168       rtc::VideoSourceInterface<cricket::VideoFrame>* source) override; |  | 
| 169 | 168 | 
| 170   void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, | 169   void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, | 
| 171                         const rtc::PacketTime& packet_time) override; | 170                         const rtc::PacketTime& packet_time) override; | 
| 172   void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, | 171   void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, | 
| 173                       const rtc::PacketTime& packet_time) override; | 172                       const rtc::PacketTime& packet_time) override; | 
| 174   void OnReadyToSend(bool ready) override; | 173   void OnReadyToSend(bool ready) override; | 
| 175   void OnNetworkRouteChanged(const std::string& transport_name, | 174   void OnNetworkRouteChanged(const std::string& transport_name, | 
| 176                              const rtc::NetworkRoute& network_route) override; | 175                              const rtc::NetworkRoute& network_route) override; | 
| 177   void SetInterface(NetworkInterface* iface) override; | 176   void SetInterface(NetworkInterface* iface) override; | 
| 178 | 177 | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 215     rtc::Optional<std::vector<VideoCodecSettings>> codec_settings; | 214     rtc::Optional<std::vector<VideoCodecSettings>> codec_settings; | 
| 216     rtc::Optional<std::vector<webrtc::RtpExtension>> rtp_header_extensions; | 215     rtc::Optional<std::vector<webrtc::RtpExtension>> rtp_header_extensions; | 
| 217   }; | 216   }; | 
| 218 | 217 | 
| 219   bool GetChangedSendParameters(const VideoSendParameters& params, | 218   bool GetChangedSendParameters(const VideoSendParameters& params, | 
| 220                                 ChangedSendParameters* changed_params) const; | 219                                 ChangedSendParameters* changed_params) const; | 
| 221   bool GetChangedRecvParameters(const VideoRecvParameters& params, | 220   bool GetChangedRecvParameters(const VideoRecvParameters& params, | 
| 222                                 ChangedRecvParameters* changed_params) const; | 221                                 ChangedRecvParameters* changed_params) const; | 
| 223 | 222 | 
| 224   void SetMaxSendBandwidth(int bps); | 223   void SetMaxSendBandwidth(int bps); | 
| 225   void SetOptions(uint32_t ssrc, const VideoOptions& options); |  | 
| 226 | 224 | 
| 227   void ConfigureReceiverRtp(webrtc::VideoReceiveStream::Config* config, | 225   void ConfigureReceiverRtp(webrtc::VideoReceiveStream::Config* config, | 
| 228                             const StreamParams& sp) const; | 226                             const StreamParams& sp) const; | 
| 229   bool CodecIsExternallySupported(const std::string& name) const; | 227   bool CodecIsExternallySupported(const std::string& name) const; | 
| 230   bool ValidateSendSsrcAvailability(const StreamParams& sp) const | 228   bool ValidateSendSsrcAvailability(const StreamParams& sp) const | 
| 231       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 229       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 
| 232   bool ValidateReceiveSsrcAvailability(const StreamParams& sp) const | 230   bool ValidateReceiveSsrcAvailability(const StreamParams& sp) const | 
| 233       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 231       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 
| 234   void DeleteReceiveStream(WebRtcVideoReceiveStream* stream) | 232   void DeleteReceiveStream(WebRtcVideoReceiveStream* stream) | 
| 235       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 233       EXCLUSIVE_LOCKS_REQUIRED(stream_crit_); | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 249         const webrtc::VideoSendStream::Config& config, | 247         const webrtc::VideoSendStream::Config& config, | 
| 250         const VideoOptions& options, | 248         const VideoOptions& options, | 
| 251         WebRtcVideoEncoderFactory* external_encoder_factory, | 249         WebRtcVideoEncoderFactory* external_encoder_factory, | 
| 252         bool enable_cpu_overuse_detection, | 250         bool enable_cpu_overuse_detection, | 
| 253         int max_bitrate_bps, | 251         int max_bitrate_bps, | 
| 254         const rtc::Optional<VideoCodecSettings>& codec_settings, | 252         const rtc::Optional<VideoCodecSettings>& codec_settings, | 
| 255         const std::vector<webrtc::RtpExtension>& rtp_extensions, | 253         const std::vector<webrtc::RtpExtension>& rtp_extensions, | 
| 256         const VideoSendParameters& send_params); | 254         const VideoSendParameters& send_params); | 
| 257     virtual ~WebRtcVideoSendStream(); | 255     virtual ~WebRtcVideoSendStream(); | 
| 258 | 256 | 
| 259     void SetOptions(const VideoOptions& options); |  | 
| 260     // TODO(pbos): Move logic from SetOptions into this method. |  | 
| 261     void SetSendParameters(const ChangedSendParameters& send_params); | 257     void SetSendParameters(const ChangedSendParameters& send_params); | 
| 262     bool SetRtpParameters(const webrtc::RtpParameters& parameters); | 258     bool SetRtpParameters(const webrtc::RtpParameters& parameters); | 
| 263     webrtc::RtpParameters GetRtpParameters() const; | 259     webrtc::RtpParameters GetRtpParameters() const; | 
| 264 | 260 | 
| 265     void OnFrame(const cricket::VideoFrame& frame) override; | 261     void OnFrame(const cricket::VideoFrame& frame) override; | 
| 266     void SetSource(rtc::VideoSourceInterface<cricket::VideoFrame>* source); | 262     bool SetVideoSend(bool mute, | 
|  | 263                       const VideoOptions* options, | 
|  | 264                       rtc::VideoSourceInterface<cricket::VideoFrame>* source); | 
| 267     void DisconnectSource(); | 265     void DisconnectSource(); | 
| 268 | 266 | 
| 269     void SetSend(bool send); | 267     void SetSend(bool send); | 
| 270 | 268 | 
| 271     // Implements webrtc::LoadObserver. | 269     // Implements webrtc::LoadObserver. | 
| 272     void OnLoadUpdate(Load load) override; | 270     void OnLoadUpdate(Load load) override; | 
| 273 | 271 | 
| 274     const std::vector<uint32_t>& GetSsrcs() const; | 272     const std::vector<uint32_t>& GetSsrcs() const; | 
| 275     VideoSenderInfo GetVideoSenderInfo(); | 273     VideoSenderInfo GetVideoSenderInfo(); | 
| 276     void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info); | 274     void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info); | 
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 536   // TODO(deadbeef): Don't duplicate information between | 534   // TODO(deadbeef): Don't duplicate information between | 
| 537   // send_params/recv_params, rtp_extensions, options, etc. | 535   // send_params/recv_params, rtp_extensions, options, etc. | 
| 538   VideoSendParameters send_params_; | 536   VideoSendParameters send_params_; | 
| 539   VideoOptions default_send_options_; | 537   VideoOptions default_send_options_; | 
| 540   VideoRecvParameters recv_params_; | 538   VideoRecvParameters recv_params_; | 
| 541 }; | 539 }; | 
| 542 | 540 | 
| 543 }  // namespace cricket | 541 }  // namespace cricket | 
| 544 | 542 | 
| 545 #endif  // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 543 #endif  // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 
| OLD | NEW | 
|---|