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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc

Issue 3009963002: Add ability to instantiate VideoEncoderSoftwareFallback in VP tests. (Closed)
Patch Set: srte comments 1. Created 3 years, 3 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/modules/video_coding/codecs/test/videoprocessor.h » ('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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void RunTest(int width, 56 void RunTest(int width,
57 int height, 57 int height,
58 int framerate, 58 int framerate,
59 const std::string& filename) { 59 const std::string& filename) {
60 config_.filename = filename; 60 config_.filename = filename;
61 config_.input_filename = ResourcePath(filename, "yuv"); 61 config_.input_filename = ResourcePath(filename, "yuv");
62 config_.output_filename = 62 config_.output_filename =
63 TempFilename(OutputPath(), "plot_videoprocessor_integrationtest"); 63 TempFilename(OutputPath(), "plot_videoprocessor_integrationtest");
64 config_.use_single_core = kUseSingleCore; 64 config_.use_single_core = kUseSingleCore;
65 config_.verbose = true; 65 config_.verbose = true;
66 config_.hw_codec = hw_codec_; 66 config_.hw_encoder = hw_codec_;
67 config_.hw_decoder = hw_codec_;
67 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers, 68 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers,
68 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 69 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
69 kSpatialResizeOn, kResilienceOn, width, height); 70 kSpatialResizeOn, kResilienceOn, width, height);
70 71
71 RateProfile rate_profile; 72 RateProfile rate_profile;
72 SetRateProfile(&rate_profile, 73 SetRateProfile(&rate_profile,
73 0, // update_index 74 0, // update_index
74 bitrate_, framerate, 75 bitrate_, framerate,
75 0); // frame_index_rate_update 76 0); // frame_index_rate_update
76 rate_profile.frame_index_rate_update[1] = kNumFrames + 1; 77 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
(...skipping 30 matching lines...) Expand all
107 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) { 108 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) {
108 RunTest(320, 240, 30, "foreman_320x240"); 109 RunTest(320, 240, 30, "foreman_320x240");
109 } 110 }
110 111
111 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) { 112 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) {
112 RunTest(352, 288, 30, "foreman_cif"); 113 RunTest(352, 288, 30, "foreman_cif");
113 } 114 }
114 115
115 } // namespace test 116 } // namespace test
116 } // namespace webrtc 117 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698