Reopenning video

Hello.
Im working with SDL & OPENGL.
But on my game, have some videos that can be processed faster with 2D mode.
I’m trying by re-running SDL_SetVideoMode, without OPENGL [or with SDL
OPENGLBLIT), but it isnt working.
The screen isnt updating again, after rerunned this function.
Have any type of restart screen function, or some trash that should be
cleaned before it?

Thanks again,

Diego Contezini________________________________________________
Message sent using UebiMiau 2.7.2

opengl will almost always be faster than SDL 2D - it can be hardware
accelerated.

opengl can do 2d buts its a bit different( basically you have to call all
the opengl setup stuff again, but optimised so 2d looks better ).

but saying SDL_SetVideoMode(/stuff/); without SDL_OPENGL should work…

SDL_OPENGLBLIT is deprecated, AFAIK.

> opengl will almost always be faster than SDL 2D - it can be hardware
accelerated.

I know that it should be faster using OPENGL, but in the case of smpeg
video, dont know why, but smpeg+opengl just work without threads, and when
using it, the buffering gets slow [ memory->video card buffering].
I think that its because dont have how to insert YUV direct to video, or
something like it. Dunno.

> opengl can do 2d buts its a bit different( basically you have to call
> all the opengl setup stuff again, but optimised so 2d looks better ).
If im right, working with SDL 2d, is to work with planes in front of the
view, I tryed, and the mem->card after YUV->RGB is slowing my videos
:frowning:

> but saying SDL_SetVideoMode(/stuff/); without SDL_OPENGL should
work…
>
> SDL_OPENGLBLIT is deprecated, AFAIK.
Yes, should work.
But when running a second SDL_SetVideoMode(), the screen dont update!
If have something that should be done before rerunning it, please, tell me.

Thanks again,

Diego ConteziniDe: Brian Barrett <brian.ripoff at gmail.com>
Para: Dwork <@Dwork>, A list for developers using the SDL
library. includes SDL-announce <sdl at libsdl.org>
Assunto: Re: [SDL] Reopenning video.
Data: 08/09/05 15:38


"No way to heaven, No way to hell!"
[Q:Any problem with my english?]
[A:All! Sounds like to talk with a parrot…]


Message sent using UebiMiau 2.7.2

Im working with SDL & OPENGL.
But on my game, have some videos that can be processed faster with 2D mode.
I’m trying by re-running SDL_SetVideoMode, without OPENGL [or with SDL
OPENGLBLIT), but it isnt working.
The screen isnt updating again, after rerunned this function.
Have any type of restart screen function, or some trash that should be
cleaned before it?

Is this Windows with the latest DirectX installed? It seems that
something has broken there…

All you should have to do is recall SDL_SetVideoMode(). You might get
better results if you explicitly call SDL_Quit() before the second
SDL_SetVideoMode(), but you shouldn’t have to do this…this is an SDL bug.

–ryan.

Is this Windows with the latest DirectX installed? It seems that
something has broken there…

All you should have to do is recall SDL_SetVideoMode(). You might get
better results if you explicitly call SDL_Quit() before the second
SDL_SetVideoMode(), but you shouldn’t have to do this…this is an SDL
bug.

–ryan.
Im using Linux, with X11 installed.
I tryed SDL_Quit() and got the same result :-(.
I would not like SDL_Quit() because i dont want to lost my textures by
memcard, but, anyway, its not working…
Can it be a bug in SDL?
Diego Contezini–
“No way to heaven, No way to hell!”
[Q:Any problem with my english?]
[A:All! Sounds like to talk with a parrot…]


Message sent using UebiMiau 2.7.2