| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 29 matching lines...) Expand all Loading... |
| 40 VideoSendStream(newapi::Transport* transport, | 40 VideoSendStream(newapi::Transport* transport, |
| 41 CpuOveruseObserver* overuse_observer, | 41 CpuOveruseObserver* overuse_observer, |
| 42 int num_cpu_cores, | 42 int num_cpu_cores, |
| 43 ProcessThread* module_process_thread, | 43 ProcessThread* module_process_thread, |
| 44 ChannelGroup* channel_group, | 44 ChannelGroup* channel_group, |
| 45 int channel_id, | 45 int channel_id, |
| 46 const VideoSendStream::Config& config, | 46 const VideoSendStream::Config& config, |
| 47 const VideoEncoderConfig& encoder_config, | 47 const VideoEncoderConfig& encoder_config, |
| 48 const std::map<uint32_t, RtpState>& suspended_ssrcs); | 48 const std::map<uint32_t, RtpState>& suspended_ssrcs); |
| 49 | 49 |
| 50 virtual ~VideoSendStream(); | 50 ~VideoSendStream() override; |
| 51 | 51 |
| 52 VideoCaptureInput* Input() override; | 52 // webrtc::SendStream implementation. |
| 53 | |
| 54 void Start() override; | 53 void Start() override; |
| 55 void Stop() override; | 54 void Stop() override; |
| 55 void SignalNetworkState(NetworkState state) override; |
| 56 bool DeliverRtcp(const uint8_t* packet, size_t length) override; |
| 56 | 57 |
| 58 // webrtc::VideoSendStream implementation. |
| 59 VideoCaptureInput* Input() override; |
| 57 bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) override; | 60 bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) override; |
| 58 | |
| 59 Stats GetStats() override; | 61 Stats GetStats() override; |
| 60 | 62 |
| 61 bool DeliverRtcp(const uint8_t* packet, size_t length); | |
| 62 | |
| 63 typedef std::map<uint32_t, RtpState> RtpStateMap; | 63 typedef std::map<uint32_t, RtpState> RtpStateMap; |
| 64 RtpStateMap GetRtpStates() const; | 64 RtpStateMap GetRtpStates() const; |
| 65 | 65 |
| 66 void SignalNetworkState(Call::NetworkState state); | |
| 67 | |
| 68 int64_t GetRtt() const; | 66 int64_t GetRtt() const; |
| 69 | 67 |
| 70 private: | 68 private: |
| 71 bool SetSendCodec(VideoCodec video_codec); | 69 bool SetSendCodec(VideoCodec video_codec); |
| 72 void ConfigureSsrcs(); | 70 void ConfigureSsrcs(); |
| 73 TransportAdapter transport_adapter_; | 71 TransportAdapter transport_adapter_; |
| 74 EncodedFrameCallbackAdapter encoded_frame_proxy_; | 72 EncodedFrameCallbackAdapter encoded_frame_proxy_; |
| 75 const VideoSendStream::Config config_; | 73 const VideoSendStream::Config config_; |
| 76 VideoEncoderConfig encoder_config_; | 74 VideoEncoderConfig encoder_config_; |
| 77 std::map<uint32_t, RtpState> suspended_ssrcs_; | 75 std::map<uint32_t, RtpState> suspended_ssrcs_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 88 // start bitrate initially, instead of the one reported by VideoEngine (which | 86 // start bitrate initially, instead of the one reported by VideoEngine (which |
| 89 // defaults to too high). | 87 // defaults to too high). |
| 90 bool use_config_bitrate_; | 88 bool use_config_bitrate_; |
| 91 | 89 |
| 92 SendStatisticsProxy stats_proxy_; | 90 SendStatisticsProxy stats_proxy_; |
| 93 }; | 91 }; |
| 94 } // namespace internal | 92 } // namespace internal |
| 95 } // namespace webrtc | 93 } // namespace webrtc |
| 96 | 94 |
| 97 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 95 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
| OLD | NEW |