[Openicc] google SoC starts

Kai-Uwe Behrmann ku.b at gmx.de
Sun Feb 18 01:45:55 PST 2007


Am 18.02.07, 09:32 +0100 schrieb Boudewijn Rempt:

> On Sunday 18 February 2007, Lars Borg wrote:
> 
> > Is there still no single standard for how to get it on Linux?
> 
> What I do for Krita, and what's as far as I know is also done in Gimp and a 
> couple of image viewers is something like this (where KisProfile is a wrapper 
> around an lcms profile that can be initialized with just the bytes):
> 
> KisProfile *  KisProfile::getScreenProfile (int screen)
> {
> 
> #ifdef Q_WS_X11
> 
>     Atom type;
>     int format;
>     unsigned long nitems;
>     unsigned long bytes_after;
>     Q_UINT8 * str;
> 
>     static Atom icc_atom = XInternAtom( qt_xdisplay(), "_ICC_PROFILE", 
> False );
> 
>     if  ( XGetWindowProperty ( qt_xdisplay(),
>                     qt_xrootwin( screen ),
>                     icc_atom,
>                     0,
>                     INT_MAX,
>                     False,
>                     XA_CARDINAL,
>                     &type,
>                     &format,
>                     &nitems,
>                     &bytes_after,
>                     (unsigned char **) &str)
>                 ) {
> 
>         QByteArray bytes (nitems);
>         bytes.assign((char*)str, (Q_UINT32)nitems);
> 
>         return new KisProfile(bytes);
>     } else {
>         return NULL;
>     }
> #else
>     return NULL;
> 
> #endif
> }
> 
> That's as standard as it comes and it should be in the create spec, together 

While Create is somewhat overlapping, the area is more specific to 
OpenIcc and should be handled here in my opinion.

> with the default locations of icc profiles. What is missing is having a 
> control panel to set the property.

Would you take hands on such a project / SoC?

kind regards
Kai-Uwe Behrmann
--
development for color management 
www.behrmann.name + www.oyranos.org + www.cinepaint.org



More information about the openicc mailing list