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

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

Issue 2706753005: Make use_single_core option configurable in VideoProcessorIntegrationTests. (Closed)
Patch Set: Created 3 years, 10 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/plot_webrtc_test_logs.py » ('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
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 namespace { 15 namespace {
16 // Codec settings. 16 // Codec settings.
17 const int kBitrates[] = {30, 50, 100, 200, 300, 500, 1000}; 17 const int kBitrates[] = {30, 50, 100, 200, 300, 500, 1000};
18 const int kFps[] = {30}; 18 const int kFps[] = {30};
19 const bool kErrorConcealmentOn = false; 19 const bool kErrorConcealmentOn = false;
20 const bool kDenoisingOn = false; 20 const bool kDenoisingOn = false;
21 const bool kFrameDropperOn = true; 21 const bool kFrameDropperOn = true;
22 const bool kSpatialResizeOn = false; 22 const bool kSpatialResizeOn = false;
23 const VideoCodecType kVideoCodecType[] = {kVideoCodecVP8}; 23 const VideoCodecType kVideoCodecType[] = {kVideoCodecVP8};
24 const bool kHwCodec = false; 24 const bool kHwCodec = false;
25 const bool kUseSingleCore = true;
25 26
26 // Packet loss probability [0.0, 1.0]. 27 // Packet loss probability [0.0, 1.0].
27 const float kPacketLoss = 0.0f; 28 const float kPacketLoss = 0.0f;
28 29
29 const bool kVerboseLogging = true; 30 const bool kVerboseLogging = true;
30 } // namespace 31 } // namespace
31 32
32 // Tests for plotting statistics from logs. 33 // Tests for plotting statistics from logs.
33 class PlotVideoProcessorIntegrationTest 34 class PlotVideoProcessorIntegrationTest
34 : public VideoProcessorIntegrationTest, 35 : public VideoProcessorIntegrationTest,
(...skipping 11 matching lines...) Expand all
46 // Bitrate and frame rate profile. 47 // Bitrate and frame rate profile.
47 RateProfile rate_profile; 48 RateProfile rate_profile;
48 SetRateProfilePars(&rate_profile, 49 SetRateProfilePars(&rate_profile,
49 0, // update_index 50 0, // update_index
50 bitrate_, framerate_, 51 bitrate_, framerate_,
51 0); // frame_index_rate_update 52 0); // frame_index_rate_update
52 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1; 53 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1;
53 rate_profile.num_frames = kNumFramesLong; 54 rate_profile.num_frames = kNumFramesLong;
54 // Codec/network settings. 55 // Codec/network settings.
55 CodecConfigPars process_settings; 56 CodecConfigPars process_settings;
56 SetCodecParameters(&process_settings, codec_type_, kHwCodec, kPacketLoss, 57 SetCodecParameters(
57 -1, // key_frame_interval 58 &process_settings, codec_type_, kHwCodec, kUseSingleCore, kPacketLoss,
58 1, // num_temporal_layers 59 -1, // key_frame_interval
59 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 60 1, // num_temporal_layers
60 kSpatialResizeOn, width, height, filename, 61 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, kSpatialResizeOn,
61 kVerboseLogging); 62 width, height, filename, kVerboseLogging);
62 // Metrics for expected quality (PSNR avg, PSNR min, SSIM avg, SSIM min). 63 // Metrics for expected quality (PSNR avg, PSNR min, SSIM avg, SSIM min).
63 QualityMetrics quality_metrics; 64 QualityMetrics quality_metrics;
64 SetQualityMetrics(&quality_metrics, 15.0, 10.0, 0.2, 0.1); 65 SetQualityMetrics(&quality_metrics, 15.0, 10.0, 0.2, 0.1);
65 // Metrics for rate control. 66 // Metrics for rate control.
66 RateControlMetrics rc_metrics[1]; 67 RateControlMetrics rc_metrics[1];
67 SetRateControlMetrics(rc_metrics, 68 SetRateControlMetrics(rc_metrics,
68 0, // update_index 69 0, // update_index
69 300, // max_num_dropped_frames, 70 300, // max_num_dropped_frames,
70 400, // max_key_frame_size_mismatch 71 400, // max_key_frame_size_mismatch
71 200, // max_delta_frame_size_mismatch 72 200, // max_delta_frame_size_mismatch
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) { 104 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) {
104 RunTest(320, 240, "foreman_320x240"); 105 RunTest(320, 240, "foreman_320x240");
105 } 106 }
106 107
107 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) { 108 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) {
108 RunTest(352, 288, "foreman_cif"); 109 RunTest(352, 288, "foreman_cif");
109 } 110 }
110 111
111 } // namespace test 112 } // namespace test
112 } // namespace webrtc 113 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698