Hardware Scaling

Hi,
does anybody of you know, if there’s a way to do hardware scaling on linux.
I want to scale a hw surface into another hw surface. Scaling by copying
pixel by pixel takes to long, so I need something what works similar to a
blit!!!
I have taken a look into the X-Server; there are some function within the
xv extension, but I wasn’t able to get them running in combination with my
SDL application.
I’m using dga on XFree86 4.1 and Matrox G450 videocard. Any help for me?

thanks, Helge

Well, if there is hardware acceleration implemented for it, it would be
nice if someone added support for it to SDL. :wink:

If you want to play with X stuff from within you application, you need to
acces SDL’s X specific internals. You may have to include some headers
that aren’t meant for use by applications. (Of course, don’t do this
sort of stuff in production code!)

Anyway, Xv…? Are you sure those calls are meant to be used with the
context that SDL sets up? (Might be that the calls don’t work with DGA,
or something.)

//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 09 October 2001 10:47, Helge wrote:

Hi,
does anybody of you know, if there’s a way to do hardware scaling on
linux. I want to scale a hw surface into another hw surface. Scaling by
copying pixel by pixel takes to long, so I need something what works
similar to a blit!!!
I have taken a look into the X-Server; there are some function within
the xv extension, but I wasn’t able to get them running in combination
with my SDL application.
I’m using dga on XFree86 4.1 and Matrox G450 videocard. Any help for
me?

Oh, and of course, there’s always OpenGL. Lightning fast (if it’s
accelerated, that is… heh), nice and very portable - and you get a
ton of bonus posibilities, like fast interpolation (bi- and trilinear on
most cards; very high quality on G4xx cards), alpha blending, per-vertex
blend colors and so on.

//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 09 October 2001 10:47, Helge wrote:

Hi,
does anybody of you know, if there’s a way to do hardware scaling on
linux. I want to scale a hw surface into another hw surface. Scaling by
copying pixel by pixel takes to long, so I need something what works
similar to a blit!!!
I have taken a look into the X-Server; there are some function within
the xv extension, but I wasn’t able to get them running in combination
with my SDL application.
I’m using dga on XFree86 4.1 and Matrox G450 videocard. Any help for
me?