I am capturing video from a device and then i compress it with a MPEG-4 codec. I think it would be a good idea to show both videos (the original and the compressed), so i want to create 2 surfaces with sdl and an overlay surface for each one.
I’m running Linux, and if i try to create 2 display surfaces with SDL_SetVideoMode it only creates 1 window.
Another posibility is to show both videos in the same window, but it doesn’t work to put 2 overlay surfaces in the same surface, even in different places, it just works 1 overlay.
Invoke a child process to create the second SDL surface, then use pipes to
communicate between processes.
JeffOn Wednesday 23 June 2004 07:52 am, Juan Carlos Granda wrote:
I am capturing video from a device and then i compress it with a MPEG-4
codec. I think it would be a good idea to show both videos (the original
and the compressed), so i want to create 2 surfaces with sdl and an overlay
surface for each one.
I am capturing video from a device and then i compress it with a MPEG-4
codec. I think it would be a good idea to show both videos (the original
and the compressed), so i want to create 2 surfaces with sdl and an
overlay surface for each one.
Any idea?
Invoke a child process to create the second SDL surface, then use pipes to
communicate between processes.
Jeff
Under win32, shared memory will be more efficient … I am not sure, though,
pipes are part of the Win32 API as this seams very POSIX…> On Wednesday 23 June 2004 07:52 am, Juan Carlos Granda wrote:
I am capturing video from a device and then i compress it with a MPEG-4
codec. I think it would be a good idea to show both videos (the original
and the compressed), so i want to create 2 surfaces with sdl and an
overlay surface for each one.
Any idea?
Invoke a child process to create the second SDL surface, then use pipes to
communicate between processes.
Jeff
Under win32, shared memory will be more efficient … I am not sure, though,
pipes are part of the Win32 API as this seams very POSIX…> On Wednesday 23 June 2004 07:52 am, Juan Carlos Granda wrote: