At 06:30 AM 5/25/2002 +1000, you wrote:
Yes, but how to position the inset surface within the main
I did this with a SDL_Rect, you just blit the smpeg surface onto your main
if(SDL_mutexP(smpeg_holder_lock) == -1) return 0;
if(SDL_mutexV(smpeg_holder_lock) == -1) return -1;
you use a mutex to keep the threads happy
also for the initialization i did this
//created as a software surface to avoid a
mpeg = SMPEG_new("c:\\tmp\\random2.mpeg",&info,1);
smpeg_mutex_lock = SDL_CreateMutex();// keep threads happy
smpeg_holder_lock = SDL_CreateMutex();
SMPEG_scaleXY(mpeg, sdl_smpeg_target->w, sdl_smpeg_target->h);
Shane>On Sat, 2002-05-25 at 03:56, nbs wrote:
On Fri, May 24, 2002 at 10:34:00PM +1000, Richard Keech wrote:
I’m seeking advice and/or code examples of how to embed an SMPEG
screen within a larger SDL screen. All SMPEG examples I’ve seen
have the SMPEG screen being the entire window.
Just make a new surface, and point SMPEG to it, rather than to your
I did this when I was working on VidSlide (unfinished title :^/ ).
It allowed me to turn a video file into a puzzle.
SDL mailing list
SDL at libsdl.org