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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 EXPECT_EQ(VPX_CODEC_OK, res_dec) << decoder->DecodeError(); | 156 EXPECT_EQ(VPX_CODEC_OK, res_dec) << decoder->DecodeError(); |
157 return VPX_CODEC_OK == res_dec; | 157 return VPX_CODEC_OK == res_dec; |
158 } | 158 } |
159 | 159 |
160 EncodePerfTestVideo test_video_; | 160 EncodePerfTestVideo test_video_; |
161 | 161 |
162 private: | 162 private: |
163 EncodeParameters encode_parms; | 163 EncodeParameters encode_parms; |
164 }; | 164 }; |
165 | 165 |
166 // TODO(hkuang): This test conflicts with frame parallel decode. So disable it | 166 TEST_P(Vp9EncoderParmsGetToDecoder, BitstreamParms) { |
167 // for now until fix. | |
168 TEST_P(Vp9EncoderParmsGetToDecoder, DISABLED_BitstreamParms) { | |
169 init_flags_ = VPX_CODEC_USE_PSNR; | 167 init_flags_ = VPX_CODEC_USE_PSNR; |
170 | 168 |
171 libvpx_test::VideoSource *video; | 169 libvpx_test::VideoSource *video; |
172 if (is_extension_y4m(test_video_.name)) { | 170 if (is_extension_y4m(test_video_.name)) { |
173 video = new libvpx_test::Y4mVideoSource(test_video_.name, | 171 video = new libvpx_test::Y4mVideoSource(test_video_.name, |
174 0, test_video_.frames); | 172 0, test_video_.frames); |
175 } else { | 173 } else { |
176 video = new libvpx_test::YUVVideoSource(test_video_.name, | 174 video = new libvpx_test::YUVVideoSource(test_video_.name, |
177 VPX_IMG_FMT_I420, | 175 VPX_IMG_FMT_I420, |
178 test_video_.width, | 176 test_video_.width, |
179 test_video_.height, | 177 test_video_.height, |
180 kFramerate, 1, 0, | 178 kFramerate, 1, 0, |
181 test_video_.frames); | 179 test_video_.frames); |
182 } | 180 } |
183 | 181 |
184 ASSERT_NO_FATAL_FAILURE(RunLoop(video)); | 182 ASSERT_NO_FATAL_FAILURE(RunLoop(video)); |
185 delete(video); | 183 delete(video); |
186 } | 184 } |
187 | 185 |
188 VP9_INSTANTIATE_TEST_CASE( | 186 VP9_INSTANTIATE_TEST_CASE( |
189 Vp9EncoderParmsGetToDecoder, | 187 Vp9EncoderParmsGetToDecoder, |
190 ::testing::ValuesIn(kVP9EncodeParameterSet), | 188 ::testing::ValuesIn(kVP9EncodeParameterSet), |
191 ::testing::ValuesIn(kVP9EncodePerfTestVectors)); | 189 ::testing::ValuesIn(kVP9EncodePerfTestVectors)); |
192 | 190 |
193 } // namespace | 191 } // namespace |
OLD | NEW |