Ugh... Qt4 porting

David Faure faure at kde.org
Mon May 16 14:57:35 BST 2005


On Monday 16 May 2005 15:58, Mosfet wrote:
> Lars wrote:
> >The math behind is trivial: Instead of the value being R directly, it's A*R. 
> >As long as you know it's premultiplied it should be trivial to adjust your
> >code to do the same effect.  
> 
> Okay, so I was right.
> 
> I don't even know if this deserves a response. This may be trivial to do this 
> but without conversion it's a second set of a whole crapload of code to me 
> and everyone else doing filters. "Doing it right" and natively using this 
> format would mean two versions of most everything that accesses a pixel. 

Sorry for the possibly stupid suggestion, but isn't it possible to have A=1
in the non-premultiplied case?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list