Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: webrtc/video/video_send_stream.h

Issue 1418613002: ChannelGroup cleanup. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added TODO Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <vector> 15 #include <vector>
16 16
17 #include "webrtc/call.h" 17 #include "webrtc/call.h"
18 #include "webrtc/call/transport_adapter.h" 18 #include "webrtc/call/transport_adapter.h"
19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
20 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" 20 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
21 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" 21 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
22 #include "webrtc/video/encoded_frame_callback_adapter.h" 22 #include "webrtc/video/encoded_frame_callback_adapter.h"
23 #include "webrtc/video/send_statistics_proxy.h" 23 #include "webrtc/video/send_statistics_proxy.h"
24 #include "webrtc/video/video_capture_input.h" 24 #include "webrtc/video/video_capture_input.h"
25 #include "webrtc/video_receive_stream.h" 25 #include "webrtc/video_receive_stream.h"
26 #include "webrtc/video_send_stream.h" 26 #include "webrtc/video_send_stream.h"
27 27
28 namespace webrtc { 28 namespace webrtc {
29 29
30 class CallStats;
30 class ChannelGroup; 31 class ChannelGroup;
32 class EncoderStateFeedback;
31 class ProcessThread; 33 class ProcessThread;
32 class ViEChannel; 34 class ViEChannel;
33 class ViEEncoder; 35 class ViEEncoder;
34 36
35 namespace internal { 37 namespace internal {
36 38
37 class VideoSendStream : public webrtc::VideoSendStream, 39 class VideoSendStream : public webrtc::VideoSendStream,
38 public webrtc::CpuOveruseObserver { 40 public webrtc::CpuOveruseObserver {
39 public: 41 public:
40 VideoSendStream(int num_cpu_cores, 42 VideoSendStream(int num_cpu_cores,
41 ProcessThread* module_process_thread, 43 ProcessThread* module_process_thread,
44 CallStats* call_stats,
42 ChannelGroup* channel_group, 45 ChannelGroup* channel_group,
43 const VideoSendStream::Config& config, 46 const VideoSendStream::Config& config,
44 const VideoEncoderConfig& encoder_config, 47 const VideoEncoderConfig& encoder_config,
45 const std::map<uint32_t, RtpState>& suspended_ssrcs); 48 const std::map<uint32_t, RtpState>& suspended_ssrcs);
46 49
47 ~VideoSendStream() override; 50 ~VideoSendStream() override;
48 51
49 // webrtc::SendStream implementation. 52 // webrtc::SendStream implementation.
50 void Start() override; 53 void Start() override;
51 void Stop() override; 54 void Stop() override;
(...skipping 17 matching lines...) Expand all
69 private: 72 private:
70 bool SetSendCodec(VideoCodec video_codec); 73 bool SetSendCodec(VideoCodec video_codec);
71 void ConfigureSsrcs(); 74 void ConfigureSsrcs();
72 TransportAdapter transport_adapter_; 75 TransportAdapter transport_adapter_;
73 EncodedFrameCallbackAdapter encoded_frame_proxy_; 76 EncodedFrameCallbackAdapter encoded_frame_proxy_;
74 const VideoSendStream::Config config_; 77 const VideoSendStream::Config config_;
75 VideoEncoderConfig encoder_config_; 78 VideoEncoderConfig encoder_config_;
76 std::map<uint32_t, RtpState> suspended_ssrcs_; 79 std::map<uint32_t, RtpState> suspended_ssrcs_;
77 80
78 ProcessThread* const module_process_thread_; 81 ProcessThread* const module_process_thread_;
82 CallStats* const call_stats_;
79 ChannelGroup* const channel_group_; 83 ChannelGroup* const channel_group_;
80 84
81 rtc::scoped_ptr<VideoCaptureInput> input_; 85 rtc::scoped_ptr<VideoCaptureInput> input_;
82 rtc::scoped_ptr<ViEChannel> vie_channel_; 86 rtc::scoped_ptr<ViEChannel> vie_channel_;
83 rtc::scoped_ptr<ViEEncoder> vie_encoder_; 87 rtc::scoped_ptr<ViEEncoder> vie_encoder_;
88 rtc::scoped_ptr<EncoderStateFeedback> encoder_feedback_;
84 89
85 // Used as a workaround to indicate that we should be using the configured 90 // Used as a workaround to indicate that we should be using the configured
86 // start bitrate initially, instead of the one reported by VideoEngine (which 91 // start bitrate initially, instead of the one reported by VideoEngine (which
87 // defaults to too high). 92 // defaults to too high).
88 bool use_config_bitrate_; 93 bool use_config_bitrate_;
89 94
90 SendStatisticsProxy stats_proxy_; 95 SendStatisticsProxy stats_proxy_;
91 }; 96 };
92 } // namespace internal 97 } // namespace internal
93 } // namespace webrtc 98 } // namespace webrtc
94 99
95 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 100 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698