Revision eba9ae3c libavcodec/armv4l/dsputil_iwmmxt.c

View differences:

libavcodec/armv4l/dsputil_iwmmxt.c
126 126
    return;
127 127
}
128 128

  
129
int mm_flags; /* multimedia extension flags */
130

  
131
int mm_support(void)
132
{
133
    return 0; /* TODO, implement proper detection */
134
}
135

  
129 136
void dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx)
130 137
{
138
    mm_flags = mm_support();
139

  
140
    if (avctx->dsp_mask) {
141
	if (avctx->dsp_mask & FF_MM_FORCE)
142
	    mm_flags |= (avctx->dsp_mask & 0xffff);
143
	else
144
	    mm_flags &= ~(avctx->dsp_mask & 0xffff);
145
    }
146

  
147
    if (!(mm_flags & MM_IWMMXT)) return;
148

  
131 149
    c->add_pixels_clamped = add_pixels_clamped_iwmmxt;
132 150

  
133 151
    c->put_pixels_tab[0][0] = put_pixels16_iwmmxt;

Also available in: Unified diff