Commit 35af2c1c authored by mru's avatar mru

enable iwmmxt support, removing mm_support() stub

patch by Tim Chick, chick at computergeek freeserve co uk


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8471 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 29ce7eaa
...@@ -128,17 +128,13 @@ static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h) ...@@ -128,17 +128,13 @@ static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h)
return; return;
} }
int mm_flags; /* multimedia extension flags */ /* A run time test is not simple. If this file is compiled in
* then we should install the functions
int mm_support(void) */
{ int mm_flags = MM_IWMMXT; /* multimedia extension flags */
return 0; /* TODO, implement proper detection */
}
void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx) void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx)
{ {
mm_flags = mm_support();
if (avctx->dsp_mask) { if (avctx->dsp_mask) {
if (avctx->dsp_mask & FF_MM_FORCE) if (avctx->dsp_mask & FF_MM_FORCE)
mm_flags |= (avctx->dsp_mask & 0xffff); mm_flags |= (avctx->dsp_mask & 0xffff);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment