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

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

Issue 168343002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: libvpx: Pull from upstream Created 6 years, 10 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/fdct4x4_test.cc ('k') | source/libvpx/test/i420_video_source.h » ('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 26 matching lines...) Expand all
37 int tx_type); 37 int tx_type);
38 38
39 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_8x8_param_t; 39 typedef std::tr1::tuple<fdct_t, idct_t, int> dct_8x8_param_t;
40 typedef std::tr1::tuple<fht_t, iht_t, int> ht_8x8_param_t; 40 typedef std::tr1::tuple<fht_t, iht_t, int> ht_8x8_param_t;
41 41
42 void fdct8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { 42 void fdct8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) {
43 vp9_fdct8x8_c(in, out, stride); 43 vp9_fdct8x8_c(in, out, stride);
44 } 44 }
45 45
46 void fht8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) { 46 void fht8x8_ref(const int16_t *in, int16_t *out, int stride, int tx_type) {
47 vp9_short_fht8x8_c(in, out, stride, tx_type); 47 vp9_fht8x8_c(in, out, stride, tx_type);
48 } 48 }
49 49
50 class FwdTrans8x8TestBase { 50 class FwdTrans8x8TestBase {
51 public: 51 public:
52 virtual ~FwdTrans8x8TestBase() {} 52 virtual ~FwdTrans8x8TestBase() {}
53 53
54 protected: 54 protected:
55 virtual void RunFwdTxfm(int16_t *in, int16_t *out, int stride) = 0; 55 virtual void RunFwdTxfm(int16_t *in, int16_t *out, int stride) = 0;
56 virtual void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) = 0; 56 virtual void RunInvTxfm(int16_t *out, uint8_t *dst, int stride) = 0;
57 57
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 using std::tr1::make_tuple; 302 using std::tr1::make_tuple;
303 303
304 INSTANTIATE_TEST_CASE_P( 304 INSTANTIATE_TEST_CASE_P(
305 C, FwdTrans8x8DCT, 305 C, FwdTrans8x8DCT,
306 ::testing::Values( 306 ::testing::Values(
307 make_tuple(&vp9_fdct8x8_c, &vp9_idct8x8_64_add_c, 0))); 307 make_tuple(&vp9_fdct8x8_c, &vp9_idct8x8_64_add_c, 0)));
308 INSTANTIATE_TEST_CASE_P( 308 INSTANTIATE_TEST_CASE_P(
309 C, FwdTrans8x8HT, 309 C, FwdTrans8x8HT,
310 ::testing::Values( 310 ::testing::Values(
311 make_tuple(&vp9_short_fht8x8_c, &vp9_iht8x8_64_add_c, 0), 311 make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 0),
312 make_tuple(&vp9_short_fht8x8_c, &vp9_iht8x8_64_add_c, 1), 312 make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 1),
313 make_tuple(&vp9_short_fht8x8_c, &vp9_iht8x8_64_add_c, 2), 313 make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 2),
314 make_tuple(&vp9_short_fht8x8_c, &vp9_iht8x8_64_add_c, 3))); 314 make_tuple(&vp9_fht8x8_c, &vp9_iht8x8_64_add_c, 3)));
315 315
316 #if HAVE_SSE2 316 #if HAVE_SSE2
317 INSTANTIATE_TEST_CASE_P( 317 INSTANTIATE_TEST_CASE_P(
318 SSE2, FwdTrans8x8DCT, 318 SSE2, FwdTrans8x8DCT,
319 ::testing::Values( 319 ::testing::Values(
320 make_tuple(&vp9_fdct8x8_sse2, &vp9_idct8x8_64_add_sse2, 0))); 320 make_tuple(&vp9_fdct8x8_sse2, &vp9_idct8x8_64_add_sse2, 0)));
321 INSTANTIATE_TEST_CASE_P( 321 INSTANTIATE_TEST_CASE_P(
322 SSE2, FwdTrans8x8HT, 322 SSE2, FwdTrans8x8HT,
323 ::testing::Values( 323 ::testing::Values(
324 make_tuple(&vp9_short_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 0), 324 make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 0),
325 make_tuple(&vp9_short_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 1), 325 make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 1),
326 make_tuple(&vp9_short_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 2), 326 make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 2),
327 make_tuple(&vp9_short_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 3))); 327 make_tuple(&vp9_fht8x8_sse2, &vp9_iht8x8_64_add_sse2, 3)));
328 #endif 328 #endif
329 } // namespace 329 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/fdct4x4_test.cc ('k') | source/libvpx/test/i420_video_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698