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

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

Issue 2999643002: Rename SetProcessParams -> SetTestConfig. (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
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
11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest .h" 11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest .h"
12 12
13 namespace webrtc { 13 namespace webrtc {
14 namespace test { 14 namespace test {
15 15
16 namespace { 16 namespace {
17 // Codec settings. 17 // Codec settings.
18 const int kBitrates[] = {30, 50, 100, 200, 300, 500, 1000}; 18 const int kBitrates[] = {30, 50, 100, 200, 300, 500, 1000};
19 const int kFps[] = {30}; 19 const int kFps[] = {30};
20 const int kNumTemporalLayers = 1; 20 const int kNumTemporalLayers = 1;
21 const int kKeyFrameInterval = -1;
22 const bool kErrorConcealmentOn = false; 21 const bool kErrorConcealmentOn = false;
23 const bool kDenoisingOn = false; 22 const bool kDenoisingOn = false;
24 const bool kFrameDropperOn = true; 23 const bool kFrameDropperOn = true;
25 const bool kSpatialResizeOn = false; 24 const bool kSpatialResizeOn = false;
26 const bool kResilienceOn = false; 25 const bool kResilienceOn = false;
27 const VideoCodecType kVideoCodecType[] = {kVideoCodecVP8}; 26 const VideoCodecType kVideoCodecType[] = {kVideoCodecVP8};
28 const bool kHwCodec = false; 27 const bool kHwCodec = false;
29 const bool kUseSingleCore = true; 28 const bool kUseSingleCore = true;
30 29
31 // Test settings. 30 // Test settings.
(...skipping 29 matching lines...) Expand all
61 // Bitrate and frame rate profile. 60 // Bitrate and frame rate profile.
62 RateProfile rate_profile; 61 RateProfile rate_profile;
63 SetRateProfile(&rate_profile, 62 SetRateProfile(&rate_profile,
64 0, // update_index 63 0, // update_index
65 bitrate_, framerate_, 64 bitrate_, framerate_,
66 0); // frame_index_rate_update 65 0); // frame_index_rate_update
67 rate_profile.frame_index_rate_update[1] = kNumFrames + 1; 66 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
68 rate_profile.num_frames = kNumFrames; 67 rate_profile.num_frames = kNumFrames;
69 68
70 // Codec/network settings. 69 // Codec/network settings.
71 SetProcessParams(&config_, kHwCodec, kUseSingleCore, kPacketLoss, 70 SetTestConfig(&config_, kHwCodec, kUseSingleCore, kPacketLoss, filename,
72 kKeyFrameInterval, filename, kVerboseLogging, kBatchMode); 71 kVerboseLogging, kBatchMode);
73 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers, 72 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers,
74 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 73 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
75 kSpatialResizeOn, kResilienceOn, width, height); 74 kSpatialResizeOn, kResilienceOn, width, height);
76 75
77 // Use default thresholds for quality (PSNR and SSIM). 76 // Use default thresholds for quality (PSNR and SSIM).
78 QualityThresholds quality_thresholds; 77 QualityThresholds quality_thresholds;
79 78
80 // Use very loose thresholds for rate control, so even poor HW codecs will 79 // Use very loose thresholds for rate control, so even poor HW codecs will
81 // pass the requirements. 80 // pass the requirements.
82 RateControlThresholds rc_thresholds[1]; 81 RateControlThresholds rc_thresholds[1];
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) { 123 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) {
125 RunTest(320, 240, "foreman_320x240"); 124 RunTest(320, 240, "foreman_320x240");
126 } 125 }
127 126
128 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) { 127 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) {
129 RunTest(352, 288, "foreman_cif"); 128 RunTest(352, 288, "foreman_cif");
130 } 129 }
131 130
132 } // namespace test 131 } // namespace test
133 } // namespace webrtc 132 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698