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

Side by Side Diff: webrtc/media/engine/fakewebrtccall.h

Issue 2383493005: Revert of Let ViEEncoder handle resolution changes. (Closed)
Patch Set: Created 4 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/media/engine/constants.h ('k') | webrtc/media/engine/fakewebrtccall.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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 class FakeVideoSendStream final 103 class FakeVideoSendStream final
104 : public webrtc::VideoSendStream, 104 : public webrtc::VideoSendStream,
105 public rtc::VideoSinkInterface<webrtc::VideoFrame> { 105 public rtc::VideoSinkInterface<webrtc::VideoFrame> {
106 public: 106 public:
107 FakeVideoSendStream(webrtc::VideoSendStream::Config config, 107 FakeVideoSendStream(webrtc::VideoSendStream::Config config,
108 webrtc::VideoEncoderConfig encoder_config); 108 webrtc::VideoEncoderConfig encoder_config);
109 ~FakeVideoSendStream() override; 109 ~FakeVideoSendStream() override;
110 const webrtc::VideoSendStream::Config& GetConfig() const; 110 const webrtc::VideoSendStream::Config& GetConfig() const;
111 const webrtc::VideoEncoderConfig& GetEncoderConfig() const; 111 const webrtc::VideoEncoderConfig& GetEncoderConfig() const;
112 const std::vector<webrtc::VideoStream>& GetVideoStreams() const; 112 std::vector<webrtc::VideoStream> GetVideoStreams();
113 113
114 bool IsSending() const; 114 bool IsSending() const;
115 bool GetVp8Settings(webrtc::VideoCodecVP8* settings) const; 115 bool GetVp8Settings(webrtc::VideoCodecVP8* settings) const;
116 bool GetVp9Settings(webrtc::VideoCodecVP9* settings) const; 116 bool GetVp9Settings(webrtc::VideoCodecVP9* settings) const;
117 117
118 int GetNumberOfSwappedFrames() const; 118 int GetNumberOfSwappedFrames() const;
119 int GetLastWidth() const; 119 int GetLastWidth() const;
120 int GetLastHeight() const; 120 int GetLastHeight() const;
121 int64_t GetLastTimestamp() const; 121 int64_t GetLastTimestamp() const;
122 void SetStats(const webrtc::VideoSendStream::Stats& stats); 122 void SetStats(const webrtc::VideoSendStream::Stats& stats);
(...skipping 12 matching lines...) Expand all
135 void Start() override; 135 void Start() override;
136 void Stop() override; 136 void Stop() override;
137 void SetSource( 137 void SetSource(
138 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override; 138 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override;
139 webrtc::VideoSendStream::Stats GetStats() override; 139 webrtc::VideoSendStream::Stats GetStats() override;
140 void ReconfigureVideoEncoder(webrtc::VideoEncoderConfig config) override; 140 void ReconfigureVideoEncoder(webrtc::VideoEncoderConfig config) override;
141 141
142 bool sending_; 142 bool sending_;
143 webrtc::VideoSendStream::Config config_; 143 webrtc::VideoSendStream::Config config_;
144 webrtc::VideoEncoderConfig encoder_config_; 144 webrtc::VideoEncoderConfig encoder_config_;
145 std::vector<webrtc::VideoStream> video_streams_;
146 bool codec_settings_set_; 145 bool codec_settings_set_;
147 union VpxSettings { 146 union VpxSettings {
148 webrtc::VideoCodecVP8 vp8; 147 webrtc::VideoCodecVP8 vp8;
149 webrtc::VideoCodecVP9 vp9; 148 webrtc::VideoCodecVP9 vp9;
150 } vpx_settings_; 149 } vpx_settings_;
151 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_; 150 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_;
152 int num_swapped_frames_; 151 int num_swapped_frames_;
153 webrtc::VideoFrame last_frame_; 152 webrtc::VideoFrame last_frame_;
154 webrtc::VideoSendStream::Stats stats_; 153 webrtc::VideoSendStream::Stats stats_;
155 int num_encoder_reconfigurations_ = 0; 154 int num_encoder_reconfigurations_ = 0;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 std::vector<FakeAudioSendStream*> audio_send_streams_; 258 std::vector<FakeAudioSendStream*> audio_send_streams_;
260 std::vector<FakeVideoReceiveStream*> video_receive_streams_; 259 std::vector<FakeVideoReceiveStream*> video_receive_streams_;
261 std::vector<FakeAudioReceiveStream*> audio_receive_streams_; 260 std::vector<FakeAudioReceiveStream*> audio_receive_streams_;
262 261
263 int num_created_send_streams_; 262 int num_created_send_streams_;
264 int num_created_receive_streams_; 263 int num_created_receive_streams_;
265 }; 264 };
266 265
267 } // namespace cricket 266 } // namespace cricket
268 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ 267 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/constants.h ('k') | webrtc/media/engine/fakewebrtccall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698