Scaling

I have 384x240 virtual screen. I want to scale it to 640x480 or 800x600. What
is simple way to do this? Can I use Xvideo ? Can SDL do it itself?–
All eyes see the figure of the wizard
As he climbs to the top of the world
No sound, as he falls instead of rising "Stargazer"
Time standing still, then there’s blood on the sand - Ronnie James Dio

Look at SDL web por SDL_rotozoom library

En dt, 2001-11-13 a 03:34, Jacek Pop?awski escribi?:

I have 384x240 virtual screen. I want to scale it to 640x480 or 800x600. What
is simple way to do this? Can I use Xvideo ? Can SDL do it itself?-- 
All eyes see the figure of the wizard
As he climbs to the top of the world
No sound, as he falls instead of rising                             "Stargazer"
Time standing still, then there's blood on the sand         - Ronnie James Dio

_______________________________________________
SDL mailing list
SDL at libsdl.org

http://www.libsdl.org/mailman/listinfo/sdl

That code looks slow, maybe it’s becouse it also rotating.
I need just zooming, and if it’s possible - Xvideo.On Tue, Nov 13, 2001 at 08:11:55AM +0100, samsaga2 wrote:

Look at SDL web por SDL_rotozoom library


I think about closing the door
And lately I think of it more
I’m living well out of my time "Falling off the Edge of the World"
I feel like I’m losing my mind - Ronnie James Dio

Then the best option is OpenGL.
SDL doesn’t support xvideo.

En dt, 2001-11-13 a 08:45, Jacek Pop?awski escribi?:On Tue, Nov 13, 2001 at 08:11:55AM +0100, samsaga2 wrote:
> Look at SDL web por SDL_rotozoom library

That code looks slow, maybe it's becouse it also rotating.
I need just zooming, and if it's possible - Xvideo.

-- 
I think about closing the door
And lately I think of it more
I'm living well out of my time              "Falling off the Edge of the World"
I feel like I'm losing my mind                              - Ronnie James Dio

_______________________________________________
SDL mailing list
SDL at libsdl.org

http://www.libsdl.org/mailman/listinfo/sdl

Then the best option is OpenGL.
SDL doesn’t support xvideo.

It pretty much depends on your driver. SDL supports xvideo via
YUVOverlay-calls and wether or not it’s faster to scale and display
images on screen with OpenGL or xvideo depends on your graphics card
drivers and possibly on the card hardware itself.

OpenGL texture uploads tend to be slow and if you’re doing hi-res
animation you probably cannot upload textures fast enough. If you want
to show single picture streched (and/or) scaled only then OpenGL is the
way. For animation xvideo could be better.

SDL doesn’t support RGB overlay surfaces so you need to work in YUV
colorspace.

  • mikko

Then the best option is OpenGL.

for OpenGL you need suported video card (in Linux!) and quite fast cpu

SDL doesn’t support xvideo.

are you sure? I heard mplayer with vo=sdl can use xv… am I wrong?On Tue, Nov 13, 2001 at 08:57:40AM +0100, samsaga2 wrote:


I hate you and you hate me
And everybody smiles
So money talks and no-one walks
But everybody’s crawling “Evilution” - Ronnie James Dio

hm… so I need to convert my RGB virtual screen to YUV then scale it?

"int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect);

Blit the overlay to the surface specified when it was created. The SDL_Rect
structure, dstrect, specifies the position and size of the destination. If the
dstrect is a larger or smaller than the overlay then the overlay will be
scaled, this is optimized for 2x scaling."

Hm… but I can write 2x scaling myself, what about 1,5x (and other) scaling?On Tue, Nov 13, 2001 at 01:17:39PM +0200, Mikko Rantalainen wrote:

It pretty much depends on your driver. SDL supports xvideo via
YUVOverlay-calls and wether or not it’s faster to scale and display
images on screen with OpenGL or xvideo depends on your graphics card
drivers and possibly on the card hardware itself.


I hate you and you hate me
And everybody smiles
So money talks and no-one walks
But everybody’s crawling “Evilution” - Ronnie James Dio

En dt, 2001-11-13 a 14:04, Jacek Pop?awski escribi?:

> Then the best option is OpenGL.

for OpenGL you need suported video card (in Linux!) and quite fast cpu

> SDL doesn't support xvideo.

are you sure? I heard mplayer with vo=sdl can use xv... am I wrong?

I’m not sure :)On Tue, Nov 13, 2001 at 08:57:40AM +0100, samsaga2 wrote:

-- 
I hate you and you hate me
And everybody smiles
So money talks and no-one walks
But everybody's crawling                        "Evilution" - Ronnie James Dio

_______________________________________________
SDL mailing list
SDL at libsdl.org

http://www.libsdl.org/mailman/listinfo/sdl

Actually, you don’t need much of a CPU at all for OpenGL, unless you need
it for heavy transformations and/or lots of polygons. The reason why
OpenGL may seem slow with slow CPUs is that there’s much more going on
behind the scenes in 3D engines than what actually gets rendering on the
screen.

However, you do need all the CPU power you can get, and then some, to
compensate for the lack of busmaster DMA transfers support in most
drivers. Indeed, it’s more of a driver bug than a valid reason to get the
fastest CPU you can find, but it’s still a real issue if you want
video-on-texture, procedural textures and the like.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Tuesday 13 November 2001 14:04, Jacek Pop?awski wrote:

On Tue, Nov 13, 2001 at 08:57:40AM +0100, samsaga2 wrote:

Then the best option is OpenGL.

for OpenGL you need suported video card (in Linux!) and quite fast cpu