Base class for u16 color models?

Boudewijn Rempt boud at valdyas.org
Tue Aug 9 21:12:09 CEST 2005


On Tuesday 09 August 2005 20:53, Casper Boemann wrote:

> c++ allows multiple inheritance so we could elaborate on the hierarchy
> later on if needed.
> we should alsoe have a baseclass for u8 i think

Good point.

> > And so on... And of course, the same for the 32bit float & integer
> > colorspace once Adrian has those done. I like the prolog & epilog
> > composite macros in the 16 bit rgb a lot, by the way :-) -- but maybe we
> > can move the bitBlt with the switch that actually does calls the
> > composition routines into KisStrategyColorSpace?
>
> but wouldn't that just be duplicated code in every colorspace


No -- at the moment there's a lot of duplicated code; I want to move as much 
of that as possible to the base class and have only the dedicated composite 
ops in the color classes.


> > The idea with XYZ is, by the way, to have as accurate a default
> > implemenation as possible, but one that is slow enough to stimulate us to
> > provide optimized implementations in the individual colorspaces :-)
>
> what do you mean with XYZ

The xyz colorspace -- or should I use lab here? My sources are not in 
agreement about which is the best for a generic fall back.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050809/c74904d9/attachment.pgp


More information about the kimageshop mailing list