[MPlayer-dev-eng] [PATCH] faster lavcresample

Dan Oscarsson Dan.Oscarsson at tieto.com
Sun Jun 13 14:16:05 CEST 2010


While writing my patches to make a-v-sync use pts and vsyncs, I found
that changing speed disrupts normal processing quite a lot. Changing
speed takes a lot of CPU. Analysing I found that lavcresample is about a
1000 times slower than scaletempo to initialise. While lavcresample is
complex and I have not spent much time on it, I found that af_init calls
af_reinit twice. To reduce CPU time needed to initialise a speed change
using lavcresample by half, the attached patch makes lavcresample on
recalculate its tables each time its parameters change. So calling it
twice with same parameters only results in one table calculation.

    Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faster-lavcresample.diff
Type: text/x-patch
Size: 1305 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100613/adcdc7eb/attachment.bin>


More information about the MPlayer-dev-eng mailing list