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

Side by Side Diff: webrtc/test/call_test.cc

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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock, 279 void CallTest::CreateFrameGeneratorCapturerWithDrift(Clock* clock,
280 float speed, 280 float speed,
281 int framerate, 281 int framerate,
282 int width, 282 int width,
283 int height) { 283 int height) {
284 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create( 284 frame_generator_capturer_.reset(test::FrameGeneratorCapturer::Create(
285 width, height, framerate * speed, clock)); 285 width, height, framerate * speed, clock));
286 video_send_stream_->SetSource( 286 video_send_stream_->SetSource(
287 frame_generator_capturer_.get(), 287 frame_generator_capturer_.get(),
288 VideoSendStream::DegradationPreference::kBalanced); 288 VideoSendStream::DegradationPreference::kMaintainFramerate);
289 } 289 }
290 290
291 void CallTest::CreateFrameGeneratorCapturer(int framerate, 291 void CallTest::CreateFrameGeneratorCapturer(int framerate,
292 int width, 292 int width,
293 int height) { 293 int height) {
294 frame_generator_capturer_.reset( 294 frame_generator_capturer_.reset(
295 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_)); 295 test::FrameGeneratorCapturer::Create(width, height, framerate, clock_));
296 video_send_stream_->SetSource( 296 video_send_stream_->SetSource(
297 frame_generator_capturer_.get(), 297 frame_generator_capturer_.get(),
298 VideoSendStream::DegradationPreference::kBalanced); 298 VideoSendStream::DegradationPreference::kMaintainFramerate);
299 } 299 }
300 300
301 void CallTest::CreateFakeAudioDevices() { 301 void CallTest::CreateFakeAudioDevices() {
302 fake_send_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256)); 302 fake_send_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256));
303 fake_recv_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256)); 303 fake_recv_audio_device_.reset(new FakeAudioDevice(1.f, 48000, 256));
304 } 304 }
305 305
306 void CallTest::CreateVideoStreams() { 306 void CallTest::CreateVideoStreams() {
307 RTC_DCHECK(video_send_stream_ == nullptr); 307 RTC_DCHECK(video_send_stream_ == nullptr);
308 RTC_DCHECK(video_receive_streams_.empty()); 308 RTC_DCHECK(video_receive_streams_.empty());
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { 496 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) {
497 } 497 }
498 498
499 bool EndToEndTest::ShouldCreateReceivers() const { 499 bool EndToEndTest::ShouldCreateReceivers() const {
500 return true; 500 return true;
501 } 501 }
502 502
503 } // namespace test 503 } // namespace test
504 } // namespace webrtc 504 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698