[FFmpeg-devel] [PATCH] faster vp6 decoding

Aurelien Jacobs aurel
Tue Feb 10 01:14:24 CET 2009

Sebastien Lucas wrote:

> Hi,
> Here is a patch for a faster vp6 decoding (on my Athlon XP 2200+, a
> little less than 7% overall gain).

Nice !

> I lazily choose to put my optimized
> code in vp3dsp because I don't understand (and if possible don't want
> to understand) the configure/makefile system.

OK. I've just cared about moving this to it's own vp6dsp file.
I've committed the pure C function to vp6dsp.c and uses it through

> I choose to do it in
> pure MMX, it should be possible to make it faster with MMXEXT, I'll
> see that later.

I've slightly modified your patch (see attached):
 - uses a vp6dsp_mmx.c file
 - some cosmetics (no trailing whitespace, etc...)
 - gcc 2.95 compat: you can't do for(int i=....)
 - rough attempt at x86_64 compatibility

Unfortunately it don't work (totally garbled output), but I've only
tested it on x86_64.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vp6dsp_mmx.diff
Type: text/x-patch
Size: 8014 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090210/0c8b876e/attachment.bin>

More information about the ffmpeg-devel mailing list