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

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

Issue 2697583002: Style fixes: VideoProcessor and corresponding integration test. (Closed)
Patch Set: Fix compile for plot_videoprocessor_integrationtest.cc 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
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 30 matching lines...) Expand all
41 41
42 virtual ~PlotVideoProcessorIntegrationTest() {} 42 virtual ~PlotVideoProcessorIntegrationTest() {}
43 43
44 void RunTest(int width, int height, const std::string& filename) { 44 void RunTest(int width, int height, const std::string& filename) {
45 // Bitrate and frame rate profile. 45 // Bitrate and frame rate profile.
46 RateProfile rate_profile; 46 RateProfile rate_profile;
47 SetRateProfilePars(&rate_profile, 47 SetRateProfilePars(&rate_profile,
48 0, // update_index 48 0, // update_index
49 bitrate_, framerate_, 49 bitrate_, framerate_,
50 0); // frame_index_rate_update 50 0); // frame_index_rate_update
51 rate_profile.frame_index_rate_update[1] = kNbrFramesLong + 1; 51 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1;
52 rate_profile.num_frames = kNbrFramesLong; 52 rate_profile.num_frames = kNumFramesLong;
53 // Codec/network settings. 53 // Codec/network settings.
54 CodecConfigPars process_settings; 54 CodecConfigPars process_settings;
55 SetCodecParameters(&process_settings, codec_type_, kPacketLoss, 55 SetCodecParameters(&process_settings, codec_type_, kPacketLoss,
56 -1, // key_frame_interval 56 -1, // key_frame_interval
57 1, // num_temporal_layers 57 1, // num_temporal_layers
58 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, 58 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
59 kSpatialResizeOn, width, height, filename, 59 kSpatialResizeOn, width, height, filename,
60 kVerboseLogging); 60 kVerboseLogging);
61 // Metrics for expected quality (PSNR avg, PSNR min, SSIM avg, SSIM min). 61 // Metrics for expected quality (PSNR avg, PSNR min, SSIM avg, SSIM min).
62 QualityMetrics quality_metrics; 62 QualityMetrics quality_metrics;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 TEST_P(PlotVideoProcessorIntegrationTest, ProcessQVga) { 102 TEST_P(PlotVideoProcessorIntegrationTest, ProcessQVga) {
103 RunTest(320, 240, "foreman_320x240"); 103 RunTest(320, 240, "foreman_320x240");
104 } 104 }
105 105
106 TEST_P(PlotVideoProcessorIntegrationTest, ProcessCif) { 106 TEST_P(PlotVideoProcessorIntegrationTest, ProcessCif) {
107 RunTest(352, 288, "foreman_cif"); 107 RunTest(352, 288, "foreman_cif");
108 } 108 }
109 109
110 } // namespace test 110 } // namespace test
111 } // namespace webrtc 111 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698