[FFmpeg-devel] [PATCH] Optimization of AMR NB and WB decoders for MIPS

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri May 18 17:22:11 CEST 2012


On Fri, May 18, 2012 at 03:11:00PM +0000, Babic, Nedeljko wrote:
> > Can't you make them selectable at runtime like we try for all
> > optimizations?
> 
> Can you please be more specific regarding this?
> Changes made to configure script are similar to what was done for 
> other architectures and the way optimizations are included is also 
> similar (to other architectures).

Look at libavcodec/x86/lpc_mmx.c, it uses function pointers depending
on CPU features detected at runtime.
I am asking because I am hoping that like x86 MIPS has chosen a
sane design concerning instruction set extensions.
Everyone else decided that thinking ahead is not part of
what should be done during instruction set design and shoved the problem
onto software developers, requiring them to rebuild their software for
each new chip they come up with (and of course completely breaking the
concept of a universal distribution that runs on every system with that
CPU, we wouldn't want to be user friendly after all, that would be bad!).


More information about the ffmpeg-devel mailing list