From 22f703cab05b7cd368f4de9e03991b7664dc5022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 1 Sep 2014 13:56:46 +0200 Subject: Initial import of argyll version 1.5.1-8 --- xicc/ccss.h | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 xicc/ccss.h (limited to 'xicc/ccss.h') diff --git a/xicc/ccss.h b/xicc/ccss.h new file mode 100644 index 0000000..0d2e128 --- /dev/null +++ b/xicc/ccss.h @@ -0,0 +1,112 @@ +#ifndef CCSS_H +#define CCSS_H + +/* + * Argyll Color Correction System + * Colorimeter Calibration Spectral Set support. + * + * Author: Graeme W. Gill + * Date: 18/8/2011 + * + * Copyright 2010 Graeme W. Gill + * All rights reserved. + * + * This material is licenced under the GNU GENERAL PUBLIC LICENSE Version 2 or later :- + * see the License2.txt file for licencing details. + * + * Based on ccmx.h + */ + +/* + * This object provides storage and application of emisive spectral + * samples that can be used to compute calibration for suitable + * colorimeters (such as the i1d3) tuned for particular types of displays. + */ + +/* ------------------------------------------------------------------------------ */ + +struct _ccss { + + /* Public: */ + void (*del)(struct _ccss *p); + + /* Set the contents of the ccss. return nz on error. */ + /* (Makes copies of all parameters) */ + int (*set_ccss)(struct _ccss *p, char *orig, char *cdate, + char *desc, char *disp, char *tech, int refrmode, char *sel, + char *ref, xspect *samples, int no_samp); + + /* write to a CGATS .ccss file */ + /* return nz on error, with message in err[] */ + int (*write_ccss)(struct _ccss *p, char *filename); + + /* write a CGATS .ccss file to a memory buffer. */ + /* return nz on error, with message in err[] */ + int (*buf_write_ccss)(struct _ccss *p, unsigned char **buf, int *len); + + /* read from a CGATS .ccss file */ + /* return nz on error, with message in err[] */ + int (*read_ccss)(struct _ccss *p, char *filename); + + /* read from a CGATS .ccss file from a memory buffer. */ + /* return nz on error, with message in err[] */ + int (*buf_read_ccss)(struct _ccss *p, unsigned char *buf, int len); + + /* Private: */ + /* (All char * are owned by ccss) */ + char *orig; /* Originator. May be NULL */ + char *crdate; /* Creation date (in ctime() format). May be NULL */ + char *desc; /* General Description (optional) */ + char *disp; /* Description of the display (Manfrr and Model No) (optional if tech) */ + char *tech; /* Technology (CRT, LCD + backlight type etc.) (optional if disp) */ + int refrmode; /* Refresh mode, -1 if unknown, 0 of no, 1 if yes */ + char *sel; /* Optional UI selector characters. May be NULL */ + char *ref; /* Name of reference spectrometer instrument (optional) */ + xspect *samples; /* Set of spectral samples */ + int no_samp; /* Number of samples */ + + /* Houskeeping - should switch this to a1log ? */ + int errc; /* Error code */ + char err[200]; /* Error message */ +}; typedef struct _ccss ccss; + +/* Create a new, uninitialised ccss */ +ccss *new_ccss(void); + +#endif /* CCSS_H */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3