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/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc

Issue 2999643002: Rename SetProcessParams -> SetTestConfig. (Closed)
Patch Set: Rebase. 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/modules/video_coding/codecs/test/videoprocessor_integrationtest.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 10 matching lines...) Expand all
21 const bool kHwCodec[] = {false}; 21 const bool kHwCodec[] = {false};
22 22
23 // Codec settings. 23 // Codec settings.
24 const bool kUseSingleCore = false; 24 const bool kUseSingleCore = false;
25 const bool kResilienceOn = false; 25 const bool kResilienceOn = false;
26 const int kNumTemporalLayers = 1; 26 const int kNumTemporalLayers = 1;
27 const bool kDenoisingOn = false; 27 const bool kDenoisingOn = false;
28 const bool kErrorConcealmentOn = false; 28 const bool kErrorConcealmentOn = false;
29 const bool kSpatialResizeOn = false; 29 const bool kSpatialResizeOn = false;
30 const bool kFrameDropperOn = false; 30 const bool kFrameDropperOn = false;
31 const int kKeyFrameInterval = -1;
32 31
33 // Test settings. 32 // Test settings.
34 const bool kBatchMode = true; 33 const bool kBatchMode = true;
35 const bool kVerboseLogging = true; 34 const bool kVerboseLogging = true;
36 const float kPacketLoss = 0.0f; 35 const float kPacketLoss = 0.0f;
37 const VisualizationParams kVisualizationParams = { 36 const VisualizationParams kVisualizationParams = {
38 false, // save_encoded_ivf 37 false, // save_encoded_ivf
39 false, // save_decoded_y4m 38 false, // save_decoded_y4m
40 }; 39 };
41 40
(...skipping 20 matching lines...) Expand all
62 // Bitrate and frame rate profile. 61 // Bitrate and frame rate profile.
63 RateProfile rate_profile; 62 RateProfile rate_profile;
64 SetRateProfile(&rate_profile, 63 SetRateProfile(&rate_profile,
65 0, // update_index 64 0, // update_index
66 bitrate_, framerate, 65 bitrate_, framerate,
67 0); // frame_index_rate_update 66 0); // frame_index_rate_update
68 rate_profile.frame_index_rate_update[1] = kNumFrames + 1; 67 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
69 rate_profile.num_frames = kNumFrames; 68 rate_profile.num_frames = kNumFrames;
70 69
71 // Codec/network settings. 70 // Codec/network settings.
72 SetProcessParams(&config_, hw_codec_, kUseSingleCore, kPacketLoss, 71 SetTestConfig(&config_, hw_codec_, kUseSingleCore, kPacketLoss, filename,
73 kKeyFrameInterval, filename, kVerboseLogging, kBatchMode); 72 kVerboseLogging, kBatchMode);
74 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers, 73 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers,
75 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 74 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
76 kSpatialResizeOn, kResilienceOn, width, height); 75 kSpatialResizeOn, kResilienceOn, width, height);
77 76
78 // Use default thresholds for quality (PSNR and SSIM). 77 // Use default thresholds for quality (PSNR and SSIM).
79 QualityThresholds quality_thresholds; 78 QualityThresholds quality_thresholds;
80 79
81 // Use very loose thresholds for rate control, so even poor HW codecs will 80 // Use very loose thresholds for rate control, so even poor HW codecs will
82 // pass the requirements. 81 // pass the requirements.
83 RateControlThresholds rc_thresholds[1]; 82 RateControlThresholds rc_thresholds[1];
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) { 124 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) {
126 RunTest(320, 240, 30, "foreman_320x240"); 125 RunTest(320, 240, 30, "foreman_320x240");
127 } 126 }
128 127
129 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) { 128 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) {
130 RunTest(352, 288, 30, "foreman_cif"); 129 RunTest(352, 288, 30, "foreman_cif");
131 } 130 }
132 131
133 } // namespace test 132 } // namespace test
134 } // namespace webrtc 133 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698