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

Side by Side Diff: webrtc/call/call_perf_tests.cc

Issue 2995433002: Rename ViEEncoder to VideoStreamEncoder. (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | webrtc/media/engine/webrtcvideoengine_unittest.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
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // OnSinkWantsChanged is called when FrameGeneratorCapturer::AddOrUpdateSink 492 // OnSinkWantsChanged is called when FrameGeneratorCapturer::AddOrUpdateSink
493 // is called. 493 // is called.
494 // TODO(sprang): Add integration test for maintain-framerate mode? 494 // TODO(sprang): Add integration test for maintain-framerate mode?
495 void OnSinkWantsChanged(rtc::VideoSinkInterface<VideoFrame>* sink, 495 void OnSinkWantsChanged(rtc::VideoSinkInterface<VideoFrame>* sink,
496 const rtc::VideoSinkWants& wants) override { 496 const rtc::VideoSinkWants& wants) override {
497 // First expect CPU overuse. Then expect CPU underuse when the encoder 497 // First expect CPU overuse. Then expect CPU underuse when the encoder
498 // delay has been decreased. 498 // delay has been decreased.
499 switch (test_phase_) { 499 switch (test_phase_) {
500 case TestPhase::kStart: 500 case TestPhase::kStart:
501 if (wants.max_pixel_count < std::numeric_limits<int>::max()) { 501 if (wants.max_pixel_count < std::numeric_limits<int>::max()) {
502 // On adapting down, ViEEncoder::VideoSourceProxy will set only the 502 // On adapting down, VideoStreamEncoder::VideoSourceProxy will set
503 // max pixel count, leaving the target unset. 503 // only the max pixel count, leaving the target unset.
504 test_phase_ = TestPhase::kAdaptedDown; 504 test_phase_ = TestPhase::kAdaptedDown;
505 } else { 505 } else {
506 ADD_FAILURE() << "Got unexpected adaptation request, max res = " 506 ADD_FAILURE() << "Got unexpected adaptation request, max res = "
507 << wants.max_pixel_count << ", target res = " 507 << wants.max_pixel_count << ", target res = "
508 << wants.target_pixel_count.value_or(-1) 508 << wants.target_pixel_count.value_or(-1)
509 << ", max fps = " << wants.max_framerate_fps; 509 << ", max fps = " << wants.max_framerate_fps;
510 } 510 }
511 break; 511 break;
512 case TestPhase::kAdaptedDown: 512 case TestPhase::kAdaptedDown:
513 // On adapting up, the adaptation counter will again be at zero, and 513 // On adapting up, the adaptation counter will again be at zero, and
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 uint32_t last_set_bitrate_kbps_; 757 uint32_t last_set_bitrate_kbps_;
758 VideoSendStream* send_stream_; 758 VideoSendStream* send_stream_;
759 test::FrameGeneratorCapturer* frame_generator_; 759 test::FrameGeneratorCapturer* frame_generator_;
760 VideoEncoderConfig encoder_config_; 760 VideoEncoderConfig encoder_config_;
761 } test; 761 } test;
762 762
763 RunBaseTest(&test); 763 RunBaseTest(&test);
764 } 764 }
765 765
766 } // namespace webrtc 766 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698