SDL_BlitSurface() & SDL_SetColorkey() with SDL_Overlay surfaces?

I?m using YUY2 surfaces created with SDL_CreateYUVOverlay in VIDEO_MEMORY.
I need to realize a blit operation between YUY2 surfaces with a color key.
I would like to perform this
process without using any auxiliar surfaces in RGB for the blitting
because in my application
it?s very important the performance. Is it possible ?

How can I blit the surfaces and apply any color key ? Could I use the
functions SDL_BlitSurface() &
SDL_SetColorkey() that work with SDL_Surfaces ?

Can anybody help me please ?

Thanks a lot in advance .

Jorge.

jorge Scati wrote:

I?m using YUY2 surfaces created with SDL_CreateYUVOverlay in
VIDEO_MEMORY.
I need to realize a blit operation between YUY2 surfaces with a color
key. I would like to perform this
process without using any auxiliar surfaces in RGB for the blitting
because in my application it?s very important the performance. Is it
possible ?

No, not even the hardware can do that. The overlays are really strange
beasts, and bacially you can’t mix them.

How can I blit the surfaces and apply any color key ? Could I use the
functions SDL_BlitSurface() & SDL_SetColorkey() that work with
SDL_Surfaces ?

No.

Now maybe if you were a bit more clear on what you’re trying to achieve
(playing multiple videos with colorkeying ?) we could help.

Stephane