aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2017-02-16 12:34:53 +0000
committerMatthieu Bouron <matthieu.bouron@gmail.com>2017-03-16 12:00:41 +0100
commit0c6105dde0c42bc64c93e7e7fbf286869c0bffa2 (patch)
treebccce094bd3f236afa1ffb376346466f7a9403e7 /libavcodec/tests
parent4c8e528d19a37d796a9808908e5b5cb0ce039fb2 (diff)
downloadffmpeg-0c6105dde0c42bc64c93e7e7fbf286869c0bffa2.tar.gz
lavc/tests/dct/aarch64: add ff_simple_idct_neon test
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/aarch64/dct.c30
-rw-r--r--libavcodec/tests/dct.c4
2 files changed, 33 insertions, 1 deletions
diff --git a/libavcodec/tests/aarch64/dct.c b/libavcodec/tests/aarch64/dct.c
new file mode 100644
index 0000000000..032a9638f6
--- /dev/null
+++ b/libavcodec/tests/aarch64/dct.c
@@ -0,0 +1,30 @@
+/*
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+
+#include "libavcodec/aarch64/idct.h"
+
+static const struct algo fdct_tab_arch[] = {
+ { 0 }
+};
+
+static const struct algo idct_tab_arch[] = {
+ { "SIMPLE-NEON", ff_simple_idct_neon, FF_IDCT_PERM_PARTTRANS, AV_CPU_FLAG_NEON },
+ { 0 }
+};
diff --git a/libavcodec/tests/dct.c b/libavcodec/tests/dct.c
index 5303fdff8f..4f0e0d958e 100644
--- a/libavcodec/tests/dct.c
+++ b/libavcodec/tests/dct.c
@@ -94,7 +94,9 @@ static const struct algo idct_tab[] = {
#endif /* CONFIG_MPEG4_DECODER */
};
-#if ARCH_ARM
+#if ARCH_AARCH64
+#include "aarch64/dct.c"
+#elif ARCH_ARM
#include "arm/dct.c"
#elif ARCH_PPC
#include "ppc/dct.c"