| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |