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

Side by Side Diff: source/libvpx/test/resize_test.cc

Issue 996503002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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/libs.mk ('k') | source/libvpx/test/test-data.mk » ('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 #include <climits> 10 #include <climits>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 protected: 353 protected:
354 virtual void Next() { 354 virtual void Next() {
355 ++frame_; 355 ++frame_;
356 SetImageFormat(CspForFrameNumber(frame_)); 356 SetImageFormat(CspForFrameNumber(frame_));
357 FillFrame(); 357 FillFrame();
358 } 358 }
359 }; 359 };
360 360
361 TEST_P(ResizeCspTest, TestResizeCspWorks) { 361 TEST_P(ResizeCspTest, TestResizeCspWorks) {
362 ResizingCspVideoSource video; 362 ResizingCspVideoSource video;
363 init_flags_ = VPX_CODEC_USE_PSNR;
363 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = 48; 364 cfg_.rc_min_quantizer = cfg_.rc_max_quantizer = 48;
364 cfg_.g_lag_in_frames = 0; 365 cfg_.g_lag_in_frames = 0;
365 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); 366 ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
366 } 367 }
367 368
368 VP8_INSTANTIATE_TEST_CASE(ResizeTest, ONE_PASS_TEST_MODES); 369 VP8_INSTANTIATE_TEST_CASE(ResizeTest, ONE_PASS_TEST_MODES);
369 VP9_INSTANTIATE_TEST_CASE(ResizeTest, 370 VP9_INSTANTIATE_TEST_CASE(ResizeTest,
370 ::testing::Values(::libvpx_test::kRealTime)); 371 ::testing::Values(::libvpx_test::kRealTime));
371 VP9_INSTANTIATE_TEST_CASE(ResizeInternalTest, 372 VP9_INSTANTIATE_TEST_CASE(ResizeInternalTest,
372 ::testing::Values(::libvpx_test::kOnePassBest)); 373 ::testing::Values(::libvpx_test::kOnePassBest));
373 VP9_INSTANTIATE_TEST_CASE(ResizeCspTest, 374 VP9_INSTANTIATE_TEST_CASE(ResizeCspTest,
374 ::testing::Values(::libvpx_test::kRealTime)); 375 ::testing::Values(::libvpx_test::kRealTime));
375 } // namespace 376 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/libs.mk ('k') | source/libvpx/test/test-data.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698