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

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

Issue 1654913002: Untangle ViEChannel and ViEEncoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: stefan@ feedback Created 4 years, 10 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
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/include/rtp_rtcp_defines.h" 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
21 #include "webrtc/video/encoded_frame_callback_adapter.h" 21 #include "webrtc/video/encoded_frame_callback_adapter.h"
22 #include "webrtc/video/payload_router.h"
22 #include "webrtc/video/send_statistics_proxy.h" 23 #include "webrtc/video/send_statistics_proxy.h"
23 #include "webrtc/video/video_capture_input.h" 24 #include "webrtc/video/video_capture_input.h"
24 #include "webrtc/video_receive_stream.h" 25 #include "webrtc/video_receive_stream.h"
25 #include "webrtc/video_send_stream.h" 26 #include "webrtc/video_send_stream.h"
26 27
27 namespace webrtc { 28 namespace webrtc {
28 29
29 class BitrateAllocator; 30 class BitrateAllocator;
30 class CallStats; 31 class CallStats;
31 class CongestionController; 32 class CongestionController;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool SetSendCodec(VideoCodec video_codec); 76 bool SetSendCodec(VideoCodec video_codec);
76 void ConfigureSsrcs(); 77 void ConfigureSsrcs();
77 78
78 SendStatisticsProxy stats_proxy_; 79 SendStatisticsProxy stats_proxy_;
79 TransportAdapter transport_adapter_; 80 TransportAdapter transport_adapter_;
80 EncodedFrameCallbackAdapter encoded_frame_proxy_; 81 EncodedFrameCallbackAdapter encoded_frame_proxy_;
81 const VideoSendStream::Config config_; 82 const VideoSendStream::Config config_;
82 VideoEncoderConfig encoder_config_; 83 VideoEncoderConfig encoder_config_;
83 std::map<uint32_t, RtpState> suspended_ssrcs_; 84 std::map<uint32_t, RtpState> suspended_ssrcs_;
84 85
85 ProcessThread* const module_process_thread_;
86 CallStats* const call_stats_; 86 CallStats* const call_stats_;
87 CongestionController* const congestion_controller_; 87 CongestionController* const congestion_controller_;
88 88
89 rtc::scoped_ptr<VideoCaptureInput> input_; 89 rtc::scoped_ptr<VideoCaptureInput> input_;
90 PayloadRouter payload_router_;
91 rtc::scoped_ptr<ViEEncoder> vie_encoder_;
90 rtc::scoped_ptr<ViEChannel> vie_channel_; 92 rtc::scoped_ptr<ViEChannel> vie_channel_;
91 rtc::scoped_ptr<ViEEncoder> vie_encoder_; 93 // TODO(pbos): Make proper const.
94 // const after construction.
95 VideoCodingModule* vcm_;
92 rtc::scoped_ptr<EncoderStateFeedback> encoder_feedback_; 96 rtc::scoped_ptr<EncoderStateFeedback> encoder_feedback_;
93 97
94 // Used as a workaround to indicate that we should be using the configured 98 // Used as a workaround to indicate that we should be using the configured
95 // start bitrate initially, instead of the one reported by VideoEngine (which 99 // start bitrate initially, instead of the one reported by VideoEngine (which
96 // defaults to too high). 100 // defaults to too high).
97 bool use_config_bitrate_; 101 bool use_config_bitrate_;
98 }; 102 };
99 } // namespace internal 103 } // namespace internal
100 } // namespace webrtc 104 } // namespace webrtc
101 105
102 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 106 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698