[argyllcms] Re: sRGB.icm changed in Argyllcms 1.6.1

  • From: Elle Stone <ellestone@xxxxxxxxxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Fri, 31 Jan 2014 12:30:43 -0500

On 01/29/2014 08:34 AM, Graeme Gill wrote:
Elle Stone wrote:

Thanks! Will this create profiles that deal with the hexadecimal rounding issue?

Yes,
        Graeme.


Thanks very much! for the sample code.

I'm not familiar with jam, but after compiling everthing the first time, this command compiles only mkDispProf.c:

argyll163_src $ jam -q -fJambase -j 3 -t icc/mkDispProf.c

The existing mkDispProf.c makes an sRGB profile with the sRGB TRC point curve:

static double gdv2dv(double iv) {
        double ov;

        if (iv < 0.04045)
                ov = iv/12.92;
        else
                ov = pow((iv + 0.055)/1.055, 2.4);
        return ov;
}

It was easy to modify mkDispProf.c to make a profile with a different set of primaries and different white point, plus a linear point curve.

How do you modify it to make a true gamma curve such as gamma=1.0, gamma=1.8, or gamma=2.2?


I tried saving the modified mkDispProf.c under a new name "mkNewProf.c" and compiling it:

argyll163_src $ jam -q -fJambase -j 3 -t icc/mkNewProf.c

but that doesn't work. Perhaps some other file needs to be modified to tell jam what to compile?

Elle


Other related posts: