[SDL] YUV overlay (was Re: [SDL] divx)
wmay at cisco.com
Mon Oct 28 17:28:01 PST 2002
Whatever smpeg does, mpeg4ip can be modified to do, as well. (that's
where I took most of my calls as well).
Most video codecs decode into the YUV color space, so if you're displaying
in RGB, you've got that step anyway (either the decoder does it while
decoding, or the renderer does the conversion).
Isn't an overlay just that ? Can't you overlay the YUV on top of your
OpenGL ? (These aren't questions that I know the answers to, just ones
Gib Bogle wrote:
> 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.
>>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?
More information about the SDL