[SDL] [patch] Optimized C 32bit RGB<->RGBA alpha masking blitters

Alex Volkov avcp-sdlmail at usa.net
Thu Sep 8 01:22:57 PDT 2005


Hello, all. A couple patches here. I am new to the list so please forgive me
if there is a more suitable bugtracker somewhere that I could not find.

The first patch is not exactly relevant to the message subject -- it's just
to correct an error hidden by #ifdefs.
The second patch adds optimized C blitters for the 32 bit surfaces
(RGB<->RGBA) for the case where the R,G,B fields are the same on source and
destination. The selection conditions could be added to the normal_blit_4[]
table instead to replace the 'else if', but the variants of R,G,B fields are
many. Some MMX/SSE code would improve the speed, of course, but this is
already much better than doing BlitNtoN() for these cases.

Cheers!
Alex.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SDL_blit_N.patch.1.txt
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050908/d8271ca3/attachment-0014.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SDL_blit_N.patch.2.txt
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050908/d8271ca3/attachment-0015.txt>


More information about the SDL mailing list