summaryrefslogtreecommitdiff
path: root/libavcodec/arm/vc1dsp_init_arm.c
diff options
context:
space:
mode:
authorMason Carter <void.main.argc.argv@gmail.com>2013-12-14 17:32:56 -0800
committerMartin Storsjö <martin@martin.st>2013-12-20 14:53:39 +0200
commit832e19063209a5f355af733d1a45f5051f49ce33 (patch)
tree816403978498ea9fb3b7a3dbc3619784b9ae1485 /libavcodec/arm/vc1dsp_init_arm.c
parente1b9de4fe15cda08cb18a2821a5729cf95e33d2a (diff)
vc1: arm: Add NEON assembly
For: ff_vc1_inv_trans_{8,4}x{8,4}_{dc_,}neon ff_put_pixels8x8_neon ff_put_vc1_mspel_mc{0,1,2,3}{0,1,2,3}_neon (except for 00) Based on ARM assembly code in libavcodec/arm by Rob Clark and Mans Rullgard. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/arm/vc1dsp_init_arm.c')
-rw-r--r--libavcodec/arm/vc1dsp_init_arm.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/libavcodec/arm/vc1dsp_init_arm.c b/libavcodec/arm/vc1dsp_init_arm.c
new file mode 100644
index 0000000000..6d4eb79487
--- /dev/null
+++ b/libavcodec/arm/vc1dsp_init_arm.c
@@ -0,0 +1,32 @@
+/*
+ * This file is part of Libav.
+ *
+ * Libav 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.
+ *
+ * Libav 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 Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <stdint.h>
+
+#include "libavutil/attributes.h"
+#include "libavutil/arm/cpu.h"
+#include "libavcodec/vc1dsp.h"
+#include "vc1dsp.h"
+
+av_cold void ff_vc1dsp_init_arm(VC1DSPContext *dsp)
+{
+ int cpu_flags = av_get_cpu_flags();
+
+ if (have_neon(cpu_flags))
+ ff_vc1dsp_init_neon(dsp);
+}