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

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

Issue 13042014: Description: (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 7 years, 9 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
« no previous file with comments | « source/libvpx/libs.mk ('k') | source/libvpx/test/test.mk » ('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
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 static const int kSrcStride = 21; 54 static const int kSrcStride = 21;
55 static const int kDstStride = 16; 55 static const int kDstStride = 16;
56 static const int kDataAlignment = 16; 56 static const int kDataAlignment = 16;
57 static const int kSrcSize = kSrcStride * kSrcStride + 1; 57 static const int kSrcSize = kSrcStride * kSrcStride + 1;
58 static const int kDstSize = kDstStride * kDstStride; 58 static const int kDstSize = kDstStride * kDstStride;
59 59
60 virtual void SetUp() { 60 virtual void SetUp() {
61 width_ = GET_PARAM(0); 61 width_ = GET_PARAM(0);
62 height_ = GET_PARAM(1); 62 height_ = GET_PARAM(1);
63 sixtap_predict_ = GET_PARAM(2); 63 sixtap_predict_ = GET_PARAM(2);
64 memset(src_, 0, sizeof(src_)); 64 memset(src_, 0, kSrcSize);
65 memset(dst_, 0, sizeof(dst_)); 65 memset(dst_, 0, kDstSize);
66 memset(dst_c_, 0, sizeof(dst_c_)); 66 memset(dst_c_, 0, kDstSize);
67 } 67 }
68 68
69 int width_; 69 int width_;
70 int height_; 70 int height_;
71 sixtap_predict_fn_t sixtap_predict_; 71 sixtap_predict_fn_t sixtap_predict_;
72 // The src stores the macroblock we will filter on, and makes it 1 byte larger 72 // The src stores the macroblock we will filter on, and makes it 1 byte larger
73 // in order to test unaligned access. The result is stored in dst and dst_c(c 73 // in order to test unaligned access. The result is stored in dst and dst_c(c
74 // reference code result). 74 // reference code result).
75 static uint8_t* src_; 75 static uint8_t* src_;
76 static uint8_t* dst_; 76 static uint8_t* dst_;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 const sixtap_predict_fn_t sixtap_8x4_ssse3 = vp8_sixtap_predict8x4_ssse3; 215 const sixtap_predict_fn_t sixtap_8x4_ssse3 = vp8_sixtap_predict8x4_ssse3;
216 const sixtap_predict_fn_t sixtap_4x4_ssse3 = vp8_sixtap_predict4x4_ssse3; 216 const sixtap_predict_fn_t sixtap_4x4_ssse3 = vp8_sixtap_predict4x4_ssse3;
217 INSTANTIATE_TEST_CASE_P( 217 INSTANTIATE_TEST_CASE_P(
218 SSSE3, SixtapPredictTest, ::testing::Values( 218 SSSE3, SixtapPredictTest, ::testing::Values(
219 make_tuple(16, 16, sixtap_16x16_ssse3), 219 make_tuple(16, 16, sixtap_16x16_ssse3),
220 make_tuple(8, 8, sixtap_8x8_ssse3), 220 make_tuple(8, 8, sixtap_8x8_ssse3),
221 make_tuple(8, 4, sixtap_8x4_ssse3), 221 make_tuple(8, 4, sixtap_8x4_ssse3),
222 make_tuple(4, 4, sixtap_4x4_ssse3))); 222 make_tuple(4, 4, sixtap_4x4_ssse3)));
223 #endif 223 #endif
224 } // namespace 224 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/libs.mk ('k') | source/libvpx/test/test.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698