[smpeg] SMPEG_setdisplay()

Manuel Arguelles paco at flamingo-games.com
Tue Feb 17 18:35:54 EST 2004


thanx, 
btw, I was looking at glmovie code, and found that they call smpeg_setdisplay using a different surface, I think that I can use that, the problem is that I can't play anything using glmovie, if I let the code with SDL_OPENGL I can see a fast pop up window then it dies, if I change it to SDL_FULLSCREEN the windows goes black for amount of time (maybe the same time that the video length) but with no output, my video card is a intel i810, and glxinfo shows:

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2

and I can see glxgears demo fine...

any ideas?

----- Original Message -----
Chunky Kibbles wrote:
> On Mon, Feb 16, 2004 at 04:12:46PM -0500, Manuel Arguelles wrote:
> > Thanx,
> > I did it, but without success, I just created a new surface
> > and (acording to plaympeg) I changed the surface parameter of
> > SMPEG_setdisplay(), I also tried to blit and update the new surface,
> > but I'm not getting any video :(
> > 
> > I'm creating the Surface with:
> > video = SDL_CreateRGBSurface(SDL_SWSURFACE |
> > SDL_HWSURFACE,352,240,16,screen->format->Rmask,screen->format->Gmask,
> > screen->format->Bmask,screen->format->Amask);
> > 
> > when do I have to blit it? after the smpeg_setdisplay? after the main
> > loop? inside the main loop? what about the update?
> > 
> > (sorry, as you can see I'm a little lost here...) :(
> > thanx for you time
> 
> Quite honestly, at this point, you've got further than I've ever
> tried. My first two responses are "don't try a HWSURFACE" and "make
> sure that the size and bit depth matches your movie", but TBH I'm not
> at all sure.
> 
> Gary (-;
> 
> > ----- Original Message -----
> > Chunky Kibbles wrote:
> > > On Thu, Feb 12, 2004 at 01:41:29AM -0500, Manuel Arguelles wrote:
> > > > hi,
> > > >
> > > > I took a look at smpeg.cpp and notice that SMPEG_setdisplay()
> > > > has a parameter for the SDL surface, in plaympeg example the use that
> > > > destination surface as screen (the first and main surface); the question
> > > > is: if it's possible to asign a different surfac
> > >
> > > Of course - that's why the feature's there!
> > >
> > > Just create a different SDL_Surface(3), probably using something like
> > > SDL_CreateRGBSurface(3) and friends.
> > >
> > > Gary (-;
> > >
> > >
> > 
> > 
> 
> 






More information about the smpeg mailing list