| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 "./vpx_config.h" | 10 #include "./vpx_config.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 init_flags_ = VPX_CODEC_USE_PSNR; | 66 init_flags_ = VPX_CODEC_USE_PSNR; |
| 67 | 67 |
| 68 // intentionally changed the dimension for better testing coverage | 68 // intentionally changed the dimension for better testing coverage |
| 69 libvpx_test::I420VideoSource video("hantro_collage_w352h288.yuv", 352, 288, | 69 libvpx_test::I420VideoSource video("hantro_collage_w352h288.yuv", 352, 288, |
| 70 timebase.den, timebase.num, 0, 10); | 70 timebase.den, timebase.num, 0, 10); |
| 71 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 71 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 72 const double psnr_lossless = GetMinPsnr(); | 72 const double psnr_lossless = GetMinPsnr(); |
| 73 EXPECT_GE(psnr_lossless, kMaxPsnr); | 73 EXPECT_GE(psnr_lossless, kMaxPsnr); |
| 74 } | 74 } |
| 75 | 75 |
| 76 #if CONFIG_NON420 | |
| 77 TEST_P(LossLessTest, TestLossLessEncoding444) { | 76 TEST_P(LossLessTest, TestLossLessEncoding444) { |
| 78 libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 10); | 77 libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 10); |
| 79 | 78 |
| 80 cfg_.g_profile = 1; | 79 cfg_.g_profile = 1; |
| 81 cfg_.g_timebase = video.timebase(); | 80 cfg_.g_timebase = video.timebase(); |
| 82 cfg_.rc_target_bitrate = 2000; | 81 cfg_.rc_target_bitrate = 2000; |
| 83 cfg_.g_lag_in_frames = 25; | 82 cfg_.g_lag_in_frames = 25; |
| 84 cfg_.rc_min_quantizer = 0; | 83 cfg_.rc_min_quantizer = 0; |
| 85 cfg_.rc_max_quantizer = 0; | 84 cfg_.rc_max_quantizer = 0; |
| 86 | 85 |
| 87 init_flags_ = VPX_CODEC_USE_PSNR; | 86 init_flags_ = VPX_CODEC_USE_PSNR; |
| 88 | 87 |
| 89 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 88 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 90 const double psnr_lossless = GetMinPsnr(); | 89 const double psnr_lossless = GetMinPsnr(); |
| 91 EXPECT_GE(psnr_lossless, kMaxPsnr); | 90 EXPECT_GE(psnr_lossless, kMaxPsnr); |
| 92 } | 91 } |
| 93 #endif | |
| 94 | 92 |
| 95 VP9_INSTANTIATE_TEST_CASE(LossLessTest, ALL_TEST_MODES); | 93 VP9_INSTANTIATE_TEST_CASE(LossLessTest, ALL_TEST_MODES); |
| 96 } // namespace | 94 } // namespace |
| OLD | NEW |