Colorspaces names scheme

Casper Boemann cbr at boemann.dk
Sun Jan 1 19:04:50 CET 2006


On Saturday 31 December 2005 19:48, Boudewijn Rempt wrote:
> On Saturday 31 December 2005 18:56, Cyrille Berger wrote:
> > Hi,
> > I have notice some problems with the way or colorspace are named,
> > currently we have : RGBA, RGBA16, CMYK, CMYKA16, LABA (etc...)
> >
> > Some thoughts about it :
> > 1) CMYK should be named CMYKA
> > 2) LABA is a 16bits channels whereas all other colorspaces without
> > numbers are 8bits
> >
> > I suggest that in the name we allways include the depth meaning RGBA
> > should be renamed RGBA8 and LABA renamed LABA16 (etc...). And we have
> > also a difference between colorspaces which used unsigned (U), signed (I)
> > or float (F), I think it might be a good idea to add the type of the
> > channel then RGBA become RGBA8U LABA -> LABA16U etc... (I know it can
> > become even more complicated in the future, when colorspaces will have
> > different data type for each channel, but maybe someone will have a
> > better idea)
> >
> > any opinions ? If you agree I will do the change during next week.
>
> In principle I agree -- however, we should not start depending on the names
> for recoginizing the properties of the colorspace in code.
I agree with both of you, plus LABA16 has mixed types already ;)

So I dont think we should add the type and we need to be carefull with size. 
Perhabs only use size when we have different versions
-- 
best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list