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

Side by Side Diff: modules/video_coding/codecs/test/videoprocessor_integrationtest_parameterized.cc

Issue 3014623002: Adding test for SingleNalUnit mode (Closed)
Patch Set: Addressed review notes on coding style Created 3 years, 2 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 kSpatialResizeOn, kResilienceOn, width, height); 70 kSpatialResizeOn, kResilienceOn, width, height);
71 71
72 RateProfile rate_profile; 72 RateProfile rate_profile;
73 SetRateProfile(&rate_profile, 73 SetRateProfile(&rate_profile,
74 0, // update_index 74 0, // update_index
75 bitrate_, framerate, 75 bitrate_, framerate,
76 0); // frame_index_rate_update 76 0); // frame_index_rate_update
77 rate_profile.frame_index_rate_update[1] = kNumFrames + 1; 77 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
78 rate_profile.num_frames = kNumFrames; 78 rate_profile.num_frames = kNumFrames;
79 79
80 ProcessFramesAndMaybeVerify(rate_profile, nullptr, nullptr, 80 ProcessFramesAndMaybeVerify(rate_profile, nullptr, nullptr, nullptr,
81 &kVisualizationParams); 81 &kVisualizationParams);
82 } 82 }
83 83
84 const int bitrate_; 84 const int bitrate_;
85 const VideoCodecType codec_type_; 85 const VideoCodecType codec_type_;
86 const bool hw_codec_; 86 const bool hw_codec_;
87 }; 87 };
88 88
89 INSTANTIATE_TEST_CASE_P(CodecSettings, 89 INSTANTIATE_TEST_CASE_P(CodecSettings,
90 VideoProcessorIntegrationTestParameterized, 90 VideoProcessorIntegrationTestParameterized,
(...skipping 16 matching lines...) Expand all
107 TEST_P(VideoProcessorIntegrationTestParameterized, Process_320x240_30fps) { 107 TEST_P(VideoProcessorIntegrationTestParameterized, Process_320x240_30fps) {
108 RunTest(320, 240, 30, "foreman_320x240"); 108 RunTest(320, 240, 30, "foreman_320x240");
109 } 109 }
110 110
111 TEST_P(VideoProcessorIntegrationTestParameterized, Process_352x288_30fps) { 111 TEST_P(VideoProcessorIntegrationTestParameterized, Process_352x288_30fps) {
112 RunTest(352, 288, 30, "foreman_cif"); 112 RunTest(352, 288, 30, "foreman_cif");
113 } 113 }
114 114
115 } // namespace test 115 } // namespace test
116 } // namespace webrtc 116 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698