Hi all,

I'm trying to implement support for the blitting flags in the cle266 driver.
(Within the limitations of the hardware anyway.)

Can anyone tell me if my assumptions are correct or not? (See below)

Regards,
Andreas

---------------------

1. DSBLIT_BLEND_ALPHACHANNEL and DSBLIT_BLEND_COLORALPHA are mutually exclusive.

2. DSBLIT_COLORIZE, DSBLIT_SRC_PREMULTIPLY, DSBLIT_DST_PREMULTIPLY and 
DSBLIT_DEMULTIPLY can be combined freely.

3. DSBLIT_BLEND_ALPHACHANNEL =

   Pass on source pixel alpha channel to the blending function
   If the source image does not have an alpha channel, assume
   a fixed alpha of 1.0.
   Can not be combined with DSBLIT_BLEND_COLORALPHA.

4. DSBLIT_BLEND_COLORALPHA =

   Use a fixed alpha, set by the current drawing color instead
   of the source pixel alpha, in the blending function.
   Can not be combined with DSBLIT_BLEND_ALPHACHANNEL.

5. DSBLIT_COLORIZE =

   Multiply color and alpha of a source pixel with the current
   corresponding elements in the current drawing color, before
   passing the pixel on to the blending function.

6. DSBLIT_SRC_PREMULTIPLY =

   Multiply the color of a source pixel with the pixel's alpha
   before passing the pixel on to the blending function.
   The alpha channel itself remains unchanged.

   If the source image does not have an alpha channel, assume
   a fixed alpha of 1.0.

7. DSBLIT_DST_PREMULTIPLY =

   Same as DSBLIT_SRC_PREMULTIPLY,
   but affects pixels at the destination instead.

8. DSBLIT_DEMULTIPLY =

   After blending, right before writing a pixel to the
   destination, divide the color in a pixel with its alpha.

Btw, when I write "multiply", I mean element-wise multiplication of the normalized 
color (0.0, 1.0).




-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to