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

Side by Side Diff: source/libvpx/test/encode_test_driver.h

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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 | « source/libvpx/test/dct32x32_test.cc ('k') | source/libvpx/test/encode_test_driver.cc » ('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) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebM 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 #ifndef TEST_ENCODE_TEST_DRIVER_H_ 10 #ifndef TEST_ENCODE_TEST_DRIVER_H_
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // 176 //
177 // This class is a mixin which provides the main loop common to all 177 // This class is a mixin which provides the main loop common to all
178 // encoder tests. It provides hooks which can be overridden by subclasses 178 // encoder tests. It provides hooks which can be overridden by subclasses
179 // to implement each test's specific behavior, while centralizing the bulk 179 // to implement each test's specific behavior, while centralizing the bulk
180 // of the boilerplate. Note that it doesn't inherit the gtest testing 180 // of the boilerplate. Note that it doesn't inherit the gtest testing
181 // classes directly, so that tests can be parameterized differently. 181 // classes directly, so that tests can be parameterized differently.
182 class EncoderTest { 182 class EncoderTest {
183 protected: 183 protected:
184 explicit EncoderTest(const CodecFactory *codec) 184 explicit EncoderTest(const CodecFactory *codec)
185 : codec_(codec), abort_(false), init_flags_(0), frame_flags_(0), 185 : codec_(codec), abort_(false), init_flags_(0), frame_flags_(0),
186 last_pts_(0) {} 186 last_pts_(0) {
187 // Default to 1 thread.
188 cfg_.g_threads = 1;
189 }
187 190
188 virtual ~EncoderTest() {} 191 virtual ~EncoderTest() {}
189 192
190 // Initialize the cfg_ member with the default configuration. 193 // Initialize the cfg_ member with the default configuration.
191 void InitializeConfig(); 194 void InitializeConfig();
192 195
193 // Map the TestMode enum to the deadline_ and passes_ variables. 196 // Map the TestMode enum to the deadline_ and passes_ variables.
194 void SetMode(TestMode mode); 197 void SetMode(TestMode mode);
195 198
196 // Set encoder flag. 199 // Set encoder flag.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 unsigned long deadline_; 259 unsigned long deadline_;
257 TwopassStatsStore stats_; 260 TwopassStatsStore stats_;
258 unsigned long init_flags_; 261 unsigned long init_flags_;
259 unsigned long frame_flags_; 262 unsigned long frame_flags_;
260 vpx_codec_pts_t last_pts_; 263 vpx_codec_pts_t last_pts_;
261 }; 264 };
262 265
263 } // namespace libvpx_test 266 } // namespace libvpx_test
264 267
265 #endif // TEST_ENCODE_TEST_DRIVER_H_ 268 #endif // TEST_ENCODE_TEST_DRIVER_H_
OLDNEW
« no previous file with comments | « source/libvpx/test/dct32x32_test.cc ('k') | source/libvpx/test/encode_test_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698