We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 7

Summary: Flipped blitters...
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2 CC: max
Version: HG 1.2   
Hardware: All   
OS: All   
Attachments: Flipped blitters patch

Description Ryan C. Gordon 2006-01-03 11:44:11 UTC
From: Gabriel <mystml@adinet.com.uy>
To: SDL Mailing List <sdl@libsdl.org>
Date: Thu, 26 May 2005 19:44:34 -0300
Subject: [SDL] Flipped blitters patch

Here's a first (read : incomplete, buggy, slow) implementation of the
flipped blitters for your testing pleasure. The diff is against the SDL
1.2.8 tar.gz package from libsdl.org.

What works : all the blitters in SDL_blit_A.c and SDL_BlitCopy(). This
means blitting any surface with alpha over any surface should work. 

How to use : and pSurface->flags with SDL_HFLIP or SDL_VFLIP (vflip not
working for SDL_BlitCopy()) and blit. I've included a quite simple test
program.

Actually, the only *slow* blitter is SDL_BlitCopy(). The alpha blitters
should be as fast as the non-flipped blitters, with SSE and MMX and all.

Still a lot to do and fix, but this is a start...

	--Gabriel
Comment 1 Ryan C. Gordon 2006-01-03 11:44:42 UTC
Created attachment 5 [details]
Flipped blitters patch
Comment 2 Ryan C. Gordon 2006-01-05 02:33:44 UTC
(Changed severity to "API change" for a bunch of bugs.)

--ryan.

Comment 3 Ryan C. Gordon 2006-01-27 11:23:01 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 4 Max Horn 2006-03-22 13:12:04 UTC
Could somebody add an explanation here what exactly "flipped blitters" are and what they are good for? :-)
Comment 5 Sam Lantinga 2006-04-27 04:41:57 UTC
(In reply to comment #4)
> Could somebody add an explanation here what exactly "flipped blitters" are and
> what they are good for? :-)
> 

It's basically a way to get mirrored and rotated sprites without using extra memory to store the images.
Comment 6 Ryan C. Gordon 2006-10-28 20:33:03 UTC
Tossing this bug to Sam to do what he wants with it.

--ryan.

Comment 7 Sam Lantinga 2007-07-05 22:24:23 UTC
Keeping this for future reference, but at this point I think it's not going to be added to SDL 1.2