1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
#ifndef XRGA_H
#define XRGA_H
/*
* This file contains resources to translate colors to/from
* X-Rites XRGA calibration standard. This only applies to
* reflective measurements from historical Gretag-Macbeth & X-Rite
* instruments, and current X-Rite instruments.
*/
/*
* Author: Graeme W. Gill
* Date: 9/2/2016
* Version: 1.00
*
* Copyright 2016 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.
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
xcalstd_nonpol = 0, /* Unpolarized */
xcalstd_pol = 1 /* Polarized */
} xcalpol;
/* Apply a conversion from one calibration standard to another to an xspect. */
void xspec_convert_xrga(xspect *dst, xspect *srcp, xcalpol pol, xcalstd dsp, xcalstd ssp);
/* Apply a conversion from one calibration standard to another to an array of ipatch's */
void ipatch_convert_xrga(ipatch *vals, int nvals,
xcalpol pol, xcalstd dsp, xcalstd ssp, int clamp);
/* Macro returns true if a conversion is needed */
#define XCALSTD_NEEDED(ssp, dsp) \
((ssp) != xcalstd_native && (dsp) != xcalstd_native && (dsp) != (ssp))
#ifdef __cplusplus
}
#endif
#endif /* XRGA_H */
|