comparison armv4l/dsputil_iwmmxt.c @ 4698:9fad30d1230b libavcodec

enable iwmmxt support, removing mm_support() stub patch by Tim Chick, chick at computergeek freeserve co uk
author mru
date Wed, 21 Mar 2007 23:07:24 +0000
parents bbe0bc387a19
children ded34b64b01a
comparison
equal deleted inserted replaced
4697:8e460c6a85a7 4698:9fad30d1230b
126 static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h) 126 static void nop(uint8_t *block, const uint8_t *pixels, int line_size, int h)
127 { 127 {
128 return; 128 return;
129 } 129 }
130 130
131 int mm_flags; /* multimedia extension flags */ 131 /* A run time test is not simple. If this file is compiled in
132 132 * then we should install the functions
133 int mm_support(void) 133 */
134 { 134 int mm_flags = MM_IWMMXT; /* multimedia extension flags */
135 return 0; /* TODO, implement proper detection */
136 }
137 135
138 void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx) 136 void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx)
139 { 137 {
140 mm_flags = mm_support();
141
142 if (avctx->dsp_mask) { 138 if (avctx->dsp_mask) {
143 if (avctx->dsp_mask & FF_MM_FORCE) 139 if (avctx->dsp_mask & FF_MM_FORCE)
144 mm_flags |= (avctx->dsp_mask & 0xffff); 140 mm_flags |= (avctx->dsp_mask & 0xffff);
145 else 141 else
146 mm_flags &= ~(avctx->dsp_mask & 0xffff); 142 mm_flags &= ~(avctx->dsp_mask & 0xffff);