[MPlayer-users] opengl pipeline modification

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Jun 30 07:34:33 CEST 2010


On Wed, Jun 30, 2010 at 11:03:29AM +0800, Bruce Mills wrote:
> I am doing some specialised modifications to mplayer, using opengl. I
> have concluded that I need to modify the opengl pipeline -- rather
> than, for example, writing a filter (which I have already done, but it
> is too slow).
> 
> My question is at this time and open ended one. I have looked into the
> files but not found a simple location where I could write some code to
> modify each frame on the fly. I will be using fragment programs in
> conjunction with this, but I need a place to make small changes to the
> opengl pipeline.

I'm not sure you got your terms really right since it doesn't make
100% sense to me, but look at
libvo/gl_common.c:glSetupYUVFragprog
Or just use -vo gl:yuv=2:customprog=... (see examples in TOOLS/*.fp).
If it's anything of significant complexity you should probably
rather optimize your filter (e.g. write it using SIMD asm optimizations
or if you are really sure your problem is suitable for it, use OpenGL or
OpenCL and read the data back).


More information about the MPlayer-users mailing list