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

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

Issue 17451020: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 6 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/idct_test.cc ('k') | source/libvpx/test/pp_filter_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) 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 10
11 11
12 #include <string.h> 12 #include <string.h>
13 #include "test/acm_random.h" 13 #include "test/acm_random.h"
14 #include "test/clear_system_state.h"
14 #include "test/register_state_check.h" 15 #include "test/register_state_check.h"
15 #include "third_party/googletest/src/include/gtest/gtest.h" 16 #include "third_party/googletest/src/include/gtest/gtest.h"
16 extern "C" { 17 extern "C" {
17 #include "vpx_config.h" 18 #include "vpx_config.h"
18 #include "vp8_rtcd.h" 19 #include "vp8_rtcd.h"
19 #include "vp8/common/blockd.h" 20 #include "vp8/common/blockd.h"
20 #include "vpx_mem/vpx_mem.h" 21 #include "vpx_mem/vpx_mem.h"
21 } 22 }
22 23
23 namespace { 24 namespace {
24 25
25 using libvpx_test::ACMRandom; 26 using libvpx_test::ACMRandom;
26 27
27 class IntraPredBase { 28 class IntraPredBase {
29 public:
30 virtual void TearDown() {
31 libvpx_test::ClearSystemState();
32 }
33
28 protected: 34 protected:
29 void SetupMacroblock(uint8_t *data, int block_size, int stride, 35 void SetupMacroblock(uint8_t *data, int block_size, int stride,
30 int num_planes) { 36 int num_planes) {
31 memset(&mb_, 0, sizeof(mb_)); 37 memset(&mb_, 0, sizeof(mb_));
32 memset(&mi_, 0, sizeof(mi_)); 38 memset(&mi_, 0, sizeof(mi_));
33 mb_.up_available = 1; 39 mb_.up_available = 1;
34 mb_.left_available = 1; 40 mb_.left_available = 1;
35 mb_.mode_info_context = &mi_; 41 mb_.mode_info_context = &mi_;
36 stride_ = stride; 42 stride_ = stride;
37 block_size_ = block_size; 43 block_size_ = block_size;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 ::testing::Values( 354 ::testing::Values(
349 vp8_build_intra_predictors_mbuv_s_sse2)); 355 vp8_build_intra_predictors_mbuv_s_sse2));
350 #endif 356 #endif
351 #if HAVE_SSSE3 357 #if HAVE_SSSE3
352 INSTANTIATE_TEST_CASE_P(SSSE3, IntraPredUVTest, 358 INSTANTIATE_TEST_CASE_P(SSSE3, IntraPredUVTest,
353 ::testing::Values( 359 ::testing::Values(
354 vp8_build_intra_predictors_mbuv_s_ssse3)); 360 vp8_build_intra_predictors_mbuv_s_ssse3));
355 #endif 361 #endif
356 362
357 } // namespace 363 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/idct_test.cc ('k') | source/libvpx/test/pp_filter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698