[MPlayer-dev-eng] Patch: vo_shm - simple embedding vo

Alex Beregszaszi alex at fsn.hu
Wed Oct 29 14:41:30 CET 2003


Hi,

> > I have a project where I want to play a movie as a texture in OpenGL
> > in realtime, so naturally I turned to MPlayer, I copy+pasted from
> > vo_tga and created a video out plugin that outputs frames to shared
> > memory.
> > 
> > It doesn't use any locking, so it should be low-overhead for both 
> > mplayer and the consumer, but that also means that the consumer must
> > 
> > have it's own framerate (which my opengl application does have).
> > 
> > It works by having the consumer set up a shared memory segment that 
> > holds the shmids of two frame buffers, vo_shm writes to the
> > framebuffer with the lowest frame number and the consumer reads from
> > the framebuffer with the higest frame number, that way they don't
> > step on eachothers toes.
> > 
> > I've tested it and it works quite nicely, so here is the patch if
> > you'd like to include it:
> > http://dion.swamp.dk/dl/mplayer-1.0pre1-shm1.diff.gz
> 
> 
> If nobody answers here, i'll assume that this patch has been dropped.
I planned to commit, but after a cleanup

-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)



More information about the MPlayer-dev-eng mailing list