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

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

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 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
« no previous file with comments | « source/libvpx/test/variance_test.cc ('k') | source/libvpx/test/vp9_quantize_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
11 #include <cmath> 11 #include <cmath>
12 #include <cstdlib> 12 #include <cstdlib>
13 #include <string> 13 #include <string>
14 14
15 #include "third_party/googletest/src/include/gtest/gtest.h" 15 #include "third_party/googletest/src/include/gtest/gtest.h"
16 16
17 #include "test/acm_random.h" 17 #include "test/acm_random.h"
18 #include "test/clear_system_state.h" 18 #include "test/clear_system_state.h"
19 #include "test/register_state_check.h" 19 #include "test/register_state_check.h"
20 #include "test/util.h" 20 #include "test/util.h"
21 #include "./vpx_config.h" 21 #include "./vpx_config.h"
22 #include "./vp9_rtcd.h" 22 #include "./vp9_rtcd.h"
23 #include "vp9/common/vp9_entropy.h" 23 #include "vp9/common/vp9_entropy.h"
24 #include "vpx/vpx_codec.h"
24 #include "vpx/vpx_integer.h" 25 #include "vpx/vpx_integer.h"
25 26
26 using libvpx_test::ACMRandom; 27 using libvpx_test::ACMRandom;
27 28
28 namespace { 29 namespace {
29 #if CONFIG_VP9_HIGHBITDEPTH 30 #if CONFIG_VP9_HIGHBITDEPTH
30 const int kNumIterations = 1000; 31 const int kNumIterations = 1000;
31 32
32 typedef int64_t (*ErrorBlockFunc)(const tran_low_t *coeff, 33 typedef int64_t (*ErrorBlockFunc)(const tran_low_t *coeff,
33 const tran_low_t *dqcoeff, 34 const tran_low_t *dqcoeff,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 ::testing::Values( 142 ::testing::Values(
142 make_tuple(&vp9_highbd_block_error_sse2, 143 make_tuple(&vp9_highbd_block_error_sse2,
143 &vp9_highbd_block_error_c, VPX_BITS_10), 144 &vp9_highbd_block_error_c, VPX_BITS_10),
144 make_tuple(&vp9_highbd_block_error_sse2, 145 make_tuple(&vp9_highbd_block_error_sse2,
145 &vp9_highbd_block_error_c, VPX_BITS_12), 146 &vp9_highbd_block_error_c, VPX_BITS_12),
146 make_tuple(&vp9_highbd_block_error_sse2, 147 make_tuple(&vp9_highbd_block_error_sse2,
147 &vp9_highbd_block_error_c, VPX_BITS_8))); 148 &vp9_highbd_block_error_c, VPX_BITS_8)));
148 #endif // HAVE_SSE2 149 #endif // HAVE_SSE2
149 #endif // CONFIG_VP9_HIGHBITDEPTH 150 #endif // CONFIG_VP9_HIGHBITDEPTH
150 } // namespace 151 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/variance_test.cc ('k') | source/libvpx/test/vp9_quantize_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698