SDL_ Surface -> SDL_overlay conversion (RGB->YUV?)

Hi members of the SDL list,

I hope you could awnser this question for me.

Currently I’m figuring out what YUV overlay using SDL could
mean for my application I’m writing. The best part I read
was the thing about hardware accelerated (if possible) scaling
of screens. And this is something I could really need (my
current scaling code is very timeconsuming).

First, I’m a newbie concerning YUV overlays and stuff so please
forgive me if I awnser a stupid question which has been awnsered
before.

[QUESTION]

I’ve got a SDL_Surface which is infact a buffer which I would
like to convert to a SDL_Overlay surface and then blit it to
the screen. What’s the way to do this?

[/QUESTION]

I tried using the sdlyuvaddon library but no luck to display
the SDL_Surface on the screen (SDL Parachute deployment) or
I get a screen with garbled output.

I hope somebody can help me. If you have some code to share
please send it to me privately (I don’t want to bomb the
mailinglist).

Thanks in advance!

Regards,

Niels Wagenaar

Hi members of the SDL list,

I hope you could awnser this question for me.

Currently I’m figuring out what YUV overlay using SDL could
mean for my application I’m writing. The best part I read
was the thing about hardware accelerated (if possible) scaling
of screens. And this is something I could really need (my
current scaling code is very timeconsuming).

I don’t know if it matters, but you can only have one hardware accelerated
overlay at a time, and there are other gotchas that you may run into as well.

[QUESTION]

I’ve got a SDL_Surface which is infact a buffer which I would
like to convert to a SDL_Overlay surface and then blit it to
the screen. What’s the way to do this?

sdlyuvaddon

[/QUESTION]

I tried using the sdlyuvaddon library but no luck to display
the SDL_Surface on the screen (SDL Parachute deployment) or
I get a screen with garbled output.

Are you creating an overlay in the format of YV12?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment