| 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 12 matching lines...) Expand all Loading... |
| 23 BordersTest() : EncoderTest(GET_PARAM(0)) {} | 23 BordersTest() : EncoderTest(GET_PARAM(0)) {} |
| 24 | 24 |
| 25 virtual void SetUp() { | 25 virtual void SetUp() { |
| 26 InitializeConfig(); | 26 InitializeConfig(); |
| 27 SetMode(GET_PARAM(1)); | 27 SetMode(GET_PARAM(1)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video, | 30 virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video, |
| 31 ::libvpx_test::Encoder *encoder) { | 31 ::libvpx_test::Encoder *encoder) { |
| 32 if (video->frame() == 1) { | 32 if (video->frame() == 1) { |
| 33 encoder->Control(VP8E_SET_CPUUSED, 0); | 33 encoder->Control(VP8E_SET_CPUUSED, 1); |
| 34 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1); | 34 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1); |
| 35 encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7); | 35 encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7); |
| 36 encoder->Control(VP8E_SET_ARNR_STRENGTH, 5); | 36 encoder->Control(VP8E_SET_ARNR_STRENGTH, 5); |
| 37 encoder->Control(VP8E_SET_ARNR_TYPE, 3); | 37 encoder->Control(VP8E_SET_ARNR_TYPE, 3); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { | 41 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { |
| 42 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { | 42 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) { |
| 43 } | 43 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", 208, 144, 30, 1, 0, | 74 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", 208, 144, 30, 1, 0, |
| 75 40); | 75 40); |
| 76 | 76 |
| 77 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 77 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 78 } | 78 } |
| 79 | 79 |
| 80 VP9_INSTANTIATE_TEST_CASE(BordersTest, ::testing::Values( | 80 VP9_INSTANTIATE_TEST_CASE(BordersTest, ::testing::Values( |
| 81 ::libvpx_test::kTwoPassGood)); | 81 ::libvpx_test::kTwoPassGood)); |
| 82 } // namespace | 82 } // namespace |
| OLD | NEW |