Which blitting operation is faster ?
What is faster to blit with alpha map or with color key ?
Color key is much faster... Alpha blend needs to perform two multiplications for each pixel...
Only two multiplies per pixel??? For 16-bit colours?
Or do you mean 2 for each colour component?
If it really is 2 per pixel, I'd be very interested in knowing how this optimisation works
Or do you mean 2 for each colour component?
If it really is 2 per pixel, I'd be very interested in knowing how this optimisation works
It's two multiplications for each pixel. You can find the code in the file GapiDrawExtension.h
Impressive 
I'd thought about handling the R+B together, but hadn't thought of rearranging the equation like that
(I'd just written a really naive implementation with 6 multiplies per pixel, for rendering text to an RGB444 screen on a Nokia 7650)
I'd thought about handling the R+B together, but hadn't thought of rearranging the equation like that
(I'd just written a really naive implementation with 6 multiplies per pixel, for rendering text to an RGB444 screen on a Nokia 7650)