summaryrefslogtreecommitdiff
path: root/libavcodec/arm/vp8.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-01 22:38:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-02-13 00:52:51 +0100
commit4ae3ee4ae9d1607d772f9c8e6fe9b167e6761ae4 (patch)
treed81edb54dcbdfd65c15f04b73de6b6f2d4bf2e59 /libavcodec/arm/vp8.h
parent5da7494dc5b304bc3cb1114b9dabaf047e316e05 (diff)
VP8: ARM optimised decode_block_coeffs_internal
Approximately 5% faster on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit a7878c9f73c12cfa685bd8af8f3afcca85f56a8b)
Diffstat (limited to 'libavcodec/arm/vp8.h')
-rw-r--r--libavcodec/arm/vp8.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libavcodec/arm/vp8.h b/libavcodec/arm/vp8.h
new file mode 100644
index 0000000000..90e7344b62
--- /dev/null
+++ b/libavcodec/arm/vp8.h
@@ -0,0 +1,29 @@
+/**
+ * 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
+ */
+
+#ifndef AVCODEC_ARM_VP8_H
+#define AVCODEC_ARM_VP8_H
+
+#if HAVE_ARMV6
+#define decode_block_coeffs_internal ff_decode_block_coeffs_armv6
+int ff_decode_block_coeffs_armv6(VP56RangeCoder *rc, DCTELEM block[16],
+ uint8_t probs[8][3][NUM_DCT_TOKENS-1],
+ int i, uint8_t *token_prob, int16_t qmul[2]);
+#endif
+
+#endif