Harlequin RIP SDK

The %cmmparams% example PostScript device for setting configuration parameters used by the PureColor CMM example. More...

#include <stdio.h>
#include <time.h>
#include <string.h>
#include "std.h"
#include "devutils.h"
#include "kitdevs.h"
#include "skinkit.h"
#include "rdrapi.h"
#include "skindevs.h"
#include "swdevice.h"
#include "cmm_params.h"

Data Structures

struct  pureColorPrivate
 Private data for the %cmmparams% PostScript device. More...
 

Typedefs

typedef struct pureColorPrivate pureColorPrivate
 Private data for the %cmmparams% PostScript device.
 

Enumerations

enum  
 Indices into the %cmmparams% parameter table for each key.
 

Functions

static int32 cmmSetError (DEVICELIST *dev, DEVICE_result error)
 Set the error code for the %cmmparams% device.
 
static int32 cmmInit (DEVICELIST *dev)
 Initialise a cmmParams object with the default values for the params.
 
static int32 cmmSetParam (DEVICELIST *dev, DEVICEPARAM *param)
 Set a %cmmparams% device param with a new value. More...
 
static int32 cmmStartParam (DEVICELIST *dev)
 Prepare the device for a set of calls to cmmGetParam() as part of currentdevparams. More...
 
static int32 cmmGetParam (DEVICELIST *dev, DEVICEPARAM *param)
 Retrieve the current value of a %cmmparams% device param. More...
 
HqBool purecolor_register_params (void)
 Register the CMM_PARAMS_DEVICE_TYPE PostScript device type. More...
 

Variables

static char * cmmDevNames [N_CMM_PARAMS]
 The keys for the cmmparams% parameters.
 
cmmParamsg_cmmParams = ((void*)0)
 Pointer to the mounted %cmmparams% device. More...
 

Detailed Description

The %cmmparams% example PostScript device for setting configuration parameters used by the PureColor CMM example.

Variable Documentation

◆ g_cmmParams

cmmParams* g_cmmParams = ((void*)0)

Pointer to the mounted %cmmparams% device.

We only allow one device to be mounted at a time. This pointer is referenced by the CMM PureColor module which it uses to control which colors should be deemed to be pure.