Just made a few benchmark with YUV surfaces on SDL 1.2/1.3, to see
benefit/regressions in a quite old configuration with an overlay something
smaller than a full hd video:
Machine:
Dual P4 3ghz, 2gb ram, GF8400, Ubuntu 10.10, NVIDIA driver 260.19.06
SDL : hg summary -> parent: 5242:78ce7bfd0faf tip (friday checkout)
Stream (Knights_Quest_576p.wmv, easily and freely available on the net,
NVIDIA 3d stereoscopic demo):
Stream #0.1(eng): Video: vc1, yuv420p, 1440x576, 4000 kb/s
Raw decoding speed (no video blitting, ALL VERSIONS):
Benchmark finished: 2405 frames in 25.663000 seconds -> 93.714687fps
SDL 1.2 HW YUV overlay:
Benchmark finished: 2405 frames in 42.378000 seconds -> 56.751144fps
SDL 1.3 (1.2 api emulation):
Benchmark finished: 2405 frames in 55.445000 seconds -> 43.376319fps
SDL 1.3 opengl (STREAMING + Lock/Unlock):
Benchmark finished: 2405 frames in 56.949000 seconds -> 42.230768fps
SDL 1.3 software (STREAMING + Lock/Unlock):
Benchmark finished: 2405 frames in 110.664000 seconds -> 21.893175fps
So my advice is that there is no benefit in changing the API of a video
player to SDL 1.3, just stick with SDL 1.2 code and use it with emulation
layer.–
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)