[MPlayer-dev-eng] [PATCH] yuv support for vo_gl

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Tue Sep 13 22:01:54 CEST 2005


Hi Reimar D?ffinger!

 On 2005.09.13 at 18:37:52 +0200, Reimar D?ffinger wrote next:

> > I'm also interested in (more) speed comparision, especially against -vo
> > gl -dr, which is faster for me than -vo gl:yuv=...
> > Also, no need to specify manyfmts, since that is the default for CVS
> > versions.
> 
> A new version, now also with support for vo_gl2. To get similar speed,
> you have to use the noglfinish option.
> Please test extensively if you can, since I intend to apply this version
> soon.

It works.
The problems: there is no OSD at all, no saturation control, brightness
and contrast are performed in software by X.

With noglfinish it's as fast as gl, or maybe a tiny bit faster. Without
it's 1.4-1.5 times slower. (5% instead of 3% on 640x480, 22% instead of
15-16% on 1920x1080)

> P.S.: one of my "design" criteria was to make gl_common as much as
> possible indepedant of MPlayer, so if you seen anything in it that might
> make it difficult to use in other projects, please tell me.

Actually, I already wanted to suggest you: can you please add the
ability to load shaders from external files? Either one file with
separated vertex and fragment codes, or two files. Since many things -
from postprocessing and cpu-hungry scaling like bicubic or 2xsai to
color correction and osd effects can be done in shaders, it would be a
great playground.

Of course, supporting GLSlang will make this feature much more useful,
and I don't even know if it is supported in current drivers, but custom
files with shader asm will allow to do a lot of interesting effects too.

-- 

Vladimir




More information about the MPlayer-dev-eng mailing list