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

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

Issue 2716643002: Add framerate to VideoSinkWants and ability to signal on overuse (Closed)
Patch Set: windows warning Created 3 years, 9 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) 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 int num_encoder_reconfigurations() const { 130 int num_encoder_reconfigurations() const {
131 return num_encoder_reconfigurations_; 131 return num_encoder_reconfigurations_;
132 } 132 }
133 133
134 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files, 134 void EnableEncodedFrameRecording(const std::vector<rtc::PlatformFile>& files,
135 size_t byte_limit) override; 135 size_t byte_limit) override;
136 136
137 bool resolution_scaling_enabled() const { 137 bool resolution_scaling_enabled() const {
138 return resolution_scaling_enabled_; 138 return resolution_scaling_enabled_;
139 } 139 }
140 bool framerate_scaling_enabled() const { return framerate_scaling_enalbed_; }
140 void InjectVideoSinkWants(const rtc::VideoSinkWants& wants); 141 void InjectVideoSinkWants(const rtc::VideoSinkWants& wants);
141 142
142 rtc::VideoSourceInterface<webrtc::VideoFrame>* source() const { 143 rtc::VideoSourceInterface<webrtc::VideoFrame>* source() const {
143 return source_; 144 return source_;
144 } 145 }
145 146
146 private: 147 private:
147 // rtc::VideoSinkInterface<VideoFrame> implementation. 148 // rtc::VideoSinkInterface<VideoFrame> implementation.
148 void OnFrame(const webrtc::VideoFrame& frame) override; 149 void OnFrame(const webrtc::VideoFrame& frame) override;
149 150
(...skipping 11 matching lines...) Expand all
161 webrtc::VideoEncoderConfig encoder_config_; 162 webrtc::VideoEncoderConfig encoder_config_;
162 std::vector<webrtc::VideoStream> video_streams_; 163 std::vector<webrtc::VideoStream> video_streams_;
163 rtc::VideoSinkWants sink_wants_; 164 rtc::VideoSinkWants sink_wants_;
164 165
165 bool codec_settings_set_; 166 bool codec_settings_set_;
166 union VpxSettings { 167 union VpxSettings {
167 webrtc::VideoCodecVP8 vp8; 168 webrtc::VideoCodecVP8 vp8;
168 webrtc::VideoCodecVP9 vp9; 169 webrtc::VideoCodecVP9 vp9;
169 } vpx_settings_; 170 } vpx_settings_;
170 bool resolution_scaling_enabled_; 171 bool resolution_scaling_enabled_;
172 bool framerate_scaling_enalbed_;
nisse-webrtc 2017/03/14 09:00:29 Spelling.
sprang_webrtc 2017/03/14 14:15:02 Done.
171 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_; 173 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_;
172 int num_swapped_frames_; 174 int num_swapped_frames_;
173 rtc::Optional<webrtc::VideoFrame> last_frame_; 175 rtc::Optional<webrtc::VideoFrame> last_frame_;
174 webrtc::VideoSendStream::Stats stats_; 176 webrtc::VideoSendStream::Stats stats_;
175 int num_encoder_reconfigurations_ = 0; 177 int num_encoder_reconfigurations_ = 0;
176 }; 178 };
177 179
178 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream { 180 class FakeVideoReceiveStream final : public webrtc::VideoReceiveStream {
179 public: 181 public:
180 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config); 182 explicit FakeVideoReceiveStream(webrtc::VideoReceiveStream::Config config);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 310
309 int num_created_send_streams_; 311 int num_created_send_streams_;
310 int num_created_receive_streams_; 312 int num_created_receive_streams_;
311 313
312 int audio_transport_overhead_; 314 int audio_transport_overhead_;
313 int video_transport_overhead_; 315 int video_transport_overhead_;
314 }; 316 };
315 317
316 } // namespace cricket 318 } // namespace cricket
317 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_ 319 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCCALL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698