[argyllcms] Re: Loading CAL file with dispwin

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 11 Feb 2008 09:25:19 +1100

Roger Breton wrote:
dispwin -v -V"myCalibration.cal"

The last argument is the calibration file or profile, it's
a separate argument, not a parameter to the 'V' flag.

Notice that the usage looks like this:

usage: dispwin [options] [calfile]
 -v                   Verbose mode
 -d n                 Choose the display from the following list (default 1)
    1 = 'DISPLAY1, at 0, 0, width 1280, height 1024 (Primary Display)'
 -p ho,vo,ss          Position test window and scale it
 -i                   Run forever with random values
 -m                   Manually cycle through initial values
 -f                   Test grey ramp fade
 -r                   Test just Video LUT loading
 -n                   Test native output (rather than through Video LUT)
 -c                   Load a linear display calibration
 -x                   Don't exit after loading a display calibration
 -V                   Verify that calfile is currently loaded
 calfile              Load display calibration (.cal or .icm) into LUT, and exit

The -V flag has no parameter after it.
The very last argument is the calibration file.
All arguments are separated by a white space,
but parameters to options may or may not be separated
by a white space from the associated option at the users
discretion.

So -r need to be separated from -n with white space.
-V needs to be separated from calfile by white space.

But the display selection to the -d parameter
may come directly after it:

        -d1
or not
        -d 1

If there were a flag with a usage like this:

 -X [extrafile]

Then the optional 'extrafile' could come
directly after -X, because it's a parameter
to the option -X, rather than being a separate option or
file parameter in its own right.

Graeme Gill.

Other related posts: