[FFmpeg-devel] [RFC] Make swscale-test perform only one convertion

Stefano Sabatini stefano.sabatini-lala
Tue Feb 16 01:59:24 CET 2010

On date Thursday 2010-02-11 22:34:39 -0200, Ramiro Polla encoded:
> Hi Stefano,
> On Thu, Feb 11, 2010 at 9:32 PM, Stefano Sabatini
> <stefano.sabatini-lala at poste.it> wrote:
> > On date Friday 2010-01-29 01:52:23 +0100, Stefano Sabatini encoded:
> >> this is meant to simplify the testing/debuggin work in lsws, and
> >> provide a basis for a future lswstest rule, often it happens that I
> >> need to test/debug only a particular conversion, I was using the scale
> >> lavfi filter for this but it is way easier this way.
> >
> > Updated.
> What's the speed impact of this change? I suspect it will be much much
> slower on Windows...

stefano at geppetto ~/s/f/libswscale> time --output swscale-test.time swscale-test >/dev/null ^/dev/null
stefano at geppetto ~/s/f/libswscale> cat swscale-test.time 
250.18user 16.78system 4:27.08elapsed 99%CPU (0avgtext+0avgdata 8976maxresident)k
0inputs+0outputs (0major+10809389minor)pagefaults 0swaps
stefano at geppetto ~/s/f/libswscale> quilt push
Applying patch implement-swscale-test-lite.patch
patching file libswscale/swscale-test-all.sh
patching file libswscale/swscale-test.c

Now at patch implement-swscale-test-lite.patch
stefano at geppetto ~/s/f/libswscale> make swscale-test
stefano at geppetto ~/s/f/libswscale> time --output swscale-test-all-sh.time sh swscale-test-all.sh >/dev/null ^/dev/null
stefano at geppetto ~/s/f/libswscale> cat swscale-test-all-sh.time 
252.80user 24.75system 4:37.75elapsed 99%CPU (0avgtext+0avgdata 8736maxresident)k
0inputs+0outputs (0major+11358266minor)pagefaults 0swaps

stefano at geppetto ~/s/f/libswscale> cat /proc/cpuinfo  | grep "^model name"
model name	: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
model name	: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz

There is a trascurable overhead here which is a rather cheap price for
the enhanced flexibility and ease for debugging, I don't know how much
that will be in windows+MinGW.

FFmpeg = Freak & Formidable Minimalistic Purposeless Encoding/decoding Gospel

More information about the ffmpeg-devel mailing list