summaryrefslogtreecommitdiff
path: root/libavcodec/arm/vp8dsp_init_armv6.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-04-22 15:14:12 +0100
committerMans Rullgard <mans@mansr.com>2012-04-25 21:41:39 +0100
commitb692d246ead6ed56045904c1f839eb3cbf2cf2a7 (patch)
tree62a4d8db25f9beb390b9267f780f88ec60a74cc4 /libavcodec/arm/vp8dsp_init_armv6.c
parentdac78fd1d73b3710f1c6718f7418bc5325fff494 (diff)
vp8: arm: separate ARMv6 functions from NEON
This is a preparation for complete ARMv6 optimisations. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/vp8dsp_init_armv6.c')
-rw-r--r--libavcodec/arm/vp8dsp_init_armv6.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/libavcodec/arm/vp8dsp_init_armv6.c b/libavcodec/arm/vp8dsp_init_armv6.c
new file mode 100644
index 0000000000..a1dcef57ee
--- /dev/null
+++ b/libavcodec/arm/vp8dsp_init_armv6.c
@@ -0,0 +1,34 @@
+/*
+ * 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 "libavcodec/vp8dsp.h"
+#include "vp8dsp.h"
+
+void ff_vp8_luma_dc_wht_dc_armv6(DCTELEM block[4][4][16], DCTELEM dc[16]);
+
+VP8_MC(pixels4, armv6);
+
+av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp)
+{
+ dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;
+
+ dsp->put_vp8_epel_pixels_tab[2][0][0] = ff_put_vp8_pixels4_armv6;
+
+ dsp->put_vp8_bilinear_pixels_tab[2][0][0] = ff_put_vp8_pixels4_armv6;
+}