Harlequin RIP SDK

Header file defining the Color management module interface. More...

#include <stddef.h>
#include "ripcall.h"
#include "swapi.h"
#include "swmemapi.h"
#include "swblobapi.h"

Data Structures

struct  sw_cmm_custom_colorspace
 A structure containing information about a custom colorspace. More...
 
struct  sw_cmm_instance
 An instance structure for the CMM API implementation. More...
 
struct  sw_cmm_init_params
 Collection structure for initialization parameters. More...
 
struct  sw_cmm_api
 The definition of an implementation of the alternate CMM interface. More...
 

Macros

#define SW_CMM_N_ICC_RENDERING_INTENTS   (4)
 The number of ICC rendering intents.
 
#define SW_CMM_N_SW_RENDERING_INTENTS   (6)
 The number of extended rendering intents, including absolute derivations of the ICC perceptual and saturation intents.
 

Typedefs

typedef HqnResult sw_cmm_result
 Type of return values from sw_cmm_api functions. More...
 
typedef uint8 sw_cmm_object_type
 Type of object_type values passed to some sw_cmm_api functions. More...
 
typedef uint8 sw_cmm_color_model
 Type of color_model values passed to some sw_cmm_api functions. More...
 
typedef struct sw_cmm_custom_colorspace sw_cmm_custom_colorspace
 A structure containing information about a custom colorspace. More...
 
typedef void * sw_cmm_profile
 An opaque structure defined by the alterate CMM implementation to represent profiles. More...
 
typedef void * sw_cmm_transform
 An opaque structure defined by the alternate CMM implementation to represent transforms. More...
 
typedef struct sw_cmm_api sw_cmm_api
 Type definition of the alternate CMM interface implementation.
 
typedef struct sw_cmm_instance sw_cmm_instance
 An instance structure for the CMM API implementation. More...
 
typedef struct sw_cmm_init_params sw_cmm_init_params
 Collection structure for initialization parameters.
 

Enumerations

enum  {
  SW_CMM_API_VERSION_20070525 = 2 , SW_CMM_API_VERSION_20070614 , SW_CMM_API_VERSION_20071109 , SW_CMM_API_VERSION_20160324 ,
  SW_CMM_API_VERSION_20160819 , SW_CMM_API_VERSION_20200117
}
 Version numbers defined for the CMM API. More...
 
enum  SW_CMM_RESULT {
  SW_CMM_SUCCESS = HQN_RESULT_SUCCESS , SW_CMM_ERROR = 1 , SW_CMM_ERROR_IOERROR , SW_CMM_ERROR_MEMORY ,
  SW_CMM_ERROR_INVALID , SW_CMM_ERROR_UNSUPPORTED , SW_CMM_ERROR_VERSION , SW_CMM_SUCCESS_USE_BUILTIN
}
 Return values for sw_cmm_api CMM functions. More...
 
enum  {
  SW_CMM_INTENT_PERCEPTUAL = 0 , SW_CMM_INTENT_RELATIVE_COLORIMETRIC , SW_CMM_INTENT_SATURATION , SW_CMM_INTENT_ABSOLUTE_COLORIMETRIC ,
  SW_CMM_INTENT_ABSOLUTE_PERCEPTUAL , SW_CMM_INTENT_ABSOLUTE_SATURATION
}
 Values of rendering intent for use in the intents array as passed to sw_cmm_api::open_transform() and sw_cmm_api::open_transform2(). More...
 
enum  {
  SW_CMM_TYPE_PICTURE = 0 , SW_CMM_TYPE_TEXT , SW_CMM_TYPE_SHADING , SW_CMM_TYPE_VIGNETTE = SW_CMM_TYPE_SHADING ,
  SW_CMM_TYPE_OTHER
}
 The types of graphic object. More...
 
enum  {
  SW_CMM_COLOR_MODEL_CMYK = 0 , SW_CMM_COLOR_MODEL_RGB , SW_CMM_COLOR_MODEL_GRAY , SW_CMM_COLOR_MODEL_NAMED_COLOR ,
  SW_CMM_COLOR_MODEL_CIE
}
 The color models of graphic objects reflecting the colorspace set by the job. More...
 

Functions

HqnResult swcmm_result_translate (sw_cmm_result result)
 Translate a CMM API-specific error code to a generic HqnResult error code. More...
 
sw_api_result SwRegisterCMM (sw_cmm_api *implementation)
 This routine makes an alternate CMM implementation known to the rip. More...
 

Detailed Description

Header file defining the Color management module interface.

Copyright (C) 2023 Global Graphics Software Ltd. All rights reserved.

This source code contains the confidential and trade secret information of Global Graphics Software Ltd. It may not be used, copied or distributed for any reason except as set forth in the applicable Global Graphics license agreement.