
This commit bring all up-to-date changes from master that are applicable to nextgenv2. Due to the remove VP10 code in master, we had to cherry pick the following commits to get those changes: Add default flags for arm64/armv8 builds Allows building simple targets with sane default flags. For example, using the Android arm64 toolchain from the NDK: https://developer.android.com/ndk/guides/standalone_toolchain.html ./build/tools/make-standalone-toolchain.sh --arch=arm64 \ --platform=android-24 --install-dir=/tmp/arm64 CROSS=/tmp/arm64/bin/aarch64-linux-android- \ ~/libvpx/configure --target=arm64-linux-gcc --disable-multithread BUG=webm:1143 vpx_lpf_horizontal_4_sse2: Remove dead load. Change-Id: I51026c52baa1f0881fcd5b68e1fdf08a2dc0916e Fail early when android target does not include --sdk-path Change-Id: I07e7e63476a2e32e3aae123abdee8b7bbbdc6a8c configure: clean up var style and set_all usage Use quotes whenever possible and {} always for variables. Replace multiple set_all calls with *able_feature(). Conflicts: build/make/configure.sh vp9-svc: Remove some unneeded code/comment. datarate_test,DatarateTestLarge: normalize bits type quiets a msvc warning: conversion from 'const int64_t' to 'size_t', possible loss of data mips added p6600 cpu support Removed -funroll-loops psnr.c: use int64_t for sum of differences Since the values can be negative. *.asm: normalize label format add a trailing ':', though it's optional with the tools we support, it's more common to use it to mark a label. this also quiets the orphan-labels warning with nasm/yasm. BUG=b/29583530 Prevent negative variance Due to rounding, hbd variance may become negative. This commit put in check and clamp of negative values to 0. configure: remove old visual studio support (<2010) BUG=b/29583530 Conflicts: configure configure: restore vs_version variable inadvertently lost in the final patchset of: 078dff7 configure: remove old visual studio support (<2010) this prevents an empty CONFIG_VS_VERSION and avoids make failure Require x86inc.asm Force enable x86inc.asm when building for x86. Previously there were compatibility issues so a flag was added to simplify disabling this code. The known issues have been resolved and x86inc.asm is the preferred abstraction layer (over x86_abi_support.asm). BUG=b:29583530 convolve_test: fix byte offsets in hbd build CONVERT_TO_BYTEPTR(x) was corrected in: 003a9d2 Port metric computation changes from nextgenv2 to use the more common (x) within the expansion. offsets should occur after converting the pointer to the desired type. + factorized some common expressions Conflicts: test/convolve_test.cc vpx_dsp: remove x86inc.asm distinction BUG=b:29583530 Conflicts: vpx_dsp/vpx_dsp.mk vpx_dsp/vpx_dsp_rtcd_defs.pl vpx_dsp/x86/highbd_variance_sse2.c vpx_dsp/x86/variance_sse2.c test: remove x86inc.asm distinction BUG=b:29583530 Conflicts: test/vp9_subtract_test.cc configure: remove x86inc.asm distinction BUG=b:29583530 Change-Id: I59a1192142e89a6a36b906f65a491a734e603617 Update vpx subpixel 1d filter ssse3 asm Speed test shows the new vertical filters have degradation on Celeron Chromebook. Added "X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON" to control the vertical filters activated code. Now just simply active the code without degradation on Celeron. Later there should be 2 set of vertical filters ssse3 functions, and let jump table to choose based on CPU type. improve vpx_filter_block1d* based on replace paddsw+psrlw to pmulhrsw Make set_reference control API work in VP9 Moved the API patch from NextGenv2. An example was included. To try it, for example, run the following command: $ examples/vpx_cx_set_ref vp9 352 288 in.yuv out.ivf 4 30 Conflicts: examples.mk examples/vpx_cx_set_ref.c test/cx_set_ref.sh vp9/decoder/vp9_decoder.c deblock filter : moved from vp8 code branch The deblocking filters used in vp8 have been moved to vpx_dsp for use by both vp8 and vp9. vpx_thread.[hc]: update webp source reference + drop the blob hash, the updated reference will be updated in the commit message BUG=b/29583578 vpx_thread: use native windows cond var if available BUG=b/29583578 original webp change: commit 110ad5835ecd66995d0e7f66dca1b90dea595f5a Author: James Zern <jzern@google.com> Date: Mon Nov 23 19:49:58 2015 -0800 thread: use native windows cond var if available Vista / Server 2008 and up. no speed difference observed. 100644 blob 4fc372b7bc6980a9ed3618c8cce5b67ed7b0f412 src/utils/thread.c 100644 blob 840831185502d42a3246e4b7ff870121c8064791 src/utils/thread.h vpx_thread: use InitializeCriticalSectionEx if available BUG=b/29583578 original webp change: commit 63fadc9ffacc77d4617526a50c696d21d558a70b Author: James Zern <jzern@google.com> Date: Mon Nov 23 20:38:46 2015 -0800 thread: use InitializeCriticalSectionEx if available Windows Vista / Server 2008 and up 100644 blob f84207d89b3a6bb98bfe8f3fa55cad72dfd061ff src/utils/thread.c 100644 blob 840831185502d42a3246e4b7ff870121c8064791 src/utils/thread.h vpx_thread: use WaitForSingleObjectEx if available BUG=b/29583578 original webp change: commit 0fd0e12bfe83f16ce4f1c038b251ccbc13c62ac2 Author: James Zern <jzern@google.com> Date: Mon Nov 23 20:40:26 2015 -0800 thread: use WaitForSingleObjectEx if available Windows XP and up 100644 blob d58f74e5523dbc985fc531cf5f0833f1e9157cf0 src/utils/thread.c 100644 blob 840831185502d42a3246e4b7ff870121c8064791 src/utils/thread.h vpx_thread: use CreateThread for windows phone BUG=b/29583578 original webp change: commit d2afe974f9d751de144ef09d31255aea13b442c0 Author: James Zern <jzern@google.com> Date: Mon Nov 23 20:41:26 2015 -0800 thread: use CreateThread for windows phone _beginthreadex is unavailable for winrt/uwp Change-Id: Ie7412a568278ac67f0047f1764e2521193d74d4d 100644 blob 93f7622797f05f6acc1126e8296c481d276e4047 src/utils/thread.c 100644 blob 840831185502d42a3246e4b7ff870121c8064791 src/utils/thread.h vp9_postproc.c missing extern. BUG=webm:1256 deblock: missing const on extern const. postproc - move filling of noise buffer to vpx_dsp. Fix encoder crashes for odd size input clean-up vp9_intrapred_test remove tuple and overkill VP9IntraPredBase class. postproc: noise style fixes. gtest-all.cc: quiet an unused variable warning under windows / mingw builds vp9_intrapred_test: follow-up cleanup address few comments from ce050afaf3e288895c3bee4160336e2d2133b6ea Change-Id: I3eece7efa9335f4210303993ef6c1857ad5c29c8
374 lines
16 KiB
C++
374 lines
16 KiB
C++
/*
|
|
* Copyright (c) 2015 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
// Test and time VPX intra-predictor functions
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "third_party/googletest/src/include/gtest/gtest.h"
|
|
|
|
#include "./vpx_dsp_rtcd.h"
|
|
#include "test/acm_random.h"
|
|
#include "test/clear_system_state.h"
|
|
#include "test/md5_helper.h"
|
|
#include "vpx/vpx_integer.h"
|
|
#include "vpx_ports/mem.h"
|
|
#include "vpx_ports/vpx_timer.h"
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
namespace {
|
|
|
|
typedef void (*VpxPredFunc)(uint8_t *dst, ptrdiff_t y_stride,
|
|
const uint8_t *above, const uint8_t *left);
|
|
|
|
const int kNumVp9IntraPredFuncs = 13;
|
|
const char *kVp9IntraPredNames[kNumVp9IntraPredFuncs] = {
|
|
"DC_PRED", "DC_LEFT_PRED", "DC_TOP_PRED", "DC_128_PRED", "V_PRED", "H_PRED",
|
|
"D45_PRED", "D135_PRED", "D117_PRED", "D153_PRED", "D207_PRED", "D63_PRED",
|
|
"TM_PRED"
|
|
};
|
|
|
|
void TestIntraPred(const char name[], VpxPredFunc const *pred_funcs,
|
|
const char *const pred_func_names[], int num_funcs,
|
|
const char *const signatures[], int block_size,
|
|
int num_pixels_per_test) {
|
|
libvpx_test::ACMRandom rnd(libvpx_test::ACMRandom::DeterministicSeed());
|
|
const int kBPS = 32;
|
|
const int kTotalPixels = 32 * kBPS;
|
|
DECLARE_ALIGNED(16, uint8_t, src[kTotalPixels]);
|
|
DECLARE_ALIGNED(16, uint8_t, ref_src[kTotalPixels]);
|
|
DECLARE_ALIGNED(16, uint8_t, left[kBPS]);
|
|
DECLARE_ALIGNED(16, uint8_t, above_mem[2 * kBPS + 16]);
|
|
uint8_t *const above = above_mem + 16;
|
|
for (int i = 0; i < kTotalPixels; ++i) ref_src[i] = rnd.Rand8();
|
|
for (int i = 0; i < kBPS; ++i) left[i] = rnd.Rand8();
|
|
for (int i = -1; i < kBPS; ++i) above[i] = rnd.Rand8();
|
|
const int kNumTests = static_cast<int>(2.e10 / num_pixels_per_test);
|
|
|
|
// some code assumes the top row has been extended:
|
|
// d45/d63 C-code, for instance, but not the assembly.
|
|
// TODO(jzern): this style of extension isn't strictly necessary.
|
|
ASSERT_LE(block_size, kBPS);
|
|
memset(above + block_size, above[block_size - 1], 2 * kBPS - block_size);
|
|
|
|
for (int k = 0; k < num_funcs; ++k) {
|
|
if (pred_funcs[k] == NULL) continue;
|
|
memcpy(src, ref_src, sizeof(src));
|
|
vpx_usec_timer timer;
|
|
vpx_usec_timer_start(&timer);
|
|
for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
|
|
pred_funcs[k](src, kBPS, above, left);
|
|
}
|
|
libvpx_test::ClearSystemState();
|
|
vpx_usec_timer_mark(&timer);
|
|
const int elapsed_time =
|
|
static_cast<int>(vpx_usec_timer_elapsed(&timer) / 1000);
|
|
libvpx_test::MD5 md5;
|
|
md5.Add(src, sizeof(src));
|
|
printf("Mode %s[%12s]: %5d ms MD5: %s\n", name, pred_func_names[k],
|
|
elapsed_time, md5.Get());
|
|
EXPECT_STREQ(signatures[k], md5.Get());
|
|
}
|
|
}
|
|
|
|
void TestIntraPred4(VpxPredFunc const *pred_funcs) {
|
|
static const int kNumVp9IntraFuncs = 13;
|
|
static const char *const kSignatures[kNumVp9IntraFuncs] = {
|
|
"4334156168b34ab599d9b5b30f522fe9",
|
|
"bc4649d5ba47c7ff178d92e475960fb0",
|
|
"8d316e5933326dcac24e1064794b5d12",
|
|
"a27270fed024eafd762c95de85f4da51",
|
|
"c33dff000d4256c2b8f3bf9e9bab14d2",
|
|
"44d8cddc2ad8f79b8ed3306051722b4f",
|
|
"eb54839b2bad6699d8946f01ec041cd0",
|
|
"ecb0d56ae5f677ea45127ce9d5c058e4",
|
|
"0b7936841f6813da818275944895b574",
|
|
"9117972ef64f91a58ff73e1731c81db2",
|
|
"c56d5e8c729e46825f46dd5d3b5d508a",
|
|
"c0889e2039bcf7bcb5d2f33cdca69adc",
|
|
"309a618577b27c648f9c5ee45252bc8f",
|
|
};
|
|
TestIntraPred("Intra4", pred_funcs, kVp9IntraPredNames, kNumVp9IntraFuncs,
|
|
kSignatures, 4, 4 * 4 * kNumVp9IntraFuncs);
|
|
}
|
|
|
|
void TestIntraPred8(VpxPredFunc const *pred_funcs) {
|
|
static const int kNumVp9IntraFuncs = 13;
|
|
static const char *const kSignatures[kNumVp9IntraFuncs] = {
|
|
"7694ddeeefed887faf9d339d18850928",
|
|
"7d726b1213591b99f736be6dec65065b",
|
|
"19c5711281357a485591aaf9c96c0a67",
|
|
"ba6b66877a089e71cd938e3b8c40caac",
|
|
"802440c93317e0f8ba93fab02ef74265",
|
|
"9e09a47a15deb0b9d8372824f9805080",
|
|
"b7c2d8c662268c0c427da412d7b0311d",
|
|
"78339c1c60bb1d67d248ab8c4da08b7f",
|
|
"5c97d70f7d47de1882a6cd86c165c8a9",
|
|
"8182bf60688b42205acd95e59e967157",
|
|
"08323400005a297f16d7e57e7fe1eaac",
|
|
"95f7bfc262329a5849eda66d8f7c68ce",
|
|
"815b75c8e0d91cc1ae766dc5d3e445a3",
|
|
};
|
|
TestIntraPred("Intra8", pred_funcs, kVp9IntraPredNames, kNumVp9IntraFuncs,
|
|
kSignatures, 8, 8 * 8 * kNumVp9IntraFuncs);
|
|
}
|
|
|
|
void TestIntraPred16(VpxPredFunc const *pred_funcs) {
|
|
static const int kNumVp9IntraFuncs = 13;
|
|
static const char *const kSignatures[kNumVp9IntraFuncs] = {
|
|
"b40dbb555d5d16a043dc361e6694fe53",
|
|
"fb08118cee3b6405d64c1fd68be878c6",
|
|
"6c190f341475c837cc38c2e566b64875",
|
|
"db5c34ccbe2c7f595d9b08b0dc2c698c",
|
|
"a62cbfd153a1f0b9fed13e62b8408a7a",
|
|
"143df5b4c89335e281103f610f5052e4",
|
|
"d87feb124107cdf2cfb147655aa0bb3c",
|
|
"7841fae7d4d47b519322e6a03eeed9dc",
|
|
"f6ebed3f71cbcf8d6d0516ce87e11093",
|
|
"3cc480297dbfeed01a1c2d78dd03d0c5",
|
|
"b9f69fa6532b372c545397dcb78ef311",
|
|
"a8fe1c70432f09d0c20c67bdb6432c4d",
|
|
"b8a41aa968ec108af447af4217cba91b",
|
|
};
|
|
TestIntraPred("Intra16", pred_funcs, kVp9IntraPredNames, kNumVp9IntraFuncs,
|
|
kSignatures, 16, 16 * 16 * kNumVp9IntraFuncs);
|
|
}
|
|
|
|
void TestIntraPred32(VpxPredFunc const *pred_funcs) {
|
|
static const int kNumVp9IntraFuncs = 13;
|
|
static const char *const kSignatures[kNumVp9IntraFuncs] = {
|
|
"558541656d84f9ae7896db655826febe",
|
|
"b3587a1f9a01495fa38c8cd3c8e2a1bf",
|
|
"4c6501e64f25aacc55a2a16c7e8f0255",
|
|
"b3b01379ba08916ef6b1b35f7d9ad51c",
|
|
"0f1eb38b6cbddb3d496199ef9f329071",
|
|
"911c06efb9ed1c3b4c104b232b55812f",
|
|
"9225beb0ddfa7a1d24eaa1be430a6654",
|
|
"0a6d584a44f8db9aa7ade2e2fdb9fc9e",
|
|
"b01c9076525216925f3456f034fb6eee",
|
|
"d267e20ad9e5cd2915d1a47254d3d149",
|
|
"ed012a4a5da71f36c2393023184a0e59",
|
|
"f162b51ed618d28b936974cff4391da5",
|
|
"9e1370c6d42e08d357d9612c93a71cfc",
|
|
};
|
|
TestIntraPred("Intra32", pred_funcs, kVp9IntraPredNames, kNumVp9IntraFuncs,
|
|
kSignatures, 32, 32 * 32 * kNumVp9IntraFuncs);
|
|
}
|
|
|
|
} // namespace
|
|
|
|
// Defines a test case for |arch| (e.g., C, SSE2, ...) passing the predictors
|
|
// to |test_func|. The test name is 'arch.test_func', e.g., C.TestIntraPred4.
|
|
#define INTRA_PRED_TEST(arch, test_func, dc, dc_left, dc_top, dc_128, v, h, \
|
|
d45, d135, d117, d153, d207, d63, tm) \
|
|
TEST(arch, test_func) { \
|
|
static const VpxPredFunc vpx_intra_pred[] = { \
|
|
dc, dc_left, dc_top, dc_128, v, h, d45, \
|
|
d135, d117, d153, d207, d63, tm}; \
|
|
test_func(vpx_intra_pred); \
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// 4x4
|
|
|
|
INTRA_PRED_TEST(C, TestIntraPred4, vpx_dc_predictor_4x4_c,
|
|
vpx_dc_left_predictor_4x4_c, vpx_dc_top_predictor_4x4_c,
|
|
vpx_dc_128_predictor_4x4_c, vpx_v_predictor_4x4_c,
|
|
vpx_h_predictor_4x4_c, vpx_d45_predictor_4x4_c,
|
|
vpx_d135_predictor_4x4_c, vpx_d117_predictor_4x4_c,
|
|
vpx_d153_predictor_4x4_c, vpx_d207_predictor_4x4_c,
|
|
vpx_d63_predictor_4x4_c, vpx_tm_predictor_4x4_c)
|
|
|
|
#if HAVE_SSE2
|
|
INTRA_PRED_TEST(SSE2, TestIntraPred4, vpx_dc_predictor_4x4_sse2,
|
|
vpx_dc_left_predictor_4x4_sse2, vpx_dc_top_predictor_4x4_sse2,
|
|
vpx_dc_128_predictor_4x4_sse2, vpx_v_predictor_4x4_sse2,
|
|
vpx_h_predictor_4x4_sse2, vpx_d45_predictor_4x4_sse2, NULL,
|
|
NULL, NULL, vpx_d207_predictor_4x4_sse2, NULL,
|
|
vpx_tm_predictor_4x4_sse2)
|
|
#endif // HAVE_SSE2
|
|
|
|
#if HAVE_SSSE3
|
|
INTRA_PRED_TEST(SSSE3, TestIntraPred4, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, NULL, NULL, NULL,
|
|
vpx_d153_predictor_4x4_ssse3, NULL,
|
|
vpx_d63_predictor_4x4_ssse3, NULL)
|
|
#endif // HAVE_SSSE3
|
|
|
|
#if HAVE_DSPR2
|
|
INTRA_PRED_TEST(DSPR2, TestIntraPred4, vpx_dc_predictor_4x4_dspr2, NULL, NULL,
|
|
NULL, NULL, vpx_h_predictor_4x4_dspr2, NULL, NULL, NULL, NULL,
|
|
NULL, NULL, vpx_tm_predictor_4x4_dspr2)
|
|
#endif // HAVE_DSPR2
|
|
|
|
#if HAVE_NEON
|
|
INTRA_PRED_TEST(NEON, TestIntraPred4, vpx_dc_predictor_4x4_neon,
|
|
vpx_dc_left_predictor_4x4_neon, vpx_dc_top_predictor_4x4_neon,
|
|
vpx_dc_128_predictor_4x4_neon, vpx_v_predictor_4x4_neon,
|
|
vpx_h_predictor_4x4_neon, vpx_d45_predictor_4x4_neon,
|
|
vpx_d135_predictor_4x4_neon, NULL, NULL, NULL, NULL,
|
|
vpx_tm_predictor_4x4_neon)
|
|
#endif // HAVE_NEON
|
|
|
|
#if HAVE_MSA
|
|
INTRA_PRED_TEST(MSA, TestIntraPred4, vpx_dc_predictor_4x4_msa,
|
|
vpx_dc_left_predictor_4x4_msa, vpx_dc_top_predictor_4x4_msa,
|
|
vpx_dc_128_predictor_4x4_msa, vpx_v_predictor_4x4_msa,
|
|
vpx_h_predictor_4x4_msa, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_tm_predictor_4x4_msa)
|
|
#endif // HAVE_MSA
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// 8x8
|
|
|
|
INTRA_PRED_TEST(C, TestIntraPred8, vpx_dc_predictor_8x8_c,
|
|
vpx_dc_left_predictor_8x8_c, vpx_dc_top_predictor_8x8_c,
|
|
vpx_dc_128_predictor_8x8_c, vpx_v_predictor_8x8_c,
|
|
vpx_h_predictor_8x8_c, vpx_d45_predictor_8x8_c,
|
|
vpx_d135_predictor_8x8_c, vpx_d117_predictor_8x8_c,
|
|
vpx_d153_predictor_8x8_c, vpx_d207_predictor_8x8_c,
|
|
vpx_d63_predictor_8x8_c, vpx_tm_predictor_8x8_c)
|
|
|
|
#if HAVE_SSE2
|
|
INTRA_PRED_TEST(SSE2, TestIntraPred8, vpx_dc_predictor_8x8_sse2,
|
|
vpx_dc_left_predictor_8x8_sse2, vpx_dc_top_predictor_8x8_sse2,
|
|
vpx_dc_128_predictor_8x8_sse2, vpx_v_predictor_8x8_sse2,
|
|
vpx_h_predictor_8x8_sse2, vpx_d45_predictor_8x8_sse2, NULL,
|
|
NULL, NULL, NULL, NULL, vpx_tm_predictor_8x8_sse2)
|
|
#endif // HAVE_SSE2
|
|
|
|
#if HAVE_SSSE3
|
|
INTRA_PRED_TEST(SSSE3, TestIntraPred8, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, NULL, NULL, NULL,
|
|
vpx_d153_predictor_8x8_ssse3, vpx_d207_predictor_8x8_ssse3,
|
|
vpx_d63_predictor_8x8_ssse3, NULL)
|
|
#endif // HAVE_SSSE3
|
|
|
|
#if HAVE_DSPR2
|
|
INTRA_PRED_TEST(DSPR2, TestIntraPred8, vpx_dc_predictor_8x8_dspr2, NULL, NULL,
|
|
NULL, NULL, vpx_h_predictor_8x8_dspr2, NULL, NULL, NULL, NULL,
|
|
NULL, NULL, vpx_tm_predictor_8x8_c)
|
|
#endif // HAVE_DSPR2
|
|
|
|
#if HAVE_NEON
|
|
INTRA_PRED_TEST(NEON, TestIntraPred8, vpx_dc_predictor_8x8_neon,
|
|
vpx_dc_left_predictor_8x8_neon, vpx_dc_top_predictor_8x8_neon,
|
|
vpx_dc_128_predictor_8x8_neon, vpx_v_predictor_8x8_neon,
|
|
vpx_h_predictor_8x8_neon, vpx_d45_predictor_8x8_neon, NULL,
|
|
NULL, NULL, NULL, NULL, vpx_tm_predictor_8x8_neon)
|
|
|
|
#endif // HAVE_NEON
|
|
|
|
#if HAVE_MSA
|
|
INTRA_PRED_TEST(MSA, TestIntraPred8, vpx_dc_predictor_8x8_msa,
|
|
vpx_dc_left_predictor_8x8_msa, vpx_dc_top_predictor_8x8_msa,
|
|
vpx_dc_128_predictor_8x8_msa, vpx_v_predictor_8x8_msa,
|
|
vpx_h_predictor_8x8_msa, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_tm_predictor_8x8_msa)
|
|
#endif // HAVE_MSA
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// 16x16
|
|
|
|
INTRA_PRED_TEST(C, TestIntraPred16, vpx_dc_predictor_16x16_c,
|
|
vpx_dc_left_predictor_16x16_c, vpx_dc_top_predictor_16x16_c,
|
|
vpx_dc_128_predictor_16x16_c, vpx_v_predictor_16x16_c,
|
|
vpx_h_predictor_16x16_c, vpx_d45_predictor_16x16_c,
|
|
vpx_d135_predictor_16x16_c, vpx_d117_predictor_16x16_c,
|
|
vpx_d153_predictor_16x16_c, vpx_d207_predictor_16x16_c,
|
|
vpx_d63_predictor_16x16_c, vpx_tm_predictor_16x16_c)
|
|
|
|
#if HAVE_SSE2
|
|
INTRA_PRED_TEST(SSE2, TestIntraPred16, vpx_dc_predictor_16x16_sse2,
|
|
vpx_dc_left_predictor_16x16_sse2,
|
|
vpx_dc_top_predictor_16x16_sse2,
|
|
vpx_dc_128_predictor_16x16_sse2, vpx_v_predictor_16x16_sse2,
|
|
vpx_h_predictor_16x16_sse2, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
vpx_tm_predictor_16x16_sse2)
|
|
#endif // HAVE_SSE2
|
|
|
|
#if HAVE_SSSE3
|
|
INTRA_PRED_TEST(SSSE3, TestIntraPred16, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_d45_predictor_16x16_ssse3,
|
|
NULL, NULL, vpx_d153_predictor_16x16_ssse3,
|
|
vpx_d207_predictor_16x16_ssse3, vpx_d63_predictor_16x16_ssse3,
|
|
NULL)
|
|
#endif // HAVE_SSSE3
|
|
|
|
#if HAVE_DSPR2
|
|
INTRA_PRED_TEST(DSPR2, TestIntraPred16, vpx_dc_predictor_16x16_dspr2, NULL,
|
|
NULL, NULL, NULL, vpx_h_predictor_16x16_dspr2, NULL, NULL, NULL,
|
|
NULL, NULL, NULL, NULL)
|
|
#endif // HAVE_DSPR2
|
|
|
|
#if HAVE_NEON
|
|
INTRA_PRED_TEST(NEON, TestIntraPred16, vpx_dc_predictor_16x16_neon,
|
|
vpx_dc_left_predictor_16x16_neon,
|
|
vpx_dc_top_predictor_16x16_neon,
|
|
vpx_dc_128_predictor_16x16_neon, vpx_v_predictor_16x16_neon,
|
|
vpx_h_predictor_16x16_neon, vpx_d45_predictor_16x16_neon, NULL,
|
|
NULL, NULL, NULL, NULL, vpx_tm_predictor_16x16_neon)
|
|
#endif // HAVE_NEON
|
|
|
|
#if HAVE_MSA
|
|
INTRA_PRED_TEST(MSA, TestIntraPred16, vpx_dc_predictor_16x16_msa,
|
|
vpx_dc_left_predictor_16x16_msa, vpx_dc_top_predictor_16x16_msa,
|
|
vpx_dc_128_predictor_16x16_msa, vpx_v_predictor_16x16_msa,
|
|
vpx_h_predictor_16x16_msa, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_tm_predictor_16x16_msa)
|
|
#endif // HAVE_MSA
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// 32x32
|
|
|
|
INTRA_PRED_TEST(C, TestIntraPred32, vpx_dc_predictor_32x32_c,
|
|
vpx_dc_left_predictor_32x32_c, vpx_dc_top_predictor_32x32_c,
|
|
vpx_dc_128_predictor_32x32_c, vpx_v_predictor_32x32_c,
|
|
vpx_h_predictor_32x32_c, vpx_d45_predictor_32x32_c,
|
|
vpx_d135_predictor_32x32_c, vpx_d117_predictor_32x32_c,
|
|
vpx_d153_predictor_32x32_c, vpx_d207_predictor_32x32_c,
|
|
vpx_d63_predictor_32x32_c, vpx_tm_predictor_32x32_c)
|
|
|
|
#if HAVE_SSE2
|
|
INTRA_PRED_TEST(SSE2, TestIntraPred32, vpx_dc_predictor_32x32_sse2,
|
|
vpx_dc_left_predictor_32x32_sse2,
|
|
vpx_dc_top_predictor_32x32_sse2,
|
|
vpx_dc_128_predictor_32x32_sse2, vpx_v_predictor_32x32_sse2,
|
|
vpx_h_predictor_32x32_sse2, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_tm_predictor_32x32_sse2)
|
|
#endif // HAVE_SSE2
|
|
|
|
#if HAVE_SSSE3
|
|
INTRA_PRED_TEST(SSSE3, TestIntraPred32, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_d45_predictor_32x32_ssse3, NULL, NULL,
|
|
vpx_d153_predictor_32x32_ssse3, vpx_d207_predictor_32x32_ssse3,
|
|
vpx_d63_predictor_32x32_ssse3, NULL)
|
|
#endif // HAVE_SSSE3
|
|
|
|
#if HAVE_NEON
|
|
INTRA_PRED_TEST(NEON, TestIntraPred32, vpx_dc_predictor_32x32_neon,
|
|
vpx_dc_left_predictor_32x32_neon,
|
|
vpx_dc_top_predictor_32x32_neon,
|
|
vpx_dc_128_predictor_32x32_neon, vpx_v_predictor_32x32_neon,
|
|
vpx_h_predictor_32x32_neon, NULL, NULL, NULL, NULL, NULL, NULL,
|
|
vpx_tm_predictor_32x32_neon)
|
|
#endif // HAVE_NEON
|
|
|
|
#if HAVE_MSA
|
|
INTRA_PRED_TEST(MSA, TestIntraPred32, vpx_dc_predictor_32x32_msa,
|
|
vpx_dc_left_predictor_32x32_msa, vpx_dc_top_predictor_32x32_msa,
|
|
vpx_dc_128_predictor_32x32_msa, vpx_v_predictor_32x32_msa,
|
|
vpx_h_predictor_32x32_msa, NULL, NULL, NULL, NULL, NULL,
|
|
NULL, vpx_tm_predictor_32x32_msa)
|
|
#endif // HAVE_MSA
|
|
|
|
#include "test/test_libvpx.cc"
|