Results 1 to 3 of 3

Thread: Do I must divide alpha out if DST is non-premultiplied?

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    5

    Do I must divide alpha out if DST is non-premultiplied?

    In some of the blending equations, alpha is divided out if the source is premultiplied and the destination is non-premultiplied. Do I must do the division? Are there any applications which will use premutiplied source and non-premultiplied destination? I'm just thinking it is very expensive to do a division per pixel. Anyone could help me? Thanks a lot!

  2. #2
    I just disallow non-premultiplied egl-surfaces for rendering with OpenVG

    That way I can do all my rendering in premultiplied colorspace and never run into the problem to do a post-divide step for rendering. Makes things *MUCH* easier to deal with.

    For format conversion between VGImage objects you need to do a postdivide here and there. But those operations usualy don't happen that often.

    Btw, if you think the divide per pixel is slow - wait until you've seen the equation for radial gradients.. A per pixel square root is lurking there.

    Hope that helps,
    Nils

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    5
    Well, sounds good to me!
    Hope not many people using the radial gradients, although I like those images...
    Thanks!

Similar Threads

  1. Premultiplied alpha flag ignored
    By spattija in forum WebGL - General
    Replies: 1
    Last Post: 12-15-2009, 10:51 AM
  2. Premultiplied alpha flag ignored
    By spattija in forum OS & Browser specific questions
    Replies: 0
    Last Post: 12-14-2009, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •