Update on: For the next release

Casper Boemann cbr at boemann.dk
Mon Aug 22 10:53:33 CEST 2005


On Monday 22 August 2005 10:48, Boudewijn Rempt wrote:
> On Monday 22 August 2005 10:41, Casper Boemann wrote:
> > On Monday 22 August 2005 09:24, Boudewijn Rempt wrote:
> > > On Thursday 11 August 2005 14:04, Boudewijn Rempt wrote:
> > > > * Colorspacee independence 20%
> > > > 	- make a base class for 8-bit/int, 16-bit/int colorspaces with
> > > > common code
> > >
> > > The base classes are created, but there's not much common code
> > > refactored into the base classes.
> >
> > just thinking that maybe it isn't as useful after all.
>
> It's not useful for every colorspac, but it can help a lot with the more
> common colorspaces, like gray, rgb, cmyk, lab, xyz, yuv: all those
> colorspaces can exist in 8/16/32 bits/channel.
>
> > Some colorspaces could have both 8 bit  and 16 bit and what else. We
> > would have to do multiple inheritance then. No problem, just remember to
> > call the functions different things, but that would a problem if we want
> > to template actual colorspaces.
>
> If your colorspace isn't one of these (like wet, wet&sticky or test) then
> you inherit the abstract colorspace and implement what's necessary.
Ah that helps

> > I assume that the intention was to move kis_integer_math.h into a class
>
> I haven't given kis_integer_math.h much thought yet.
But wouldn't that be the only thing that could be shared?
>
> > Anyway. Just wanted to say that there is more to this, and that we should
> > be careful.
>
> It if it doesn't work out, we can always go back.
Well I think it could work out. Just wanted to warn, that it might not be a 
simple walk in the park.
-- 
best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list