summaryrefslogtreecommitdiff
path: root/libavcodec/armv4l
diff options
context:
space:
mode:
authorTim Chick <chick@computergeek.freeserve.co.uk>2007-03-21 23:07:24 +0000
committerMåns Rullgård <mans@mansr.com>2007-03-21 23:07:24 +0000
commitf88e7c833b17cbc8fef3e26dd14844231720138e (patch)
tree7812e1f96ba37a8bec9c3febcaba4c0c2647ab54 /libavcodec/armv4l
parentc252b26d5545fa58e0d30965464a830f1b519d73 (diff)
enable iwmmxt support, removing mm_support() stub
patch by Tim Chick, chick at computergeek freeserve co uk Originally committed as revision 8471 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/armv4l')
-rw-r--r--libavcodec/armv4l/dsputil_iwmmxt.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/armv4l/dsputil_iwmmxt.c b/libavcodec/armv4l/dsputil_iwmmxt.c
index d7401e760f..7536100ee7 100644
--- a/libavcodec/armv4l/dsputil_iwmmxt.c
+++ b/libavcodec/armv4l/dsputil_iwmmxt.c
@@ -128,17 +128,13 @@ static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h)
return;
}
-int mm_flags; /* multimedia extension flags */
-
-int mm_support(void)
-{
- return 0; /* TODO, implement proper detection */
-}
+/* A run time test is not simple. If this file is compiled in
+ * then we should install the functions
+ */
+int mm_flags = MM_IWMMXT; /* multimedia extension flags */
void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx)
{
- mm_flags = mm_support();
-
if (avctx->dsp_mask) {
if (avctx->dsp_mask & FF_MM_FORCE)
mm_flags |= (avctx->dsp_mask & 0xffff);