OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |