YUV overlay (was Re: [SDL] divx)
bogle at ihug.co.nz
Mon Oct 28 04:01:00 PST 2002
Thanks Bill. I have installed mpeg4ip, and looked at the code. My
program does all graphics in OpenGL, therefore to play a video I have to
use texture mapping (as I do with smpeg). It seems that the important
line in the mpeg4ip code (for my purposes) is this line in
rval = SDL_DisplayYUVOverlay(m_image, &m_dstrect);
which is where the frame finally gets displayed. I need to do this step
in OpenGL. I've been trying to find out about the YUV overlay, and I
don't really grasp it, but it seems that the display of a YUV frame is a
video card function, which may mean that it can't be done in OpenGL
except by resorting to a software conversion of YUV -> RGB, which
everyone says is a BAD THING. Is there a way to solve this?
> You can look at mpeg4ip - it should play most divx videos.
> Bill May
> Gib Bogle wrote:
> > I learned how to use the smpeg library to play mpg videos within my
> > SDL/OpenGL application. Now I'm wondering if there is a library that
> > will enable me to play divx videos. Has anyone done this?
> > thanks
> > Gib
More information about the SDL