[MPlayer-users] opengl pipeline modification

Bruce Mills ecurbian at gmail.com
Wed Jun 30 08:30:18 CEST 2010


Thanks for your response.

We may be in the opposite ends of the same ball-park.

The required behaviour is to generate two frames from each single
frame. I have also a distortion to apply to each frame -- and this is
done through a fragment program. But, the generation of extra frames
seems to require modifying the code that is generating the frames
inside mplayer: not a fragment program, and not a video filter. And I
need to change the opengl mode to stereo. Both, seem to require code
outside the context of fragment programs and video filters, because
they are beyond any level of modification of the pixels in a frame.

Bruce.


On Wed, Jun 30, 2010 at 1:34 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de> wrote:
> 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).
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>


More information about the MPlayer-users mailing list