OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Encode 4 column tiles. | 68 // Encode 4 column tiles. |
69 encoder->Control(VP9E_SET_TILE_COLUMNS, tiles_); | 69 encoder->Control(VP9E_SET_TILE_COLUMNS, tiles_); |
70 encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_); | 70 encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_); |
71 if (encoding_mode_ != ::libvpx_test::kRealTime) { | 71 if (encoding_mode_ != ::libvpx_test::kRealTime) { |
72 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1); | 72 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1); |
73 encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7); | 73 encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7); |
74 encoder->Control(VP8E_SET_ARNR_STRENGTH, 5); | 74 encoder->Control(VP8E_SET_ARNR_STRENGTH, 5); |
75 encoder->Control(VP8E_SET_ARNR_TYPE, 3); | 75 encoder->Control(VP8E_SET_ARNR_TYPE, 3); |
76 } else { | 76 } else { |
77 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 0); | 77 encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 0); |
| 78 encoder->Control(VP9E_SET_AQ_MODE, 3); |
78 } | 79 } |
79 encoder_initialized_ = true; | 80 encoder_initialized_ = true; |
80 } | 81 } |
81 } | 82 } |
82 | 83 |
83 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { | 84 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { |
84 const vpx_codec_err_t res = decoder_->DecodeFrame( | 85 const vpx_codec_err_t res = decoder_->DecodeFrame( |
85 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); | 86 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); |
86 if (res != VPX_CODEC_OK) { | 87 if (res != VPX_CODEC_OK) { |
87 abort_ = true; | 88 abort_ = true; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Compare to check if two vectors are equal. | 128 // Compare to check if two vectors are equal. |
128 ASSERT_EQ(single_thr_md5, multi_thr_md5); | 129 ASSERT_EQ(single_thr_md5, multi_thr_md5); |
129 } | 130 } |
130 | 131 |
131 VP9_INSTANTIATE_TEST_CASE( | 132 VP9_INSTANTIATE_TEST_CASE( |
132 VP9EncoderThreadTest, | 133 VP9EncoderThreadTest, |
133 ::testing::Values(::libvpx_test::kTwoPassGood, ::libvpx_test::kOnePassGood, | 134 ::testing::Values(::libvpx_test::kTwoPassGood, ::libvpx_test::kOnePassGood, |
134 ::libvpx_test::kRealTime), | 135 ::libvpx_test::kRealTime), |
135 ::testing::Range(1, 9)); | 136 ::testing::Range(1, 9)); |
136 } // namespace | 137 } // namespace |
OLD | NEW |