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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 : video_(NULL), | 278 : video_(NULL), |
279 decoder_(NULL), | 279 decoder_(NULL), |
280 num_buffers_(0) {} | 280 num_buffers_(0) {} |
281 | 281 |
282 virtual void SetUp() { | 282 virtual void SetUp() { |
283 video_ = new libvpx_test::WebMVideoSource(kVP9TestFile); | 283 video_ = new libvpx_test::WebMVideoSource(kVP9TestFile); |
284 ASSERT_TRUE(video_ != NULL); | 284 ASSERT_TRUE(video_ != NULL); |
285 video_->Init(); | 285 video_->Init(); |
286 video_->Begin(); | 286 video_->Begin(); |
287 | 287 |
288 vpx_codec_dec_cfg_t cfg = {0}; | 288 vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t(); |
289 decoder_ = new libvpx_test::VP9Decoder(cfg, 0); | 289 decoder_ = new libvpx_test::VP9Decoder(cfg, 0); |
290 ASSERT_TRUE(decoder_ != NULL); | 290 ASSERT_TRUE(decoder_ != NULL); |
291 } | 291 } |
292 | 292 |
293 virtual void TearDown() { | 293 virtual void TearDown() { |
294 delete decoder_; | 294 delete decoder_; |
295 delete video_; | 295 delete video_; |
296 } | 296 } |
297 | 297 |
298 // Passes the external frame buffer information to libvpx. | 298 // Passes the external frame buffer information to libvpx. |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 SetFrameBufferFunctions( | 472 SetFrameBufferFunctions( |
473 num_buffers, get_vp9_frame_buffer, release_vp9_frame_buffer)); | 473 num_buffers, get_vp9_frame_buffer, release_vp9_frame_buffer)); |
474 } | 474 } |
475 #endif // CONFIG_WEBM_IO | 475 #endif // CONFIG_WEBM_IO |
476 | 476 |
477 VP9_INSTANTIATE_TEST_CASE(ExternalFrameBufferMD5Test, | 477 VP9_INSTANTIATE_TEST_CASE(ExternalFrameBufferMD5Test, |
478 ::testing::ValuesIn(libvpx_test::kVP9TestVectors, | 478 ::testing::ValuesIn(libvpx_test::kVP9TestVectors, |
479 libvpx_test::kVP9TestVectors + | 479 libvpx_test::kVP9TestVectors + |
480 libvpx_test::kNumVP9TestVectors)); | 480 libvpx_test::kNumVP9TestVectors)); |
481 } // namespace | 481 } // namespace |
OLD | NEW |