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

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

Issue 3005593002: Delete batch mode from VideoProcessorIntegrationTest. (Closed)
Patch Set: Rebase. 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 12 matching lines...) Expand all
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 31
32 // Test settings. 32 // Test settings.
33 const bool kBatchMode = true;
34 const bool kVerboseLogging = true; 33 const bool kVerboseLogging = true;
35 const float kPacketLoss = 0.0f; 34 const float kPacketLoss = 0.0f;
36 const VisualizationParams kVisualizationParams = { 35 const VisualizationParams kVisualizationParams = {
37 false, // save_encoded_ivf 36 false, // save_encoded_ivf
38 false, // save_decoded_y4m 37 false, // save_decoded_y4m
39 }; 38 };
40 39
41 const int kNumFrames = 300; 40 const int kNumFrames = 300;
42 41
43 } // namespace 42 } // namespace
44 43
45 // Tests for plotting statistics from logs. 44 // Tests for plotting statistics from logs.
46 class PlotVideoProcessorIntegrationTest 45 class PlotVideoProcessorIntegrationTest
47 : public VideoProcessorIntegrationTest, 46 : public VideoProcessorIntegrationTest,
48 public ::testing::WithParamInterface< 47 public ::testing::WithParamInterface<
49 ::testing::tuple<int, VideoCodecType, bool>> { 48 ::testing::tuple<int, VideoCodecType, bool>> {
50 protected: 49 protected:
51 PlotVideoProcessorIntegrationTest() 50 PlotVideoProcessorIntegrationTest()
52 : bitrate_(::testing::get<0>(GetParam())), 51 : bitrate_(::testing::get<0>(GetParam())),
53 codec_type_(::testing::get<1>(GetParam())), 52 codec_type_(::testing::get<1>(GetParam())),
54 hw_codec_(::testing::get<2>(GetParam())) {} 53 hw_codec_(::testing::get<2>(GetParam())) {}
55 ~PlotVideoProcessorIntegrationTest() override = default; 54 ~PlotVideoProcessorIntegrationTest() override = default;
56 55
57 void RunTest(int width, 56 void RunTest(int width,
58 int height, 57 int height,
59 int framerate, 58 int framerate,
60 const std::string& filename) { 59 const std::string& filename) {
61 SetTestConfig(&config_, hw_codec_, kUseSingleCore, kPacketLoss, filename, 60 SetTestConfig(&config_, hw_codec_, kUseSingleCore, kPacketLoss, filename,
62 kVerboseLogging, kBatchMode); 61 kVerboseLogging);
63 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers, 62 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers,
64 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 63 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
65 kSpatialResizeOn, kResilienceOn, width, height); 64 kSpatialResizeOn, kResilienceOn, width, height);
66 65
67 RateProfile rate_profile; 66 RateProfile rate_profile;
68 SetRateProfile(&rate_profile, 67 SetRateProfile(&rate_profile,
69 0, // update_index 68 0, // update_index
70 bitrate_, framerate, 69 bitrate_, framerate,
71 0); // frame_index_rate_update 70 0); // frame_index_rate_update
72 rate_profile.frame_index_rate_update[1] = kNumFrames + 1; 71 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
(...skipping 30 matching lines...) Expand all
103 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) { 102 TEST_P(PlotVideoProcessorIntegrationTest, Process_320x240_30fps) {
104 RunTest(320, 240, 30, "foreman_320x240"); 103 RunTest(320, 240, 30, "foreman_320x240");
105 } 104 }
106 105
107 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) { 106 TEST_P(PlotVideoProcessorIntegrationTest, Process_352x288_30fps) {
108 RunTest(352, 288, 30, "foreman_cif"); 107 RunTest(352, 288, 30, "foreman_cif");
109 } 108 }
110 109
111 } // namespace test 110 } // namespace test
112 } // namespace webrtc 111 } // 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