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

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

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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/consistency_test.cc ('k') | source/libvpx/test/dct16x16_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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 392
393 void SetConstantInput(int value) { 393 void SetConstantInput(int value) {
394 memset(input_, value, kInputBufferSize); 394 memset(input_, value, kInputBufferSize);
395 #if CONFIG_VP9_HIGHBITDEPTH 395 #if CONFIG_VP9_HIGHBITDEPTH
396 vpx_memset16(input16_, value, kInputBufferSize); 396 vpx_memset16(input16_, value, kInputBufferSize);
397 #endif 397 #endif
398 } 398 }
399 399
400 void CopyOutputToRef() { 400 void CopyOutputToRef() {
401 vpx_memcpy(output_ref_, output_, kOutputBufferSize); 401 memcpy(output_ref_, output_, kOutputBufferSize);
402 #if CONFIG_VP9_HIGHBITDEPTH 402 #if CONFIG_VP9_HIGHBITDEPTH
403 vpx_memcpy(output16_ref_, output16_, kOutputBufferSize); 403 memcpy(output16_ref_, output16_, kOutputBufferSize);
404 #endif 404 #endif
405 } 405 }
406 406
407 void CheckGuardBlocks() { 407 void CheckGuardBlocks() {
408 for (int i = 0; i < kOutputBufferSize; ++i) { 408 for (int i = 0; i < kOutputBufferSize; ++i) {
409 if (IsIndexInBorder(i)) 409 if (IsIndexInBorder(i))
410 EXPECT_EQ(255, output_[i]); 410 EXPECT_EQ(255, output_[i]);
411 } 411 }
412 } 412 }
413 413
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 make_tuple(16, 8, &convolve8_dspr2), 1807 make_tuple(16, 8, &convolve8_dspr2),
1808 make_tuple(8, 16, &convolve8_dspr2), 1808 make_tuple(8, 16, &convolve8_dspr2),
1809 make_tuple(16, 16, &convolve8_dspr2), 1809 make_tuple(16, 16, &convolve8_dspr2),
1810 make_tuple(32, 16, &convolve8_dspr2), 1810 make_tuple(32, 16, &convolve8_dspr2),
1811 make_tuple(16, 32, &convolve8_dspr2), 1811 make_tuple(16, 32, &convolve8_dspr2),
1812 make_tuple(32, 32, &convolve8_dspr2), 1812 make_tuple(32, 32, &convolve8_dspr2),
1813 make_tuple(64, 32, &convolve8_dspr2), 1813 make_tuple(64, 32, &convolve8_dspr2),
1814 make_tuple(32, 64, &convolve8_dspr2), 1814 make_tuple(32, 64, &convolve8_dspr2),
1815 make_tuple(64, 64, &convolve8_dspr2))); 1815 make_tuple(64, 64, &convolve8_dspr2)));
1816 #endif 1816 #endif
1817
1818 #if HAVE_MSA
1819 const ConvolveFunctions convolve8_msa(
1820 vp9_convolve_copy_msa, vp9_convolve_avg_msa,
1821 vp9_convolve8_horiz_msa, vp9_convolve8_avg_horiz_c,
1822 vp9_convolve8_vert_msa, vp9_convolve8_avg_vert_c,
1823 vp9_convolve8_msa, vp9_convolve8_avg_c, 0);
1824
1825 INSTANTIATE_TEST_CASE_P(MSA, ConvolveTest, ::testing::Values(
1826 make_tuple(4, 4, &convolve8_msa),
1827 make_tuple(8, 4, &convolve8_msa),
1828 make_tuple(4, 8, &convolve8_msa),
1829 make_tuple(8, 8, &convolve8_msa),
1830 make_tuple(16, 8, &convolve8_msa),
1831 make_tuple(8, 16, &convolve8_msa),
1832 make_tuple(16, 16, &convolve8_msa),
1833 make_tuple(32, 16, &convolve8_msa),
1834 make_tuple(16, 32, &convolve8_msa),
1835 make_tuple(32, 32, &convolve8_msa),
1836 make_tuple(64, 32, &convolve8_msa),
1837 make_tuple(32, 64, &convolve8_msa),
1838 make_tuple(64, 64, &convolve8_msa)));
1839 #endif // HAVE_MSA
1817 } // namespace 1840 } // namespace
OLDNEW
« no previous file with comments | « source/libvpx/test/consistency_test.cc ('k') | source/libvpx/test/dct16x16_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698