| 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 |
| 11 #ifndef WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 11 #ifndef WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
| 12 #define WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 12 #define WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/call/bitrate_allocator.h" | 18 #include "webrtc/call/bitrate_allocator.h" |
| 19 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" |
| 20 #include "webrtc/call.h" | 20 #include "webrtc/call.h" |
| 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 22 #include "webrtc/video/encoded_frame_callback_adapter.h" | 22 #include "webrtc/video/encoded_frame_callback_adapter.h" |
| 23 #include "webrtc/video/encoder_state_feedback.h" | 23 #include "webrtc/video/encoder_state_feedback.h" |
| 24 #include "webrtc/video/payload_router.h" | 24 #include "webrtc/video/payload_router.h" |
| 25 #include "webrtc/video/send_delay_stats.h" |
| 25 #include "webrtc/video/send_statistics_proxy.h" | 26 #include "webrtc/video/send_statistics_proxy.h" |
| 26 #include "webrtc/video/video_capture_input.h" | 27 #include "webrtc/video/video_capture_input.h" |
| 27 #include "webrtc/video/vie_channel.h" | 28 #include "webrtc/video/vie_channel.h" |
| 28 #include "webrtc/video/vie_encoder.h" | 29 #include "webrtc/video/vie_encoder.h" |
| 29 #include "webrtc/video_receive_stream.h" | 30 #include "webrtc/video_receive_stream.h" |
| 30 #include "webrtc/video_send_stream.h" | 31 #include "webrtc/video_send_stream.h" |
| 31 | 32 |
| 32 namespace webrtc { | 33 namespace webrtc { |
| 33 | 34 |
| 34 class BitrateAllocator; | 35 class BitrateAllocator; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 50 public webrtc::CpuOveruseObserver, | 51 public webrtc::CpuOveruseObserver, |
| 51 public webrtc::BitrateAllocatorObserver, | 52 public webrtc::BitrateAllocatorObserver, |
| 52 public webrtc::VCMProtectionCallback, | 53 public webrtc::VCMProtectionCallback, |
| 53 protected webrtc::EncodedImageCallback { | 54 protected webrtc::EncodedImageCallback { |
| 54 public: | 55 public: |
| 55 VideoSendStream(int num_cpu_cores, | 56 VideoSendStream(int num_cpu_cores, |
| 56 ProcessThread* module_process_thread, | 57 ProcessThread* module_process_thread, |
| 57 CallStats* call_stats, | 58 CallStats* call_stats, |
| 58 CongestionController* congestion_controller, | 59 CongestionController* congestion_controller, |
| 59 BitrateAllocator* bitrate_allocator, | 60 BitrateAllocator* bitrate_allocator, |
| 61 SendDelayStats* send_delay_stats, |
| 60 VieRemb* remb, | 62 VieRemb* remb, |
| 61 const VideoSendStream::Config& config, | 63 const VideoSendStream::Config& config, |
| 62 const VideoEncoderConfig& encoder_config, | 64 const VideoEncoderConfig& encoder_config, |
| 63 const std::map<uint32_t, RtpState>& suspended_ssrcs); | 65 const std::map<uint32_t, RtpState>& suspended_ssrcs); |
| 64 | 66 |
| 65 ~VideoSendStream() override; | 67 ~VideoSendStream() override; |
| 66 | 68 |
| 67 void SignalNetworkState(NetworkState state); | 69 void SignalNetworkState(NetworkState state); |
| 68 bool DeliverRtcp(const uint8_t* packet, size_t length); | 70 bool DeliverRtcp(const uint8_t* packet, size_t length); |
| 69 | 71 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 143 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
| 142 // RtpRtcp modules, declared here as they use other members on construction. | 144 // RtpRtcp modules, declared here as they use other members on construction. |
| 143 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 145 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
| 144 PayloadRouter payload_router_; | 146 PayloadRouter payload_router_; |
| 145 VideoCaptureInput input_; | 147 VideoCaptureInput input_; |
| 146 }; | 148 }; |
| 147 } // namespace internal | 149 } // namespace internal |
| 148 } // namespace webrtc | 150 } // namespace webrtc |
| 149 | 151 |
| 150 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ | 152 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ |
| OLD | NEW |