[MPlayer-users] DIRECT RENDERING WITH VIDIX
Nick Kurshev
nickols_k at mail.ru
Fri Feb 1 12:09:02 CET 2002
Hello!
I've implemented first version of direct rendering for VIDIX.
(Direct rendering is case when codec decodes directly into video memory).
Currently it works only with DShow codec only with YUY2 output fourcc.
It was tested only with radeon_vid and rage128_vid drivers.
I guess it's no proble to implement such support for matrox card too
(mga_vid use pitch = 16 for packed fourcc. I guess it's possible
since mga_vid uses pitch = 16 for UV planes of YV12 fourcc).
Currently you have no possibility disable that.
If you meet problem than use other codec family (ffdivx for example)
Usage: mplayer -vo xvidix -vc divxds -double filename
or: mplayer -vo vesa:vidix -vc divxds -double filename
My benchmarks (for -benchmark -frames 1000)
with direct rendering:
BENCHMARKs: V: 8.274s VO: 0.005s A: 0.544s Sys: 21.109s = 29.932s
BENCHMARK%: V: 27.6434% VO: 0.0158% A: 1.8187% Sys: 70.5221% = 100.0000%
before (without direct rendering):
BENCHMARKs: V: 7.413s VO: 2.244s A: 0.578s Sys: 20.028s = 30.264s
BENCHMARK%: V: 24.4960% VO: 7.4144% A: 1.9106% Sys: 66.1790% = 100.0000%
As you can see VO time is ~0 for direct rendering.
(I don't know why it's not 0 - probably it's error in benchmark stuff)
So I guess it's only start of this way ;)
Best regards! Nick
More information about the MPlayer-users
mailing list