Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: source/libvpx/test/external_frame_buffer_test.cc

Issue 554673004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/encode_test_driver.cc ('k') | source/libvpx/test/fdct4x4_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « source/libvpx/test/encode_test_driver.cc ('k') | source/libvpx/test/fdct4x4_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698