diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx')
-rwxr-xr-x | debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx | 33970 |
1 files changed, 33970 insertions, 0 deletions
diff --git a/debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx b/debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx new file mode 100755 index 00000000..fe1aca76 --- /dev/null +++ b/debian/lcms/lcms-1.19.dfsg2/python/lcms_wrap.cxx @@ -0,0 +1,33970 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.36 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPYTHON +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + +#ifdef __cplusplus +template<typename T> class SwigValueWrapper { + T *tt; +public: + SwigValueWrapper() : tt(0) { } + SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } + SwigValueWrapper(const T& t) : tt(new T(t)) { } + ~SwigValueWrapper() { delete tt; } + SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } + operator T&() const { return *tt; } + T *operator&() { return tt; } +private: + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); +}; + +template <typename T> T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Python.h has to appear first */ +#include <Python.h> + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic CAPI SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the swig runtime code. + In 99.9% of the cases, swig just needs to declare them as 'static'. + + But only do this if is strictly necessary, ie, if you have problems + with your compiler or so. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The swig conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old swig versions, you usually write code as: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit as: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + that seems to be the same, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + requires also to SWIG_ConvertPtr to return new result values, as + + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + swig errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() + + + */ +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + + + +#include <string.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class<int>" == "Class<int >", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* think of this as a c++ template<> or a scheme macro */ +#define SWIG_TypeCheck_Template(comparison, ty) \ + if (ty) { \ + swig_cast_info *iter = ty->cast; \ + while (iter) { \ + if (comparison) { \ + if (iter == ty->cast) return iter; \ + /* Move iter to the top of the linked list */ \ + iter->prev->next = iter->next; \ + if (iter->next) \ + iter->next->prev = iter->prev; \ + iter->next = ty->cast; \ + iter->prev = 0; \ + if (ty->cast) ty->cast->prev = iter; \ + ty->cast = iter; \ + return iter; \ + } \ + iter = iter->next; \ + } \ + } \ + return 0 + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); +} + +/* Same as previous function, except strcmp is replaced with a pointer comparison */ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { + SWIG_TypeCheck_Template(iter->type == from, into); +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + + +/* Add PyOS_snprintf for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# define PyOS_snprintf _snprintf +# else +# define PyOS_snprintf snprintf +# endif +#endif + +/* A crude PyString_FromFormat implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 + +#ifndef SWIG_PYBUFFER_SIZE +# define SWIG_PYBUFFER_SIZE 1024 +#endif + +static PyObject * +PyString_FromFormat(const char *fmt, ...) { + va_list ap; + char buf[SWIG_PYBUFFER_SIZE * 2]; + int res; + va_start(ap, fmt); + res = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); +} +#endif + +/* Add PyObject_Del for old Pythons */ +#if PY_VERSION_HEX < 0x01060000 +# define PyObject_Del(op) PyMem_DEL((op)) +#endif +#ifndef PyObject_DEL +# define PyObject_DEL PyObject_Del +#endif + +/* A crude PyExc_StopIteration exception for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# ifndef PyExc_StopIteration +# define PyExc_StopIteration PyExc_RuntimeError +# endif +# ifndef PyObject_GenericGetAttr +# define PyObject_GenericGetAttr 0 +# endif +#endif +/* Py_NotImplemented is defined in 2.1 and up. */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef Py_NotImplemented +# define Py_NotImplemented PyExc_RuntimeError +# endif +#endif + + +/* A crude PyString_AsStringAndSize implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} +# endif +#endif + +/* PySequence_Size for old Pythons */ +#if PY_VERSION_HEX < 0x02000000 +# ifndef PySequence_Size +# define PySequence_Size PySequence_Length +# endif +#endif + + +/* PyBool_FromLong for old Pythons */ +#if PY_VERSION_HEX < 0x02030000 +static +PyObject *PyBool_FromLong(long ok) +{ + PyObject *result = ok ? Py_True : Py_False; + Py_INCREF(result); + return result; +} +#endif + +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIME PyObject* +SWIG_Python_ErrorType(int code) { + PyObject* type = 0; + switch(code) { + case SWIG_MemoryError: + type = PyExc_MemoryError; + break; + case SWIG_IOError: + type = PyExc_IOError; + break; + case SWIG_RuntimeError: + type = PyExc_RuntimeError; + break; + case SWIG_IndexError: + type = PyExc_IndexError; + break; + case SWIG_TypeError: + type = PyExc_TypeError; + break; + case SWIG_DivisionByZero: + type = PyExc_ZeroDivisionError; + break; + case SWIG_OverflowError: + type = PyExc_OverflowError; + break; + case SWIG_SyntaxError: + type = PyExc_SyntaxError; + break; + case SWIG_ValueError: + type = PyExc_ValueError; + break; + case SWIG_SystemError: + type = PyExc_SystemError; + break; + case SWIG_AttributeError: + type = PyExc_AttributeError; + break; + default: + type = PyExc_RuntimeError; + } + return type; +} + + +SWIGRUNTIME void +SWIG_Python_AddErrorMsg(const char* mesg) +{ + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + + if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); + if (value) { + PyObject *old_str = PyObject_Str(value); + PyErr_Clear(); + Py_XINCREF(type); + PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); + Py_DECREF(old_str); + Py_DECREF(value); + } else { + PyErr_SetString(PyExc_RuntimeError, mesg); + } +} + + + +#if defined(SWIG_PYTHON_NO_THREADS) +# if defined(SWIG_PYTHON_THREADS) +# undef SWIG_PYTHON_THREADS +# endif +#endif +#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ +# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) +# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ +# define SWIG_PYTHON_USE_GIL +# endif +# endif +# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ +# ifndef SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# endif +# ifdef __cplusplus /* C++ code */ + class SWIG_Python_Thread_Block { + bool status; + PyGILState_STATE state; + public: + void end() { if (status) { PyGILState_Release(state); status = false;} } + SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} + ~SWIG_Python_Thread_Block() { end(); } + }; + class SWIG_Python_Thread_Allow { + bool status; + PyThreadState *save; + public: + void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} + ~SWIG_Python_Thread_Allow() { end(); } + }; +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block +# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow +# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() +# else /* C code */ +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() +# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() +# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) +# endif +# else /* Old thread way, not implemented, user must provide it */ +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) +# define SWIG_PYTHON_THREAD_END_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# endif +# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) +# define SWIG_PYTHON_THREAD_END_ALLOW +# endif +# endif +#else /* No thread support */ +# define SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# define SWIG_PYTHON_THREAD_END_BLOCK +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# define SWIG_PYTHON_THREAD_END_ALLOW +#endif + +/* ----------------------------------------------------------------------------- + * Python API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* cc-mode */ +#endif +#endif + +/* ----------------------------------------------------------------------------- + * Constant declarations + * ----------------------------------------------------------------------------- */ + +/* Constant Types */ +#define SWIG_PY_POINTER 4 +#define SWIG_PY_BINARY 5 + +/* Constant information structure */ +typedef struct swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_const_info; + +#ifdef __cplusplus +#if 0 +{ /* cc-mode */ +#endif +} +#endif + + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * pyrun.swg + * + * This file contains the runtime support for Python modules + * and includes code for managing global variables and pointer + * type checking. + * + * ----------------------------------------------------------------------------- */ + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) +#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) +#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) +#define swig_owntype int + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) +#define SWIG_NewClientData(obj) PySwigClientData_New(obj) + +#define SWIG_SetErrorObj SWIG_Python_SetErrorObj +#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg +#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) +#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Runtime API implementation */ + +/* Error manipulation */ + +SWIGINTERN void +SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetObject(errtype, obj); + Py_DECREF(obj); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +SWIGINTERN void +SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetString(errtype, (char *) msg); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) + +/* Set a constant value */ + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { + PyDict_SetItemString(d, (char*) name, obj); + Py_DECREF(obj); +} + +/* Append a value to the result obj */ + +SWIGINTERN PyObject* +SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { +#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyList_Check(result)) { + PyObject *o2 = result; + result = PyList_New(1); + PyList_SetItem(result, 0, o2); + } + PyList_Append(result,obj); + Py_DECREF(obj); + } + return result; +#else + PyObject* o2; + PyObject* o3; + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyTuple_Check(result)) { + o2 = result; + result = PyTuple_New(1); + PyTuple_SET_ITEM(result, 0, o2); + } + o3 = PyTuple_New(1); + PyTuple_SET_ITEM(o3, 0, obj); + o2 = result; + result = PySequence_Concat(o2, o3); + Py_DECREF(o2); + Py_DECREF(o3); + } + return result; +#endif +} + +/* Unpack the argument tuple */ + +SWIGINTERN int +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +{ + if (!args) { + if (!min && !max) { + return 1; + } else { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", + name, (min == max ? "" : "at least "), (int)min); + return 0; + } + } + if (!PyTuple_Check(args)) { + PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); + return 0; + } else { + register Py_ssize_t l = PyTuple_GET_SIZE(args); + if (l < min) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at least "), (int)min, (int)l); + return 0; + } else if (l > max) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at most "), (int)max, (int)l); + return 0; + } else { + register int i; + for (i = 0; i < l; ++i) { + objs[i] = PyTuple_GET_ITEM(args, i); + } + for (; l < max; ++l) { + objs[l] = 0; + } + return i + 1; + } + } +} + +/* A functor is a function object with one single object argument */ +#if PY_VERSION_HEX >= 0x02020000 +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); +#else +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); +#endif + +/* + Helper for static pointer initialization for both C and C++ code, for example + static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); +*/ +#ifdef __cplusplus +#define SWIG_STATIC_POINTER(var) var +#else +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var +#endif + +/* ----------------------------------------------------------------------------- + * Pointer declarations + * ----------------------------------------------------------------------------- */ + +/* Flags for new pointer objects */ +#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) +#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) + +#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* cc-mode */ +#endif +#endif + +/* How to access Py_None */ +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# ifndef SWIG_PYTHON_NO_BUILD_NONE +# ifndef SWIG_PYTHON_BUILD_NONE +# define SWIG_PYTHON_BUILD_NONE +# endif +# endif +#endif + +#ifdef SWIG_PYTHON_BUILD_NONE +# ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +# endif +SWIGRUNTIMEINLINE PyObject * +_SWIG_Py_None(void) +{ + PyObject *none = Py_BuildValue((char*)""); + Py_DECREF(none); + return none; +} +SWIGRUNTIME PyObject * +SWIG_Py_None(void) +{ + static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); + return none; +} +#endif + +/* The python void return value */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Py_Void(void) +{ + PyObject *none = Py_None; + Py_INCREF(none); + return none; +} + +/* PySwigClientData */ + +typedef struct { + PyObject *klass; + PyObject *newraw; + PyObject *newargs; + PyObject *destroy; + int delargs; + int implicitconv; +} PySwigClientData; + +SWIGRUNTIMEINLINE int +SWIG_Python_CheckImplicit(swig_type_info *ty) +{ + PySwigClientData *data = (PySwigClientData *)ty->clientdata; + return data ? data->implicitconv : 0; +} + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_ExceptionType(swig_type_info *desc) { + PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; + PyObject *klass = data ? data->klass : 0; + return (klass ? klass : PyExc_RuntimeError); +} + + +SWIGRUNTIME PySwigClientData * +PySwigClientData_New(PyObject* obj) +{ + if (!obj) { + return 0; + } else { + PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); + /* the klass element */ + data->klass = obj; + Py_INCREF(data->klass); + /* the newraw method and newargs arguments used to create a new raw instance */ + if (PyClass_Check(obj)) { + data->newraw = 0; + data->newargs = obj; + Py_INCREF(obj); + } else { +#if (PY_VERSION_HEX < 0x02020000) + data->newraw = 0; +#else + data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); +#endif + if (data->newraw) { + Py_INCREF(data->newraw); + data->newargs = PyTuple_New(1); + PyTuple_SetItem(data->newargs, 0, obj); + } else { + data->newargs = obj; + } + Py_INCREF(data->newargs); + } + /* the destroy method, aka as the C++ delete method */ + data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); + if (PyErr_Occurred()) { + PyErr_Clear(); + data->destroy = 0; + } + if (data->destroy) { + int flags; + Py_INCREF(data->destroy); + flags = PyCFunction_GET_FLAGS(data->destroy); +#ifdef METH_O + data->delargs = !(flags & (METH_O)); +#else + data->delargs = 0; +#endif + } else { + data->delargs = 0; + } + data->implicitconv = 0; + return data; + } +} + +SWIGRUNTIME void +PySwigClientData_Del(PySwigClientData* data) +{ + Py_XDECREF(data->newraw); + Py_XDECREF(data->newargs); + Py_XDECREF(data->destroy); +} + +/* =============== PySwigObject =====================*/ + +typedef struct { + PyObject_HEAD + void *ptr; + swig_type_info *ty; + int own; + PyObject *next; +} PySwigObject; + +SWIGRUNTIME PyObject * +PySwigObject_long(PySwigObject *v) +{ + return PyLong_FromVoidPtr(v->ptr); +} + +SWIGRUNTIME PyObject * +PySwigObject_format(const char* fmt, PySwigObject *v) +{ + PyObject *res = NULL; + PyObject *args = PyTuple_New(1); + if (args) { + if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { + PyObject *ofmt = PyString_FromString(fmt); + if (ofmt) { + res = PyString_Format(ofmt,args); + Py_DECREF(ofmt); + } + Py_DECREF(args); + } + } + return res; +} + +SWIGRUNTIME PyObject * +PySwigObject_oct(PySwigObject *v) +{ + return PySwigObject_format("%o",v); +} + +SWIGRUNTIME PyObject * +PySwigObject_hex(PySwigObject *v) +{ + return PySwigObject_format("%x",v); +} + +SWIGRUNTIME PyObject * +#ifdef METH_NOARGS +PySwigObject_repr(PySwigObject *v) +#else +PySwigObject_repr(PySwigObject *v, PyObject *args) +#endif +{ + const char *name = SWIG_TypePrettyName(v->ty); + PyObject *hex = PySwigObject_hex(v); + PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); + Py_DECREF(hex); + if (v->next) { +#ifdef METH_NOARGS + PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); +#else + PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); +#endif + PyString_ConcatAndDel(&repr,nrep); + } + return repr; +} + +SWIGRUNTIME int +PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ +#ifdef METH_NOARGS + PyObject *repr = PySwigObject_repr(v); +#else + PyObject *repr = PySwigObject_repr(v, NULL); +#endif + if (repr) { + fputs(PyString_AsString(repr), fp); + Py_DECREF(repr); + return 0; + } else { + return 1; + } +} + +SWIGRUNTIME PyObject * +PySwigObject_str(PySwigObject *v) +{ + char result[SWIG_BUFFER_SIZE]; + return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? + PyString_FromString(result) : 0; +} + +SWIGRUNTIME int +PySwigObject_compare(PySwigObject *v, PySwigObject *w) +{ + void *i = v->ptr; + void *j = w->ptr; + return (i < j) ? -1 : ((i > j) ? 1 : 0); +} + +SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); + +SWIGRUNTIME PyTypeObject* +PySwigObject_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); + return type; +} + +SWIGRUNTIMEINLINE int +PySwigObject_Check(PyObject *op) { + return ((op)->ob_type == PySwigObject_type()) + || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); +} + +SWIGRUNTIME PyObject * +PySwigObject_New(void *ptr, swig_type_info *ty, int own); + +SWIGRUNTIME void +PySwigObject_dealloc(PyObject *v) +{ + PySwigObject *sobj = (PySwigObject *) v; + PyObject *next = sobj->next; + if (sobj->own == SWIG_POINTER_OWN) { + swig_type_info *ty = sobj->ty; + PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; + PyObject *destroy = data ? data->destroy : 0; + if (destroy) { + /* destroy is always a VARARGS method */ + PyObject *res; + if (data->delargs) { + /* we need to create a temporal object to carry the destroy operation */ + PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); + } else { + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); + } + Py_XDECREF(res); + } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); + } +#endif + } + Py_XDECREF(next); + PyObject_DEL(v); +} + +SWIGRUNTIME PyObject* +PySwigObject_append(PyObject* v, PyObject* next) +{ + PySwigObject *sobj = (PySwigObject *) v; +#ifndef METH_O + PyObject *tmp = 0; + if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; + next = tmp; +#endif + if (!PySwigObject_Check(next)) { + return NULL; + } + sobj->next = next; + Py_INCREF(next); + return SWIG_Py_Void(); +} + +SWIGRUNTIME PyObject* +#ifdef METH_NOARGS +PySwigObject_next(PyObject* v) +#else +PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + PySwigObject *sobj = (PySwigObject *) v; + if (sobj->next) { + Py_INCREF(sobj->next); + return sobj->next; + } else { + return SWIG_Py_Void(); + } +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +PySwigObject_disown(PyObject *v) +#else +PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + PySwigObject *sobj = (PySwigObject *)v; + sobj->own = 0; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +PySwigObject_acquire(PyObject *v) +#else +PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + PySwigObject *sobj = (PySwigObject *)v; + sobj->own = SWIG_POINTER_OWN; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +PySwigObject_own(PyObject *v, PyObject *args) +{ + PyObject *val = 0; +#if (PY_VERSION_HEX < 0x02020000) + if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) +#else + if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) +#endif + { + return NULL; + } + else + { + PySwigObject *sobj = (PySwigObject *)v; + PyObject *obj = PyBool_FromLong(sobj->own); + if (val) { +#ifdef METH_NOARGS + if (PyObject_IsTrue(val)) { + PySwigObject_acquire(v); + } else { + PySwigObject_disown(v); + } +#else + if (PyObject_IsTrue(val)) { + PySwigObject_acquire(v,args); + } else { + PySwigObject_disown(v,args); + } +#endif + } + return obj; + } +} + +#ifdef METH_O +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#else +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#endif + +#if PY_VERSION_HEX < 0x02020000 +SWIGINTERN PyObject * +PySwigObject_getattr(PySwigObject *sobj,char *name) +{ + return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); +} +#endif + +SWIGRUNTIME PyTypeObject* +_PySwigObject_type(void) { + static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; + + static PyNumberMethods PySwigObject_as_number = { + (binaryfunc)0, /*nb_add*/ + (binaryfunc)0, /*nb_subtract*/ + (binaryfunc)0, /*nb_multiply*/ + (binaryfunc)0, /*nb_divide*/ + (binaryfunc)0, /*nb_remainder*/ + (binaryfunc)0, /*nb_divmod*/ + (ternaryfunc)0,/*nb_power*/ + (unaryfunc)0, /*nb_negative*/ + (unaryfunc)0, /*nb_positive*/ + (unaryfunc)0, /*nb_absolute*/ + (inquiry)0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ + (coercion)0, /*nb_coerce*/ + (unaryfunc)PySwigObject_long, /*nb_int*/ + (unaryfunc)PySwigObject_long, /*nb_long*/ + (unaryfunc)0, /*nb_float*/ + (unaryfunc)PySwigObject_oct, /*nb_oct*/ + (unaryfunc)PySwigObject_hex, /*nb_hex*/ +#if PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ + 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ +#endif + }; + + static PyTypeObject pyswigobject_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + (char *)"PySwigObject", /* tp_name */ + sizeof(PySwigObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)PySwigObject_dealloc, /* tp_dealloc */ + (printfunc)PySwigObject_print, /* tp_print */ +#if PY_VERSION_HEX < 0x02020000 + (getattrfunc)PySwigObject_getattr, /* tp_getattr */ +#else + (getattrfunc)0, /* tp_getattr */ +#endif + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)PySwigObject_compare, /* tp_compare */ + (reprfunc)PySwigObject_repr, /* tp_repr */ + &PySwigObject_as_number, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)PySwigObject_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigobject_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + swigobject_methods, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + pyswigobject_type = tmp; + pyswigobject_type.ob_type = &PyType_Type; + type_init = 1; + } + return &pyswigobject_type; +} + +SWIGRUNTIME PyObject * +PySwigObject_New(void *ptr, swig_type_info *ty, int own) +{ + PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); + if (sobj) { + sobj->ptr = ptr; + sobj->ty = ty; + sobj->own = own; + sobj->next = 0; + } + return (PyObject *)sobj; +} + +/* ----------------------------------------------------------------------------- + * Implements a simple Swig Packed type, and use it instead of string + * ----------------------------------------------------------------------------- */ + +typedef struct { + PyObject_HEAD + void *pack; + swig_type_info *ty; + size_t size; +} PySwigPacked; + +SWIGRUNTIME int +PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char result[SWIG_BUFFER_SIZE]; + fputs("<Swig Packed ", fp); + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + fputs("at ", fp); + fputs(result, fp); + } + fputs(v->ty->name,fp); + fputs(">", fp); + return 0; +} + +SWIGRUNTIME PyObject * +PySwigPacked_repr(PySwigPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); + } else { + return PyString_FromFormat("<Swig Packed %s>", v->ty->name); + } +} + +SWIGRUNTIME PyObject * +PySwigPacked_str(PySwigPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ + return PyString_FromFormat("%s%s", result, v->ty->name); + } else { + return PyString_FromString(v->ty->name); + } +} + +SWIGRUNTIME int +PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) +{ + size_t i = v->size; + size_t j = w->size; + int s = (i < j) ? -1 : ((i > j) ? 1 : 0); + return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); +} + +SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); + +SWIGRUNTIME PyTypeObject* +PySwigPacked_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); + return type; +} + +SWIGRUNTIMEINLINE int +PySwigPacked_Check(PyObject *op) { + return ((op)->ob_type == _PySwigPacked_type()) + || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); +} + +SWIGRUNTIME void +PySwigPacked_dealloc(PyObject *v) +{ + if (PySwigPacked_Check(v)) { + PySwigPacked *sobj = (PySwigPacked *) v; + free(sobj->pack); + } + PyObject_DEL(v); +} + +SWIGRUNTIME PyTypeObject* +_PySwigPacked_type(void) { + static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; + static PyTypeObject pyswigpacked_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ + (char *)"PySwigPacked", /* tp_name */ + sizeof(PySwigPacked), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)PySwigPacked_dealloc, /* tp_dealloc */ + (printfunc)PySwigPacked_print, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ + (cmpfunc)PySwigPacked_compare, /* tp_compare */ + (reprfunc)PySwigPacked_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)PySwigPacked_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigpacked_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + 0, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + pyswigpacked_type = tmp; + pyswigpacked_type.ob_type = &PyType_Type; + type_init = 1; + } + return &pyswigpacked_type; +} + +SWIGRUNTIME PyObject * +PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) +{ + PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); + if (sobj) { + void *pack = malloc(size); + if (pack) { + memcpy(pack, ptr, size); + sobj->pack = pack; + sobj->ty = ty; + sobj->size = size; + } else { + PyObject_DEL((PyObject *) sobj); + sobj = 0; + } + } + return (PyObject *) sobj; +} + +SWIGRUNTIME swig_type_info * +PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) +{ + if (PySwigPacked_Check(obj)) { + PySwigPacked *sobj = (PySwigPacked *)obj; + if (sobj->size != size) return 0; + memcpy(ptr, sobj->pack, size); + return sobj->ty; + } else { + return 0; + } +} + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIMEINLINE PyObject * +_SWIG_This(void) +{ + return PyString_FromString("this"); +} + +SWIGRUNTIME PyObject * +SWIG_This(void) +{ + static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); + return swig_this; +} + +/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ + +SWIGRUNTIME PySwigObject * +SWIG_Python_GetSwigThis(PyObject *pyobj) +{ + if (PySwigObject_Check(pyobj)) { + return (PySwigObject *) pyobj; + } else { + PyObject *obj = 0; +#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) + if (PyInstance_Check(pyobj)) { + obj = _PyInstance_Lookup(pyobj, SWIG_This()); + } else { + PyObject **dictptr = _PyObject_GetDictPtr(pyobj); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; + } else { +#ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); + return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; + } +#endif + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } + } + } +#else + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } +#endif + if (obj && !PySwigObject_Check(obj)) { + /* a PyObject is called 'this', try to get the 'real this' + PySwigObject from it */ + return SWIG_Python_GetSwigThis(obj); + } + return (PySwigObject *)obj; + } +} + +/* Acquire a pointer value */ + +SWIGRUNTIME int +SWIG_Python_AcquirePtr(PyObject *obj, int own) { + if (own == SWIG_POINTER_OWN) { + PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); + if (sobj) { + int oldown = sobj->own; + sobj->own = own; + return oldown; + } + } + return 0; +} + +/* Convert a pointer value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { + if (!obj) return SWIG_ERROR; + if (obj == Py_None) { + if (ptr) *ptr = 0; + return SWIG_OK; + } else { + PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; + while (sobj) { + void *vptr = sobj->ptr; + if (ty) { + swig_type_info *to = sobj->ty; + if (to == ty) { + /* no type cast needed */ + if (ptr) *ptr = vptr; + break; + } else { + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) { + sobj = (PySwigObject *)sobj->next; + } else { + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + break; + } + } + } else { + if (ptr) *ptr = vptr; + break; + } + } + if (sobj) { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + return SWIG_OK; + } else { + int res = SWIG_ERROR; + if (flags & SWIG_POINTER_IMPLICIT_CONV) { + PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; + if (data && !data->implicitconv) { + PyObject *klass = data->klass; + if (klass) { + PyObject *impconv; + data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ + impconv = SWIG_Python_CallFunctor(klass, obj); + data->implicitconv = 0; + if (PyErr_Occurred()) { + PyErr_Clear(); + impconv = 0; + } + if (impconv) { + PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); + if (iobj) { + void *vptr; + res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); + if (SWIG_IsOK(res)) { + if (ptr) { + *ptr = vptr; + /* transfer the ownership to 'ptr' */ + iobj->own = 0; + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); + } else { + res = SWIG_AddCast(res); + } + } + } + Py_DECREF(impconv); + } + } + } + } + return res; + } + } +} + +/* Convert a function ptr value */ + +SWIGRUNTIME int +SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { + if (!PyCFunction_Check(obj)) { + return SWIG_ConvertPtr(obj, ptr, ty, 0); + } else { + void *vptr = 0; + + /* here we get the method pointer for callbacks */ + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; + if (desc) { + desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; + if (!desc) return SWIG_ERROR; + } + if (ty) { + swig_cast_info *tc = SWIG_TypeCheck(desc,ty); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } + } else { + *ptr = vptr; + } + return SWIG_OK; + } +} + +/* Convert a packed value value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { + swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); + if (!to) return SWIG_ERROR; + if (ty) { + if (to != ty) { + /* check type cast? */ + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) return SWIG_ERROR; + } + } + return SWIG_OK; +} + +/* ----------------------------------------------------------------------------- + * Create a new pointer object + * ----------------------------------------------------------------------------- */ + +/* + Create a new instance object, whitout calling __init__, and set the + 'this' attribute. +*/ + +SWIGRUNTIME PyObject* +SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) +{ +#if (PY_VERSION_HEX >= 0x02020000) + PyObject *inst = 0; + PyObject *newraw = data->newraw; + if (newraw) { + inst = PyObject_Call(newraw, data->newargs, NULL); + if (inst) { +#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + PyDict_SetItem(dict, SWIG_This(), swig_this); + } + } +#else + PyObject *key = SWIG_This(); + PyObject_SetAttr(inst, key, swig_this); +#endif + } + } else { + PyObject *dict = PyDict_New(); + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } + return inst; +#else +#if (PY_VERSION_HEX >= 0x02010000) + PyObject *inst; + PyObject *dict = PyDict_New(); + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + return (PyObject *) inst; +#else + PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); + if (inst == NULL) { + return NULL; + } + inst->in_class = (PyClassObject *)data->newargs; + Py_INCREF(inst->in_class); + inst->in_dict = PyDict_New(); + if (inst->in_dict == NULL) { + Py_DECREF(inst); + return NULL; + } +#ifdef Py_TPFLAGS_HAVE_WEAKREFS + inst->in_weakreflist = NULL; +#endif +#ifdef Py_TPFLAGS_GC + PyObject_GC_Init(inst); +#endif + PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); + return (PyObject *) inst; +#endif +#endif +} + +SWIGRUNTIME void +SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) +{ + PyObject *dict; +#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + PyDict_SetItem(dict, SWIG_This(), swig_this); + return; + } +#endif + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + PyDict_SetItem(dict, SWIG_This(), swig_this); + Py_DECREF(dict); +} + + +SWIGINTERN PyObject * +SWIG_Python_InitShadowInstance(PyObject *args) { + PyObject *obj[2]; + if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { + return NULL; + } else { + PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); + if (sthis) { + PySwigObject_append((PyObject*) sthis, obj[1]); + } else { + SWIG_Python_SetSwigThis(obj[0], obj[1]); + } + return SWIG_Py_Void(); + } +} + +/* Create a new pointer object */ + +SWIGRUNTIME PyObject * +SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { + if (!ptr) { + return SWIG_Py_Void(); + } else { + int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; + PyObject *robj = PySwigObject_New(ptr, type, own); + PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; + if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); + if (inst) { + Py_DECREF(robj); + robj = inst; + } + } + return robj; + } +} + +/* Create a new packed object */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { + return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); +} + +/* -----------------------------------------------------------------------------* + * Get type list + * -----------------------------------------------------------------------------*/ + +#ifdef SWIG_LINK_RUNTIME +void *SWIG_ReturnGlobalTypeList(void *); +#endif + +SWIGRUNTIME swig_module_info * +SWIG_Python_GetModule(void) { + static void *type_pointer = (void *)0; + /* first check if module already created */ + if (!type_pointer) { +#ifdef SWIG_LINK_RUNTIME + type_pointer = SWIG_ReturnGlobalTypeList((void *)0); +#else + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; + } +#endif + } + return (swig_module_info *) type_pointer; +} + +#if PY_MAJOR_VERSION < 2 +/* PyModule_AddObject function was introduced in Python 2.0. The following function + is copied out of Python/modsupport.c in python version 2.3.4 */ +SWIGINTERN int +PyModule_AddObject(PyObject *m, char *name, PyObject *o) +{ + PyObject *dict; + if (!PyModule_Check(m)) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs module as first arg"); + return SWIG_ERROR; + } + if (!o) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs non-NULL value"); + return SWIG_ERROR; + } + + dict = PyModule_GetDict(m); + if (dict == NULL) { + /* Internal error -- modules must have a dict! */ + PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", + PyModule_GetName(m)); + return SWIG_ERROR; + } + if (PyDict_SetItemString(dict, name, o)) + return SWIG_ERROR; + Py_DECREF(o); + return SWIG_OK; +} +#endif + +SWIGRUNTIME void +SWIG_Python_DestroyModule(void *vptr) +{ + swig_module_info *swig_module = (swig_module_info *) vptr; + swig_type_info **types = swig_module->types; + size_t i; + for (i =0; i < swig_module->size; ++i) { + swig_type_info *ty = types[i]; + if (ty->owndata) { + PySwigClientData *data = (PySwigClientData *) ty->clientdata; + if (data) PySwigClientData_Del(data); + } + } + Py_DECREF(SWIG_This()); +} + +SWIGRUNTIME void +SWIG_Python_SetModule(swig_module_info *swig_module) { + static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ + + PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + swig_empty_runtime_method_table); + PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +} + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); + return cache; +} + +SWIGRUNTIME swig_type_info * +SWIG_Python_TypeQuery(const char *type) +{ + PyObject *cache = SWIG_Python_TypeCache(); + PyObject *key = PyString_FromString(type); + PyObject *obj = PyDict_GetItem(cache, key); + swig_type_info *descriptor; + if (obj) { + descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); + } else { + swig_module_info *swig_module = SWIG_Python_GetModule(); + descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); + if (descriptor) { + obj = PyCObject_FromVoidPtr(descriptor, NULL); + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } + } + Py_DECREF(key); + return descriptor; +} + +/* + For backward compatibility only +*/ +#define SWIG_POINTER_EXCEPTION 0 +#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) +#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) + +SWIGRUNTIME int +SWIG_Python_AddErrMesg(const char* mesg, int infront) +{ + if (PyErr_Occurred()) { + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + PyErr_Fetch(&type, &value, &traceback); + if (value) { + PyObject *old_str = PyObject_Str(value); + Py_XINCREF(type); + PyErr_Clear(); + if (infront) { + PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); + } else { + PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); + } + Py_DECREF(old_str); + } + return 1; + } else { + return 0; + } +} + +SWIGRUNTIME int +SWIG_Python_ArgFail(int argnum) +{ + if (PyErr_Occurred()) { + /* add information about failing argument */ + char mesg[256]; + PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); + return SWIG_Python_AddErrMesg(mesg, 1); + } else { + return 0; + } +} + +SWIGRUNTIMEINLINE const char * +PySwigObject_GetDesc(PyObject *self) +{ + PySwigObject *v = (PySwigObject *)self; + swig_type_info *ty = v ? v->ty : 0; + return ty ? ty->str : (char*)""; +} + +SWIGRUNTIME void +SWIG_Python_TypeError(const char *type, PyObject *obj) +{ + if (type) { +#if defined(SWIG_COBJECT_TYPES) + if (obj && PySwigObject_Check(obj)) { + const char *otype = (const char *) PySwigObject_GetDesc(obj); + if (otype) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", + type, otype); + return; + } + } else +#endif + { + const char *otype = (obj ? obj->ob_type->tp_name : 0); + if (otype) { + PyObject *str = PyObject_Str(obj); + const char *cstr = str ? PyString_AsString(str) : 0; + if (cstr) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", + type, otype, cstr); + } else { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", + type, otype); + } + Py_XDECREF(str); + return; + } + } + PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); + } else { + PyErr_Format(PyExc_TypeError, "unexpected type is received"); + } +} + + +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME void * +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { + void *result; + if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { + PyErr_Clear(); + if (flags & SWIG_POINTER_EXCEPTION) { + SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); + SWIG_Python_ArgFail(argnum); + } + } + return result; +} + + +#ifdef __cplusplus +#if 0 +{ /* cc-mode */ +#endif +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_COLORB swig_types[0] +#define SWIGTYPE_p_COLORW swig_types[1] +#define SWIGTYPE_p_GAMMATABLE swig_types[2] +#define SWIGTYPE_p_IT8 swig_types[3] +#define SWIGTYPE_p_LCMSGAMMAPARAMS swig_types[4] +#define SWIGTYPE_p_LPMATSHAPER swig_types[5] +#define SWIGTYPE_p_LPWMAT3 swig_types[6] +#define SWIGTYPE_p_LPWVEC3 swig_types[7] +#define SWIGTYPE_p_LPcmsNAMEDCOLORLIST swig_types[8] +#define SWIGTYPE_p_LPcmsSEQ swig_types[9] +#define SWIGTYPE_p_MAT3 swig_types[10] +#define SWIGTYPE_p_MATSHAPER swig_types[11] +#define SWIGTYPE_p_SAMPLEDCURVE swig_types[12] +#define SWIGTYPE_p_StrPointer swig_types[13] +#define SWIGTYPE_p_VEC3 swig_types[14] +#define SWIGTYPE_p_WMAT3 swig_types[15] +#define SWIGTYPE_p_WVEC3 swig_types[16] +#define SWIGTYPE_p__cmsTestAlign16 swig_types[17] +#define SWIGTYPE_p__cmsTestAlign8 swig_types[18] +#define SWIGTYPE_p__cmstransform_struct swig_types[19] +#define SWIGTYPE_p__lcms_LUT_struc swig_types[20] +#define SWIGTYPE_p__lcms_iccprofile_struct swig_types[21] +#define SWIGTYPE_p__lcms_l16params_struc swig_types[22] +#define SWIGTYPE_p__lcms_l8opt_struc swig_types[23] +#define SWIGTYPE_p_a_16__LCMSGAMMAPARAMS swig_types[24] +#define SWIGTYPE_p_char swig_types[25] +#define SWIGTYPE_p_cmsCIELCh swig_types[26] +#define SWIGTYPE_p_cmsCIELab swig_types[27] +#define SWIGTYPE_p_cmsCIEXYZ swig_types[28] +#define SWIGTYPE_p_cmsCIEXYZTRIPLE swig_types[29] +#define SWIGTYPE_p_cmsCIExyY swig_types[30] +#define SWIGTYPE_p_cmsCIExyYTRIPLE swig_types[31] +#define SWIGTYPE_p_cmsJCh swig_types[32] +#define SWIGTYPE_p_cmsNAMEDCOLOR swig_types[33] +#define SWIGTYPE_p_cmsNAMEDCOLORLIST swig_types[34] +#define SWIGTYPE_p_cmsPSEQDESC swig_types[35] +#define SWIGTYPE_p_cmsSEQ swig_types[36] +#define SWIGTYPE_p_cmsViewingConditions swig_types[37] +#define SWIGTYPE_p_double swig_types[38] +#define SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void swig_types[39] +#define SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void swig_types[40] +#define SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_p_void__int swig_types[41] +#define SWIGTYPE_p_f_int_p_q_const__char__int swig_types[42] +#define SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void swig_types[43] +#define SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char swig_types[44] +#define SWIGTYPE_p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void swig_types[45] +#define SWIGTYPE_p_f_p__lcms_iccprofile_struct__int swig_types[46] +#define SWIGTYPE_p_f_p__lcms_iccprofile_struct__size_t swig_types[47] +#define SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t__int swig_types[48] +#define SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t_p_void__int swig_types[49] +#define SWIGTYPE_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char swig_types[50] +#define SWIGTYPE_p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t swig_types[51] +#define SWIGTYPE_p_icCLutStruct swig_types[52] +#define SWIGTYPE_p_icColorSpaceSignature swig_types[53] +#define SWIGTYPE_p_icInt32Number swig_types[54] +#define SWIGTYPE_p_icLutAtoB swig_types[55] +#define SWIGTYPE_p_icLutBtoA swig_types[56] +#define SWIGTYPE_p_icProfileClassSignature swig_types[57] +#define SWIGTYPE_p_icRenderingIntent swig_types[58] +#define SWIGTYPE_p_icS15Fixed16Number swig_types[59] +#define SWIGTYPE_p_icSignature swig_types[60] +#define SWIGTYPE_p_icTagSignature swig_types[61] +#define SWIGTYPE_p_icTechnologySignature swig_types[62] +#define SWIGTYPE_p_icUInt16Number swig_types[63] +#define SWIGTYPE_p_icUInt32Number swig_types[64] +#define SWIGTYPE_p_icUInt8Number swig_types[65] +#define SWIGTYPE_p_int swig_types[66] +#define SWIGTYPE_p_p_GAMMATABLE swig_types[67] +#define SWIGTYPE_p_p_char swig_types[68] +#define SWIGTYPE_p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void swig_types[69] +#define SWIGTYPE_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char swig_types[70] +#define SWIGTYPE_p_p_p_char swig_types[71] +#define SWIGTYPE_p_p_unsigned_short swig_types[72] +#define SWIGTYPE_p_p_void swig_types[73] +#define SWIGTYPE_p_size_t swig_types[74] +#define SWIGTYPE_p_tm swig_types[75] +#define SWIGTYPE_p_unsigned_char swig_types[76] +#define SWIGTYPE_p_unsigned_int swig_types[77] +#define SWIGTYPE_p_unsigned_long swig_types[78] +#define SWIGTYPE_p_unsigned_short swig_types[79] +#define SWIGTYPE_p_void swig_types[80] +static swig_type_info *swig_types[82]; +static swig_module_info swig_module = {swig_types, 81, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _lcms.so + ------------------------------------------------*/ +#define SWIG_init init_lcms + +#define SWIG_name "_lcms" + +#define SWIGVERSION 0x010336 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include <stdexcept> + + +namespace swig { + class PyObject_ptr { + protected: + PyObject *_obj; + + public: + PyObject_ptr() :_obj(0) + { + } + + PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) + { + Py_XINCREF(_obj); + } + + PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) + { + if (initial_ref) { + Py_XINCREF(_obj); + } + } + + PyObject_ptr & operator=(const PyObject_ptr& item) + { + Py_XINCREF(item._obj); + Py_XDECREF(_obj); + _obj = item._obj; + return *this; + } + + ~PyObject_ptr() + { + Py_XDECREF(_obj); + } + + operator PyObject *() const + { + return _obj; + } + + PyObject *operator->() const + { + return _obj; + } + }; +} + + +namespace swig { + struct PyObject_var : PyObject_ptr { + PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } + + PyObject_var & operator = (PyObject* obj) + { + Py_XDECREF(_obj); + _obj = obj; + return *this; + } + }; +} + + +#include "lcms.h" + + +static PyObject *lcmsError; +static volatile int InErrorFlag; + +static +int MyErrorHandler(int Severity, const char* Txt) +{ + + if (Severity == LCMS_ERRC_WARNING) + PyErr_Warn(lcmsError, (char*) Txt); + else + PyErr_SetString(lcmsError, Txt); + + InErrorFlag = 1; + return 1; +} + + +typedef struct { + + WORD w[MAXCHANNELS]; + + } COLORW; + +typedef COLORW* LPCOLORW; + +typedef struct { + + BYTE b[MAXCHANNELS]; + + } COLORB; + +typedef COLORB* LPCOLORB; + +typedef struct { + + LCMSHANDLE hIT8; + + } IT8; + +typedef IT8* LPIT8; + +SWIGINTERN COLORW *new_COLORW(){ + LPCOLORW v; + v = (LPCOLORW) _cmsMalloc(sizeof(COLORW)); + memset((v),0,(sizeof(COLORW))); + return v; + } +SWIGINTERN char const *COLORW___repr__(COLORW *self){ + return "Color 16 bps"; + } + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { + return PyString_FromStringAndSize(carray, static_cast< int >(size)); + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +#include <limits.h> +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; + } else if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include <float.h> + + +#include <math.h> + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_long (PyObject *obj, long* val) +{ + if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + long v = PyInt_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int (PyObject * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + +SWIGINTERN WORD COLORW___getitem__(COLORW *self,int key){ + return self -> w[key]; + } + + #define SWIG_From_long PyInt_FromLong + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_short (unsigned short value) +{ + return SWIG_From_unsigned_SS_long (value); +} + +SWIGINTERN void COLORW___setitem__(COLORW *self,int key,int val){ + self -> w[key] = (WORD) val; + } +SWIGINTERN COLORB *new_COLORB(){ + LPCOLORB v; + v = (LPCOLORB) _cmsMalloc(sizeof(COLORB)); + memset((v),0,(sizeof(COLORB))); + return v; + } +SWIGINTERN void delete_COLORB(COLORB *self){ + _cmsFree(self); + } +SWIGINTERN char const *COLORB___repr__(COLORB *self){ + return "Color 8 bps"; + } +SWIGINTERN WORD COLORB___getitem__(COLORB *self,int key){ + return self -> b[key]; + } +SWIGINTERN void COLORB___setitem__(COLORB *self,int key,int val){ + self -> b[key] = (BYTE) val; + } + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ + if (PyString_Check(obj)) { + char *cstr; Py_ssize_t len; + PyString_AsStringAndSize(obj, &cstr, &len); + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } + else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { + *cptr = PyString_AsString(obj); + } + } + if (psize) *psize = len + 1; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + +SWIGINTERN IT8 *new_IT8__SWIG_0(char const *FileName){ + LPIT8 it8; + it8 = (LPIT8) _cmsMalloc(sizeof(IT8)); + InErrorFlag = 0; + it8 -> hIT8 = cmsIT8LoadFromFile(FileName); + if (InErrorFlag) { + _cmsFree(it8); + return NULL; + } + return it8; + } +SWIGINTERN IT8 *new_IT8__SWIG_1(){ + LPIT8 it8; + it8 = (LPIT8) _cmsMalloc(sizeof(IT8)); + it8 -> hIT8 = cmsIT8Alloc(); + return it8; + } +SWIGINTERN void delete_IT8(IT8 *self){ + cmsIT8Free(self -> hIT8); + _cmsFree(self); + } +SWIGINTERN char const *IT8___repr__(IT8 *self){ + return "CGATS.13/IT8 parser"; + } +SWIGINTERN int IT8_saveToFile(IT8 *self,char const *Filename){ + + return cmsIT8SaveToFile(self -> hIT8, Filename); + } + +SWIGINTERNINLINE PyObject * +SWIG_From_int (int value) +{ + return SWIG_From_long (value); +} + +SWIGINTERN int IT8_tableCount(IT8 *self){ return cmsIT8TableCount(self -> hIT8); } +SWIGINTERN int IT8_setTable(IT8 *self,int n){ return cmsIT8SetTable(self -> hIT8, n); } +SWIGINTERN char const *IT8_getSheetType(IT8 *self){ return cmsIT8GetSheetType(self -> hIT8); } +SWIGINTERN int IT8_setSheetType(IT8 *self,char const *Type){ return cmsIT8SetSheetType(self -> hIT8, Type); } +SWIGINTERN int IT8_addComment(IT8 *self,char const *txt){ return cmsIT8SetComment(self -> hIT8, txt); } +SWIGINTERN int IT8_setProperty__SWIG_0(IT8 *self,char const *Prop,char const *Str){ return cmsIT8SetPropertyStr(self -> hIT8, Prop, Str); } +SWIGINTERN int IT8_setProperty__SWIG_1(IT8 *self,char const *Prop,double dbl){ return cmsIT8SetPropertyDbl(self -> hIT8, Prop, dbl); } +SWIGINTERN int IT8_setPropertyAsHex(IT8 *self,char const *Prop,int Val){ return cmsIT8SetPropertyHex(self -> hIT8, Prop, Val); } +SWIGINTERN int IT8_setPropertyUncooked(IT8 *self,char const *Prop,char const *Str){ return cmsIT8SetPropertyUncooked(self -> hIT8, Prop, Str); } +SWIGINTERN char const *IT8_getProperty(IT8 *self,char const *Prop){ return cmsIT8GetProperty(self -> hIT8, Prop); } +SWIGINTERN double IT8_getPropertyAsDbl(IT8 *self,char const *Prop){ return cmsIT8GetPropertyDbl(self -> hIT8, Prop); } + + #define SWIG_From_double PyFloat_FromDouble + +SWIGINTERN char const *IT8_getData__SWIG_0(IT8 *self,int row,int col){ return cmsIT8GetDataRowCol(self -> hIT8, row, col); } +SWIGINTERN char const *IT8_getData__SWIG_1(IT8 *self,char const *Patch,char const *Sample){ return cmsIT8GetData(self -> hIT8, Patch, Sample); } +SWIGINTERN double IT8_getDataAsDbl__SWIG_0(IT8 *self,int row,int col){ return cmsIT8GetDataRowColDbl(self -> hIT8, row, col); } +SWIGINTERN double IT8_getDataAsDbl__SWIG_1(IT8 *self,char const *Patch,char const *Sample){ return cmsIT8GetDataDbl(self -> hIT8, Patch, Sample); } +SWIGINTERN int IT8_setData__SWIG_0(IT8 *self,int row,int col,char const *Val){ return cmsIT8SetDataRowCol(self ->hIT8, row, col, Val); } +SWIGINTERN int IT8_setData__SWIG_1(IT8 *self,int row,int col,double dbl){ return cmsIT8SetDataRowColDbl(self ->hIT8, row, col, dbl); } +SWIGINTERN int IT8_setData__SWIG_2(IT8 *self,char const *Patch,char const *Sample,char const *Val){ return cmsIT8SetData(self ->hIT8, Patch, Sample, Val); } +SWIGINTERN int IT8_setData__SWIG_3(IT8 *self,char const *Patch,char const *Sample,double dbl){ return cmsIT8SetDataDbl(self ->hIT8, Patch, Sample, dbl); } +SWIGINTERN int IT8_setDataFormat(IT8 *self,int nSample,char const *Sample){ return cmsIT8SetDataFormat(self -> hIT8, nSample, Sample); } +SWIGINTERN char const *IT8_getPatchName(IT8 *self,int nPatch){ return cmsIT8GetPatchName(self -> hIT8, nPatch, NULL); } +SWIGINTERN int IT8_getDataFormat(IT8 *self,char const *Patch){ return cmsIT8GetDataFormat(self -> hIT8, Patch); } +SWIGINTERN PyObject *IT8_enumDataFormat(IT8 *self){ + + char** DataFormat; + PyObject* TheList; + PyObject* OneDataFormat; + int i, n; + + + n = cmsIT8EnumDataFormat(self -> hIT8, &DataFormat); + + TheList = PyList_New(n); + if (!TheList) return NULL; + + for (i = 0; i < n; i++) { + OneDataFormat = PyString_FromString(DataFormat[i]); + PyList_SET_ITEM(TheList, i, OneDataFormat); + } + + return TheList; + } +SWIGINTERN PyObject *IT8_enumProperties(IT8 *self){ + + const char** Props; + PyObject* TheList; + PyObject* OneProp; + int i, n; + + + n = cmsIT8EnumProperties(self -> hIT8, &Props); + + TheList = PyList_New(n); + if (!TheList) return NULL; + + for (i = 0; i < n; i++) { + OneProp = PyString_FromString(Props[i]); + PyList_SET_ITEM(TheList, i, OneProp); + } + + return TheList; + } +SWIGINTERN int IT8_setTableByLabel__SWIG_0(IT8 *self,char const *cSet,char const *cFld=NULL,char const *ExpectedType=NULL){ + + return cmsIT8SetTableByLabel(self -> hIT8, cSet, cFld, ExpectedType); + } +SWIGINTERN PyObject *IT8_getRow(IT8 *self,int n){ + + PyObject* TheList; + PyObject* OneProp; + int i; + int nf = (int) cmsIT8GetPropertyDbl(self -> hIT8, "NUMBER_OF_FIELDS"); + if (nf <= 0) return NULL; + + TheList = PyList_New(nf); + if (!TheList) return NULL; + + for (i = 0; i < nf; i++) { + + OneProp = PyString_FromString(cmsIT8GetDataRowCol(self ->hIT8, n, i)); + PyList_SET_ITEM(TheList, i, OneProp); + } + + return TheList; + } +SWIGINTERN PyObject *IT8_getCol(IT8 *self,char const *Patch){ + + PyObject* TheList; + PyObject* OneProp; + int i; + + int n = cmsIT8GetDataFormat(self -> hIT8, Patch); + if (n < 0) return NULL; + + int ns = (int) cmsIT8GetPropertyDbl(self -> hIT8, "NUMBER_OF_SETS"); + if (ns <= 0) return NULL; + + TheList = PyList_New(ns); + if (!TheList) return NULL; + + for (i = 0; i < ns; i++) { + + OneProp = PyString_FromString(cmsIT8GetDataRowCol(self ->hIT8, i, n)); + PyList_SET_ITEM(TheList, i, OneProp); + } + + return TheList; + } + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_int (unsigned int value) +{ + return SWIG_From_unsigned_SS_long (value); +} + +SWIGINTERN GAMMATABLE *new_GAMMATABLE__SWIG_0(double Gamma,int nEntries=256){ + return Gamma <= 0 ? cmsAllocGamma(nEntries) : cmsBuildGamma(nEntries, Gamma); + } +SWIGINTERN void delete_GAMMATABLE(GAMMATABLE *self){ + cmsFreeGamma(self); + } +SWIGINTERN char const *GAMMATABLE___repr__(GAMMATABLE *self){ + + static char Buffer[256]; + + sprintf(Buffer, "Gamma Table of %d entries [estimated gamma %g]", self ->nEntries, cmsEstimateGamma(self)); + return Buffer; + } +SWIGINTERN WORD GAMMATABLE___getitem__(GAMMATABLE *self,int key){ + return self -> GammaTable[key]; + } + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > USHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned short >(v); + } + } + return res; +} + +SWIGINTERN void GAMMATABLE___setitem__(GAMMATABLE *self,int key,WORD val){ + self -> GammaTable[key] = val; + } +SWIGINTERN VEC3 *new_VEC3__SWIG_0(double vx=0,double vy=0,double vz=0){ + LPVEC3 v; + v = (LPVEC3) _cmsMalloc(sizeof(VEC3)); + v->n[0] =vx; + v->n[1] =vy; + v->n[2] =vz; + return v; + + } +SWIGINTERN void delete_VEC3(VEC3 *self){ + _cmsFree(self); + } +SWIGINTERN double VEC3___getitem__(VEC3 *self,int key){ + return self -> n[key]; + } +SWIGINTERN void VEC3___setitem__(VEC3 *self,int key,double val){ + self -> n[key] = val; + } +SWIGINTERN char const *VEC3___repr__(VEC3 *self){ + static char Buffer[256]; + + sprintf(Buffer, "VEC3 [%g, %g, %g]", self->n[0],self->n[1],self->n[2]); + return Buffer; + } +SWIGINTERN cmsCIEXYZ *new_cmsCIEXYZ__SWIG_0(double x=0,double y=0,double z=0){ + LPcmsCIEXYZ v; + v = (LPcmsCIEXYZ) _cmsMalloc(sizeof(cmsCIEXYZ)); + v->X = x; + v->Y = y; + v->Z = z; + return v; + } +SWIGINTERN void delete_cmsCIEXYZ(cmsCIEXYZ *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIEXYZ___repr__(cmsCIEXYZ *self){ + static char Buffer[256]; + + sprintf(Buffer, "XYZ [%g, %g, %g]", self->X,self->Y,self->Z); + return Buffer; + } +SWIGINTERN cmsCIExyY *new_cmsCIExyY__SWIG_0(double x=0,double y=0,double Y=0){ + LPcmsCIExyY v; + v = (LPcmsCIExyY) _cmsMalloc(sizeof(cmsCIExyY)); + v->x = x; + v->y = y; + v->Y = Y; + return v; + } +SWIGINTERN void delete_cmsCIExyY(cmsCIExyY *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIExyY___repr__(cmsCIExyY *self){ + static char Buffer[256]; + + sprintf(Buffer, "xyY [%g, %g, %g]", self->x,self->y,self->Y); + return Buffer; + } +SWIGINTERN cmsCIELab *new_cmsCIELab__SWIG_0(double L=0,double a=0,double b=0){ + LPcmsCIELab v; + v = (LPcmsCIELab) _cmsMalloc(sizeof(cmsCIELab)); + v->L = L; + v->a = a; + v->b = b; + return v; + } +SWIGINTERN void delete_cmsCIELab(cmsCIELab *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIELab___repr__(cmsCIELab *self){ + static char Buffer[256]; + + sprintf(Buffer, "Lab [%g, %g, %g]", self->L,self->a,self->b); + return Buffer; + } +SWIGINTERN int cmsCIELab___cmp__(cmsCIELab *self,cmsCIELab *a){ + return cmsDeltaE(self, a) > 0.0; + } +SWIGINTERN cmsCIELCh *new_cmsCIELCh__SWIG_0(double L=0,double C=0,double h=0){ + LPcmsCIELCh v; + v = (LPcmsCIELCh) _cmsMalloc(sizeof(cmsCIELCh)); + v->L = L; + v->C = C; + v->h = h; + return v; + } +SWIGINTERN void delete_cmsCIELCh(cmsCIELCh *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIELCh___repr__(cmsCIELCh *self){ + static char Buffer[256]; + + sprintf(Buffer, "LCh [%g, %g, %g]", self->L,self->C,self->h); + return Buffer; + } +SWIGINTERN cmsJCh *new_cmsJCh__SWIG_0(double J=0,double C=0,double h=0){ + LPcmsJCh v; + v = (LPcmsJCh) _cmsMalloc(sizeof(cmsJCh)); + v->J = J; + v->C = C; + v->h = h; + return v; + } +SWIGINTERN void delete_cmsJCh(cmsJCh *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsJCh___repr__(cmsJCh *self){ + static char Buffer[256]; + + sprintf(Buffer, "CIECAM JCh [%g, %g, %g]", self->J,self->C,self->h); + return Buffer; + } +SWIGINTERN cmsCIEXYZTRIPLE *new_cmsCIEXYZTRIPLE(cmsCIEXYZ *Red,cmsCIEXYZ *Green,cmsCIEXYZ *Blue){ + LPcmsCIEXYZTRIPLE v; + v = (LPcmsCIEXYZTRIPLE) _cmsMalloc(sizeof(cmsCIEXYZTRIPLE)); + memcpy((&v->Red),(Red),(sizeof(cmsCIExyY))); + memcpy((&v->Green),(Green),(sizeof(cmsCIExyY))); + memcpy((&v->Blue),(Blue),(sizeof(cmsCIExyY))); + return v; + } +SWIGINTERN void delete_cmsCIEXYZTRIPLE(cmsCIEXYZTRIPLE *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIEXYZTRIPLE___repr__(cmsCIEXYZTRIPLE *self){ + + return "xyY Triple"; + } +SWIGINTERN cmsCIExyYTRIPLE *new_cmsCIExyYTRIPLE(cmsCIExyY *Red,cmsCIExyY *Green,cmsCIExyY *Blue){ + LPcmsCIExyYTRIPLE v; + v = (LPcmsCIExyYTRIPLE) _cmsMalloc(sizeof(cmsCIExyYTRIPLE)); + memcpy((&v->Red),(Red),(sizeof(cmsCIExyY))); + memcpy((&v->Green),(Green),(sizeof(cmsCIExyY))); + memcpy((&v->Blue),(Blue),(sizeof(cmsCIExyY))); + return v; + } +SWIGINTERN void delete_cmsCIExyYTRIPLE(cmsCIExyYTRIPLE *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsCIExyYTRIPLE___repr__(cmsCIExyYTRIPLE *self){ + + return "xyY Triple"; + } +SWIGINTERN cmsViewingConditions *new_cmsViewingConditions(cmsCIEXYZ *WhitePoint,double Yb,double La,int surround,double D_value){ + LPcmsViewingConditions v; + v = (LPcmsViewingConditions) _cmsMalloc(sizeof(cmsViewingConditions)); + memcpy((&v -> whitePoint),(WhitePoint),(sizeof(cmsCIEXYZ))); + v ->Yb = Yb; + v ->La = La; + v -> surround = surround; + v -> D_value = D_value; + return v; + } +SWIGINTERN void delete_cmsViewingConditions(cmsViewingConditions *self){ + _cmsFree(self); + } +SWIGINTERN char const *cmsViewingConditions___repr__(cmsViewingConditions *self){ + + return "CIECAM97s viewing conditions"; + } + +SWIGINTERN int +SWIG_AsCharArray(PyObject * obj, char *val, size_t size) +{ + char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; + int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); + if (SWIG_IsOK(res)) { + if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; + if (csize <= size) { + if (val) { + if (csize) memcpy(val, cptr, csize*sizeof(char)); + if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); + } + if (alloc == SWIG_NEWOBJ) { + delete[] cptr; + res = SWIG_DelNewMask(res); + } + return res; + } + if (alloc == SWIG_NEWOBJ) delete[] cptr; + } + return SWIG_TypeError; +} + + +SWIGINTERNINLINE int +SWIG_AsVal_size_t (PyObject * obj, size_t *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_size_t (size_t value) +{ + return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); +} + +SWIGINTERN icTagSignature *new_icTagSignature(unsigned int n){ + icTagSignature* v = (icTagSignature*) _cmsMalloc(sizeof(icTagSignature)); + *v = (icTagSignature) n; + return v; + } +SWIGINTERN void delete_icTagSignature(icTagSignature *self){ + _cmsFree(self); + } + +class StrPointer { +}; + +SWIGINTERN StrPointer *new_StrPointer(char *s){ + return (StrPointer*) s; + } +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_COLORW_w_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:COLORW_w_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORW_w_set" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "COLORW_w_set" "', argument " "2"" of type '" "WORD [16]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->w[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""w""' of type '""WORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORW_w_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:COLORW_w_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORW_w_get" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + result = (WORD *)(WORD *) ((arg1)->w); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_COLORW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_COLORW")) SWIG_fail; + + + InErrorFlag = 0; + result = (COLORW *)new_COLORW(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COLORW, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORW___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:COLORW___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORW___repr__" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + + + InErrorFlag = 0; + result = (char *)COLORW___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORW___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OO:COLORW___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORW___getitem__" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COLORW___getitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (WORD)COLORW___getitem__(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORW___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + int arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:COLORW___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORW___setitem__" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COLORW___setitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "COLORW___setitem__" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + COLORW___setitem__(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_COLORW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORW *arg1 = (COLORW *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_COLORW",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORW, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_COLORW" "', argument " "1"" of type '" "COLORW *""'"); + } + arg1 = reinterpret_cast< COLORW * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *COLORW_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_COLORW, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_COLORB_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + BYTE *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:COLORB_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORB_b_set" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "COLORB_b_set" "', argument " "2"" of type '" "BYTE [16]""'"); + } + arg2 = reinterpret_cast< BYTE * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->b[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""b""' of type '""BYTE [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORB_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + BYTE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:COLORB_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORB_b_get" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + result = (BYTE *)(BYTE *) ((arg1)->b); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_COLORB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_COLORB")) SWIG_fail; + + + InErrorFlag = 0; + result = (COLORB *)new_COLORB(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_COLORB, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_COLORB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_COLORB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_COLORB" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + + + InErrorFlag = 0; + delete_COLORB(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORB___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:COLORB___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORB___repr__" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + + + InErrorFlag = 0; + result = (char *)COLORB___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORB___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OO:COLORB___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORB___getitem__" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COLORB___getitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (WORD)COLORB___getitem__(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_COLORB___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + COLORB *arg1 = (COLORB *) 0 ; + int arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:COLORB___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_COLORB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "COLORB___setitem__" "', argument " "1"" of type '" "COLORB *""'"); + } + arg1 = reinterpret_cast< COLORB * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "COLORB___setitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "COLORB___setitem__" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + COLORB___setitem__(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *COLORB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_COLORB, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_IT8_hIT8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + LCMSHANDLE arg2 = (LCMSHANDLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_hIT8_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_hIT8_set" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_hIT8_set" "', argument " "2"" of type '" "LCMSHANDLE""'"); + } + if (arg1) (arg1)->hIT8 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_hIT8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8_hIT8_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_hIT8_get" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + result = (LCMSHANDLE) ((arg1)->hIT8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_IT8__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + IT8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_IT8",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IT8" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + + + InErrorFlag = 0; + result = (IT8 *)new_IT8__SWIG_0((char const *)arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IT8, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_IT8__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_IT8")) SWIG_fail; + + + InErrorFlag = 0; + result = (IT8 *)new_IT8__SWIG_1(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IT8, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_IT8(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[2]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 1); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_IT8__SWIG_1(self, args); + } + if (argc == 1) { + int _v; + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_new_IT8__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_IT8'.\n" + " Possible C/C++ prototypes are:\n" + " IT8(char const *)\n" + " IT8()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_IT8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_IT8",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IT8" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + delete_IT8(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8___repr__" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + result = (char *)IT8___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_saveToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_saveToFile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_saveToFile" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_saveToFile" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)IT8_saveToFile(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_tableCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8_tableCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_tableCount" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + result = (int)IT8_tableCount(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_setTable",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setTable" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_setTable" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (int)IT8_setTable(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getSheetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8_getSheetType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getSheetType" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + result = (char *)IT8_getSheetType(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setSheetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_setSheetType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setSheetType" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setSheetType" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)IT8_setSheetType(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_addComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_addComment",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_addComment" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_addComment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)IT8_addComment(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setProperty__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setProperty",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setProperty" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (int)IT8_setProperty__SWIG_0(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setProperty__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setProperty",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setProperty" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setProperty" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setProperty" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (int)IT8_setProperty__SWIG_1(arg1,(char const *)arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setProperty(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_IT8_setProperty__SWIG_1(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setProperty__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setProperty'.\n" + " Possible C/C++ prototypes are:\n" + " setProperty(IT8 *,char const *,char const *)\n" + " setProperty(IT8 *,char const *,double)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setPropertyAsHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setPropertyAsHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setPropertyAsHex" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyAsHex" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setPropertyAsHex" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (int)IT8_setPropertyAsHex(arg1,(char const *)arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setPropertyUncooked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setPropertyUncooked",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setPropertyUncooked" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setPropertyUncooked" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setPropertyUncooked" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (int)IT8_setPropertyUncooked(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getProperty",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getProperty" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getProperty" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (char *)IT8_getProperty(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getPropertyAsDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getPropertyAsDbl",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getPropertyAsDbl" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getPropertyAsDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (double)IT8_getPropertyAsDbl(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_getData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_getData" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_getData" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (char *)IT8_getData__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_getData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getData" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getData" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (char *)IT8_getData__SWIG_1(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getData(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_IT8_getData__SWIG_0(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_getData__SWIG_1(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getData'.\n" + " Possible C/C++ prototypes are:\n" + " getData(IT8 *,int,int)\n" + " getData(IT8 *,char const *,char const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getDataAsDbl__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_getDataAsDbl",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getDataAsDbl" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_getDataAsDbl" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_getDataAsDbl" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (double)IT8_getDataAsDbl__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getDataAsDbl__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_getDataAsDbl",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getDataAsDbl" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataAsDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_getDataAsDbl" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (double)IT8_getDataAsDbl__SWIG_1(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getDataAsDbl(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_IT8_getDataAsDbl__SWIG_0(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_getDataAsDbl__SWIG_1(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_getDataAsDbl'.\n" + " Possible C/C++ prototypes are:\n" + " getDataAsDbl(IT8 *,int,int)\n" + " getDataAsDbl(IT8 *,char const *,char const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + int arg3 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:IT8_setData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_setData" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setData" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (int)IT8_setData__SWIG_0(arg1,arg2,arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + int arg3 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:IT8_setData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_setData" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IT8_setData" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IT8_setData" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + result = (int)IT8_setData__SWIG_1(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:IT8_setData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setData" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (int)IT8_setData__SWIG_2(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:IT8_setData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setData" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setData" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setData" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IT8_setData" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + result = (int)IT8_setData__SWIG_3(arg1,(char const *)arg2,(char const *)arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setData(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 4); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_IT8_setData__SWIG_1(self, args); + } + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setData__SWIG_0(self, args); + } + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_double(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_IT8_setData__SWIG_3(self, args); + } + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setData__SWIG_2(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setData'.\n" + " Possible C/C++ prototypes are:\n" + " setData(IT8 *,int,int,char const *)\n" + " setData(IT8 *,int,int,double)\n" + " setData(IT8 *,char const *,char const *,char const *)\n" + " setData(IT8 *,char const *,char const *,double)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setDataFormat",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setDataFormat" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_setDataFormat" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setDataFormat" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (int)IT8_setDataFormat(arg1,arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getPatchName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getPatchName",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getPatchName" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_getPatchName" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (char *)IT8_getPatchName(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getDataFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getDataFormat" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getDataFormat" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)IT8_getDataFormat(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_enumDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8_enumDataFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_enumDataFormat" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + result = (PyObject *)IT8_enumDataFormat(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_enumProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:IT8_enumProperties",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_enumProperties" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + + + InErrorFlag = 0; + result = (PyObject *)IT8_enumProperties(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setTableByLabel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:IT8_setTableByLabel",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setTableByLabel" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IT8_setTableByLabel" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (int)IT8_setTableByLabel__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setTableByLabel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:IT8_setTableByLabel",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setTableByLabel" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IT8_setTableByLabel" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (int)IT8_setTableByLabel__SWIG_0(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setTableByLabel__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_setTableByLabel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_setTableByLabel" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_setTableByLabel" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)IT8_setTableByLabel__SWIG_0(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_setTableByLabel(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 4); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setTableByLabel__SWIG_2(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setTableByLabel__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_IT8, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_IT8_setTableByLabel__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IT8_setTableByLabel'.\n" + " Possible C/C++ prototypes are:\n" + " setTableByLabel(IT8 *,char const *,char const *,char const *)\n" + " setTableByLabel(IT8 *,char const *,char const *)\n" + " setTableByLabel(IT8 *,char const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getRow",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getRow" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IT8_getRow" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (PyObject *)IT8_getRow(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_IT8_getCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + IT8 *arg1 = (IT8 *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:IT8_getCol",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IT8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IT8_getCol" "', argument " "1"" of type '" "IT8 *""'"); + } + arg1 = reinterpret_cast< IT8 * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IT8_getCol" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (PyObject *)IT8_getCol(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = result; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *IT8_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_IT8, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_icCLutStruct_gridPoints_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + icUInt8Number *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icCLutStruct_gridPoints_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_gridPoints_set" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_icUInt8Number, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icCLutStruct_gridPoints_set" "', argument " "2"" of type '" "icUInt8Number [16]""'"); + } + arg2 = reinterpret_cast< icUInt8Number * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->gridPoints[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""gridPoints""' of type '""icUInt8Number [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_gridPoints_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:icCLutStruct_gridPoints_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_gridPoints_get" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + result = (icUInt8Number *)(icUInt8Number *) ((arg1)->gridPoints); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icUInt8Number, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_prec_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icCLutStruct_prec_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_prec_set" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icCLutStruct_prec_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icCLutStruct_prec_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->prec = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_prec_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icCLutStruct_prec_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_prec_get" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + result = ((arg1)->prec); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icCLutStruct_pad1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad1_set" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icCLutStruct_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icCLutStruct_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icCLutStruct_pad1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad1_get" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + result = ((arg1)->pad1); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icCLutStruct_pad2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad2_set" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icCLutStruct_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icCLutStruct_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icCLutStruct_pad2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad2_get" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + result = ((arg1)->pad2); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icCLutStruct_pad3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad3_set" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icCLutStruct_pad3_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icCLutStruct_pad3_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad3 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icCLutStruct_pad3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icCLutStruct_pad3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icCLutStruct_pad3_get" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + result = ((arg1)->pad3); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_icCLutStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_icCLutStruct")) SWIG_fail; + + + InErrorFlag = 0; + result = (icCLutStruct *)new icCLutStruct(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icCLutStruct, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_icCLutStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icCLutStruct *arg1 = (icCLutStruct *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_icCLutStruct",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icCLutStruct, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_icCLutStruct" "', argument " "1"" of type '" "icCLutStruct *""'"); + } + arg1 = reinterpret_cast< icCLutStruct * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *icCLutStruct_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_icCLutStruct, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_icLutAtoB_inputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_inputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_inputChan_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_inputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_inputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->inputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_inputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_inputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_inputChan_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->inputChan); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_outputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_outputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_outputChan_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_outputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_outputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->outputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_outputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_outputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_outputChan_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->outputChan); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_pad1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_pad1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_pad1_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_pad1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_pad1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_pad1_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->pad1); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_pad2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_pad2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_pad2_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_pad2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_pad2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_pad2_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->pad2); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetB_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_offsetB_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetB_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_offsetB_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_offsetB_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetB = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetB_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_offsetB_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetB_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->offsetB); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetMat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_offsetMat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetMat_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_offsetMat_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_offsetMat_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetMat = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetMat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_offsetMat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetMat_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->offsetMat); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetM_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_offsetM_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetM_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_offsetM_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_offsetM_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetM = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetM_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_offsetM_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetM_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->offsetM); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetC_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_offsetC_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetC_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_offsetC_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_offsetC_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetC = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetC_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_offsetC_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetC_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->offsetC); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetA_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutAtoB_offsetA_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetA_set" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutAtoB_offsetA_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutAtoB_offsetA_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetA = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutAtoB_offsetA_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutAtoB_offsetA_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutAtoB_offsetA_get" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + result = ((arg1)->offsetA); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_icLutAtoB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_icLutAtoB")) SWIG_fail; + + + InErrorFlag = 0; + result = (icLutAtoB *)new icLutAtoB(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icLutAtoB, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_icLutAtoB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutAtoB *arg1 = (icLutAtoB *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_icLutAtoB",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutAtoB, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_icLutAtoB" "', argument " "1"" of type '" "icLutAtoB *""'"); + } + arg1 = reinterpret_cast< icLutAtoB * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *icLutAtoB_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_icLutAtoB, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_icLutBtoA_inputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_inputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_inputChan_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_inputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_inputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->inputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_inputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_inputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_inputChan_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->inputChan); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_outputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_outputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_outputChan_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_outputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_outputChan_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->outputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_outputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_outputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_outputChan_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->outputChan); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_pad1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_pad1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_pad1_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_pad1_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_pad1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_pad1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_pad1_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->pad1); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_pad2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_pad2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_pad2_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_pad2_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->pad2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_pad2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_pad2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_pad2_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->pad2); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetB_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_offsetB_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetB_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_offsetB_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_offsetB_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetB = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetB_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_offsetB_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetB_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->offsetB); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetMat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_offsetMat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetMat_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_offsetMat_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_offsetMat_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetMat = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetMat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_offsetMat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetMat_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->offsetMat); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetM_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_offsetM_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetM_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_offsetM_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_offsetM_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetM = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetM_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_offsetM_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetM_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->offsetM); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetC_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_offsetC_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetC_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_offsetC_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_offsetC_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetC = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetC_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_offsetC_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetC_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->offsetC); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetA_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:icLutBtoA_offsetA_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetA_set" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "icLutBtoA_offsetA_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "icLutBtoA_offsetA_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->offsetA = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_icLutBtoA_offsetA_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:icLutBtoA_offsetA_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "icLutBtoA_offsetA_get" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + result = ((arg1)->offsetA); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_icLutBtoA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_icLutBtoA")) SWIG_fail; + + + InErrorFlag = 0; + result = (icLutBtoA *)new icLutBtoA(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icLutBtoA, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_icLutBtoA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icLutBtoA *arg1 = (icLutBtoA *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_icLutBtoA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icLutBtoA, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_icLutBtoA" "', argument " "1"" of type '" "icLutBtoA *""'"); + } + arg1 = reinterpret_cast< icLutBtoA * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *icLutBtoA_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_icLutBtoA, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Crc32_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSGAMMAPARAMS_Crc32_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Crc32_set" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LCMSGAMMAPARAMS_Crc32_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->Crc32 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Crc32_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSGAMMAPARAMS_Crc32_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Crc32_get" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + result = (unsigned int) ((arg1)->Crc32); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSGAMMAPARAMS_Type_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Type_set" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LCMSGAMMAPARAMS_Type_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Type = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSGAMMAPARAMS_Type_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Type_get" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + result = (int) ((arg1)->Type); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + double *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSGAMMAPARAMS_Params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Params_set" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSGAMMAPARAMS_Params_set" "', argument " "2"" of type '" "double [10]""'"); + } + arg2 = reinterpret_cast< double * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)10; ++ii) arg1->Params[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Params""' of type '""double [10]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSGAMMAPARAMS_Params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSGAMMAPARAMS_Params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSGAMMAPARAMS_Params_get" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + result = (double *)(double *) ((arg1)->Params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_LCMSGAMMAPARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_LCMSGAMMAPARAMS")) SWIG_fail; + + + InErrorFlag = 0; + result = (LCMSGAMMAPARAMS *)new LCMSGAMMAPARAMS(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LCMSGAMMAPARAMS, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_LCMSGAMMAPARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSGAMMAPARAMS *arg1 = (LCMSGAMMAPARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_LCMSGAMMAPARAMS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LCMSGAMMAPARAMS, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LCMSGAMMAPARAMS" "', argument " "1"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg1 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *LCMSGAMMAPARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_LCMSGAMMAPARAMS, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_GAMMATABLE_Seed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + LCMSGAMMAPARAMS *arg2 = (LCMSGAMMAPARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GAMMATABLE_Seed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_Seed_set" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GAMMATABLE_Seed_set" "', argument " "2"" of type '" "LCMSGAMMAPARAMS *""'"); + } + arg2 = reinterpret_cast< LCMSGAMMAPARAMS * >(argp2); + if (arg1) (arg1)->Seed = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE_Seed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSGAMMAPARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GAMMATABLE_Seed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_Seed_get" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + result = (LCMSGAMMAPARAMS *)& ((arg1)->Seed); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LCMSGAMMAPARAMS, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE_nEntries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GAMMATABLE_nEntries_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_nEntries_set" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GAMMATABLE_nEntries_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->nEntries = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE_nEntries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:GAMMATABLE_nEntries_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_nEntries_get" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + result = (int) ((arg1)->nEntries); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE_GammaTable_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:GAMMATABLE_GammaTable_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_GammaTable_set" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GAMMATABLE_GammaTable_set" "', argument " "2"" of type '" "WORD [1]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)1; ++ii) arg1->GammaTable[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""GammaTable""' of type '""WORD [1]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE_GammaTable_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GAMMATABLE_GammaTable_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE_GammaTable_get" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + result = (WORD *)(WORD *) ((arg1)->GammaTable); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_GAMMATABLE__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + int arg2 ; + double val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + GAMMATABLE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_GAMMATABLE",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GAMMATABLE" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GAMMATABLE" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (GAMMATABLE *)new_GAMMATABLE__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_GAMMATABLE__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + GAMMATABLE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_GAMMATABLE",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GAMMATABLE" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (GAMMATABLE *)new_GAMMATABLE__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_GAMMATABLE(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 2); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_GAMMATABLE__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_GAMMATABLE__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_GAMMATABLE'.\n" + " Possible C/C++ prototypes are:\n" + " GAMMATABLE(double,int)\n" + " GAMMATABLE(double)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_GAMMATABLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_GAMMATABLE",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GAMMATABLE" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + + + InErrorFlag = 0; + delete_GAMMATABLE(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:GAMMATABLE___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE___repr__" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + + + InErrorFlag = 0; + result = (char *)GAMMATABLE___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OO:GAMMATABLE___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE___getitem__" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GAMMATABLE___getitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (WORD)GAMMATABLE___getitem__(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_GAMMATABLE___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + GAMMATABLE *arg1 = (GAMMATABLE *) 0 ; + int arg2 ; + WORD arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:GAMMATABLE___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GAMMATABLE___setitem__" "', argument " "1"" of type '" "GAMMATABLE *""'"); + } + arg1 = reinterpret_cast< GAMMATABLE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GAMMATABLE___setitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GAMMATABLE___setitem__" "', argument " "3"" of type '" "WORD""'"); + } + arg3 = static_cast< WORD >(val3); + + + InErrorFlag = 0; + GAMMATABLE___setitem__(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *GAMMATABLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_GAMMATABLE, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_VEC3_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + double *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3_n_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3_n_set" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3_n_set" "', argument " "2"" of type '" "double [3]""'"); + } + arg2 = reinterpret_cast< double * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->n[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""n""' of type '""double [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:VEC3_n_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3_n_get" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + result = (double *)(double *) ((arg1)->n); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_VEC3__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + VEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_VEC3",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VEC3" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VEC3" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_VEC3" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (VEC3 *)new_VEC3__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VEC3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_VEC3__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + VEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_VEC3",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VEC3" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_VEC3" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (VEC3 *)new_VEC3__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VEC3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_VEC3__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + VEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_VEC3",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VEC3" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (VEC3 *)new_VEC3__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VEC3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_VEC3__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_VEC3")) SWIG_fail; + + + InErrorFlag = 0; + result = (VEC3 *)new_VEC3__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VEC3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_VEC3(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_VEC3__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_VEC3__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_VEC3__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_VEC3__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_VEC3'.\n" + " Possible C/C++ prototypes are:\n" + " VEC3(double,double,double)\n" + " VEC3(double,double)\n" + " VEC3(double)\n" + " VEC3()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_VEC3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_VEC3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VEC3" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + + + InErrorFlag = 0; + delete_VEC3(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3___getitem__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3___getitem__" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VEC3___getitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (double)VEC3___getitem__(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + int arg2 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3___setitem__" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VEC3___setitem__" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3___setitem__" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + VEC3___setitem__(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + VEC3 *arg1 = (VEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:VEC3___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3___repr__" "', argument " "1"" of type '" "VEC3 *""'"); + } + arg1 = reinterpret_cast< VEC3 * >(argp1); + + + InErrorFlag = 0; + result = (char *)VEC3___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *VEC3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_VEC3, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_MAT3_v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MAT3 *arg1 = (MAT3 *) 0 ; + VEC3 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MAT3_v_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3_v_set" "', argument " "1"" of type '" "MAT3 *""'"); + } + arg1 = reinterpret_cast< MAT3 * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3_v_set" "', argument " "2"" of type '" "VEC3 [3]""'"); + } + arg2 = reinterpret_cast< VEC3 * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->v[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""v""' of type '""VEC3 [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3_v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MAT3 *arg1 = (MAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + VEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MAT3_v_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3_v_get" "', argument " "1"" of type '" "MAT3 *""'"); + } + arg1 = reinterpret_cast< MAT3 * >(argp1); + result = (VEC3 *)(VEC3 *) ((arg1)->v); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_VEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_MAT3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_MAT3")) SWIG_fail; + + + InErrorFlag = 0; + result = (MAT3 *)new MAT3(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MAT3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MAT3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MAT3 *arg1 = (MAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MAT3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MAT3" "', argument " "1"" of type '" "MAT3 *""'"); + } + arg1 = reinterpret_cast< MAT3 * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MAT3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MAT3, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_X_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZ_X_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_X_set" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIEXYZ_X_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->X = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_X_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZ_X_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_X_get" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + result = (double) ((arg1)->X); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZ_Y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_Y_set" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIEXYZ_Y_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->Y = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZ_Y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_Y_get" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + result = (double) ((arg1)->Y); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_Z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZ_Z_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_Z_set" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIEXYZ_Z_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->Z = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ_Z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZ_Z_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ_Z_get" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + result = (double) ((arg1)->Z); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZ__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIEXYZ",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIEXYZ" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIEXYZ" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsCIEXYZ" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (cmsCIEXYZ *)new_cmsCIEXYZ__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZ__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_cmsCIEXYZ",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIEXYZ" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIEXYZ" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsCIEXYZ *)new_cmsCIEXYZ__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZ__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_cmsCIEXYZ",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIEXYZ" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (cmsCIEXYZ *)new_cmsCIEXYZ__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZ__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsCIEXYZ")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsCIEXYZ *)new_cmsCIEXYZ__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZ(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_cmsCIEXYZ__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIEXYZ__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIEXYZ__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIEXYZ__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIEXYZ'.\n" + " Possible C/C++ prototypes are:\n" + " cmsCIEXYZ(double,double,double)\n" + " cmsCIEXYZ(double,double)\n" + " cmsCIEXYZ(double)\n" + " cmsCIEXYZ()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIEXYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIEXYZ",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIEXYZ" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIEXYZ(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZ___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZ___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZ___repr__" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIEXYZ___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIEXYZ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIEXYZ, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIExyY_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyY_x_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_x_set" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIExyY_x_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->x = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyY_x_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_x_get" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + result = (double) ((arg1)->x); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyY_y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_y_set" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIExyY_y_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->y = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyY_y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_y_get" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + result = (double) ((arg1)->y); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY_Y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyY_Y_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_Y_set" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIExyY_Y_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->Y = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY_Y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyY_Y_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY_Y_get" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + result = (double) ((arg1)->Y); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyY__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIExyY",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIExyY" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIExyY" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsCIExyY" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (cmsCIExyY *)new_cmsCIExyY__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyY__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_cmsCIExyY",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIExyY" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIExyY" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsCIExyY *)new_cmsCIExyY__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyY__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_cmsCIExyY",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIExyY" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (cmsCIExyY *)new_cmsCIExyY__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyY__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsCIExyY")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsCIExyY *)new_cmsCIExyY__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyY(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_cmsCIExyY__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIExyY__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIExyY__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIExyY__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIExyY'.\n" + " Possible C/C++ prototypes are:\n" + " cmsCIExyY(double,double,double)\n" + " cmsCIExyY(double,double)\n" + " cmsCIExyY(double)\n" + " cmsCIExyY()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIExyY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIExyY",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIExyY" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIExyY(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyY___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyY___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyY___repr__" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIExyY___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIExyY_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIExyY, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIELab_L_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELab_L_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_L_set" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELab_L_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->L = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab_L_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELab_L_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_L_get" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + result = (double) ((arg1)->L); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELab_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_a_set" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELab_a_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->a = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELab_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_a_get" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + result = (double) ((arg1)->a); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELab_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_b_set" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELab_b_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->b = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELab_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab_b_get" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + result = (double) ((arg1)->b); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELab__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIELab *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIELab",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELab" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIELab" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsCIELab" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (cmsCIELab *)new_cmsCIELab__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELab, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELab__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsCIELab *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_cmsCIELab",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELab" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIELab" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsCIELab *)new_cmsCIELab__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELab, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELab__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIELab *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_cmsCIELab",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELab" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (cmsCIELab *)new_cmsCIELab__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELab, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELab__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsCIELab")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsCIELab *)new_cmsCIELab__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELab, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELab(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_cmsCIELab__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELab__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELab__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELab__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELab'.\n" + " Possible C/C++ prototypes are:\n" + " cmsCIELab(double,double,double)\n" + " cmsCIELab(double,double)\n" + " cmsCIELab(double)\n" + " cmsCIELab()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIELab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIELab",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIELab" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIELab(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELab___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab___repr__" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIELab___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELab___cmp__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELab *arg1 = (cmsCIELab *) 0 ; + cmsCIELab *arg2 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELab___cmp__",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELab___cmp__" "', argument " "1"" of type '" "cmsCIELab *""'"); + } + arg1 = reinterpret_cast< cmsCIELab * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIELab___cmp__" "', argument " "2"" of type '" "cmsCIELab *""'"); + } + arg2 = reinterpret_cast< cmsCIELab * >(argp2); + + + InErrorFlag = 0; + result = (int)cmsCIELab___cmp__(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIELab_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIELab, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIELCh_L_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELCh_L_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_L_set" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELCh_L_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->L = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh_L_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELCh_L_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_L_get" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + result = (double) ((arg1)->L); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh_C_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELCh_C_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_C_set" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELCh_C_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->C = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh_C_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELCh_C_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_C_get" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + result = (double) ((arg1)->C); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIELCh_h_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_h_set" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCIELCh_h_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->h = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELCh_h_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh_h_get" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + result = (double) ((arg1)->h); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELCh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIELCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIELCh",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIELCh" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsCIELCh" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (cmsCIELCh *)new_cmsCIELCh__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELCh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsCIELCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_cmsCIELCh",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsCIELCh" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsCIELCh *)new_cmsCIELCh__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELCh__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIELCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_cmsCIELCh",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsCIELCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (cmsCIELCh *)new_cmsCIELCh__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELCh__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsCIELCh")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsCIELCh *)new_cmsCIELCh__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIELCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIELCh(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_cmsCIELCh__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELCh__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELCh__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsCIELCh__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsCIELCh'.\n" + " Possible C/C++ prototypes are:\n" + " cmsCIELCh(double,double,double)\n" + " cmsCIELCh(double,double)\n" + " cmsCIELCh(double)\n" + " cmsCIELCh()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIELCh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIELCh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIELCh" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIELCh(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIELCh___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIELCh *arg1 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIELCh___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIELCh___repr__" "', argument " "1"" of type '" "cmsCIELCh *""'"); + } + arg1 = reinterpret_cast< cmsCIELCh * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIELCh___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIELCh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIELCh, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsJCh_J_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsJCh_J_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_J_set" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsJCh_J_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->J = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh_J_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsJCh_J_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_J_get" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + result = (double) ((arg1)->J); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh_C_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsJCh_C_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_C_set" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsJCh_C_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->C = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh_C_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsJCh_C_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_C_get" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + result = (double) ((arg1)->C); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh_h_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsJCh_h_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_h_set" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsJCh_h_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->h = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh_h_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsJCh_h_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh_h_get" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + result = (double) ((arg1)->h); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsJCh__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double arg3 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsJCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsJCh",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsJCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsJCh" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsJCh" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (cmsJCh *)new_cmsJCh__SWIG_0(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsJCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsJCh__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double arg2 ; + double val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsJCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_cmsJCh",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsJCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsJCh" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsJCh *)new_cmsJCh__SWIG_0(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsJCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsJCh__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + cmsJCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_cmsJCh",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_cmsJCh" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (cmsJCh *)new_cmsJCh__SWIG_0(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsJCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsJCh__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsJCh")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsJCh *)new_cmsJCh__SWIG_0(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsJCh, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsJCh(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 0) { + return _wrap_new_cmsJCh__SWIG_3(self, args); + } + if (argc == 1) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsJCh__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsJCh__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_double(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_double(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_new_cmsJCh__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_cmsJCh'.\n" + " Possible C/C++ prototypes are:\n" + " cmsJCh(double,double,double)\n" + " cmsJCh(double,double)\n" + " cmsJCh(double)\n" + " cmsJCh()\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsJCh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsJCh",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsJCh" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + + + InErrorFlag = 0; + delete_cmsJCh(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJCh___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsJCh *arg1 = (cmsJCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsJCh___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJCh___repr__" "', argument " "1"" of type '" "cmsJCh *""'"); + } + arg1 = reinterpret_cast< cmsJCh * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsJCh___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsJCh_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsJCh, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZTRIPLE_Red_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Red_set" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIEXYZTRIPLE_Red_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->Red = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZTRIPLE_Red_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Red_get" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->Red); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZTRIPLE_Green_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Green_set" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIEXYZTRIPLE_Green_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->Green = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZTRIPLE_Green_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Green_get" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->Green); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIEXYZTRIPLE_Blue_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Blue_set" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIEXYZTRIPLE_Blue_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->Blue = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE_Blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZTRIPLE_Blue_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE_Blue_get" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->Blue); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIEXYZTRIPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + cmsCIEXYZ *arg3 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIEXYZTRIPLE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIEXYZTRIPLE",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_cmsCIEXYZTRIPLE" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_cmsCIEXYZTRIPLE" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_cmsCIEXYZTRIPLE" "', argument " "3"" of type '" "cmsCIEXYZ *""'"); + } + arg3 = reinterpret_cast< cmsCIEXYZ * >(argp3); + + + InErrorFlag = 0; + result = (cmsCIEXYZTRIPLE *)new_cmsCIEXYZTRIPLE(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZTRIPLE, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIEXYZTRIPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIEXYZTRIPLE",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIEXYZTRIPLE" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIEXYZTRIPLE(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIEXYZTRIPLE___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZTRIPLE *arg1 = (cmsCIEXYZTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIEXYZTRIPLE___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIEXYZTRIPLE___repr__" "', argument " "1"" of type '" "cmsCIEXYZTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZTRIPLE * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIEXYZTRIPLE___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIEXYZTRIPLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIEXYZTRIPLE, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + cmsCIExyY *arg2 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyYTRIPLE_Red_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Red_set" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIExyYTRIPLE_Red_set" "', argument " "2"" of type '" "cmsCIExyY *""'"); + } + arg2 = reinterpret_cast< cmsCIExyY * >(argp2); + if (arg1) (arg1)->Red = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyYTRIPLE_Red_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Red_get" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + result = (cmsCIExyY *)& ((arg1)->Red); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + cmsCIExyY *arg2 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyYTRIPLE_Green_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Green_set" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIExyYTRIPLE_Green_set" "', argument " "2"" of type '" "cmsCIExyY *""'"); + } + arg2 = reinterpret_cast< cmsCIExyY * >(argp2); + if (arg1) (arg1)->Green = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyYTRIPLE_Green_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Green_get" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + result = (cmsCIExyY *)& ((arg1)->Green); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + cmsCIExyY *arg2 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIExyYTRIPLE_Blue_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Blue_set" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIExyYTRIPLE_Blue_set" "', argument " "2"" of type '" "cmsCIExyY *""'"); + } + arg2 = reinterpret_cast< cmsCIExyY * >(argp2); + if (arg1) (arg1)->Blue = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE_Blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIExyY *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyYTRIPLE_Blue_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE_Blue_get" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + result = (cmsCIExyY *)& ((arg1)->Blue); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsCIExyYTRIPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyY *arg1 = (cmsCIExyY *) 0 ; + cmsCIExyY *arg2 = (cmsCIExyY *) 0 ; + cmsCIExyY *arg3 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsCIExyYTRIPLE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:new_cmsCIExyYTRIPLE",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_cmsCIExyYTRIPLE" "', argument " "1"" of type '" "cmsCIExyY *""'"); + } + arg1 = reinterpret_cast< cmsCIExyY * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_cmsCIExyYTRIPLE" "', argument " "2"" of type '" "cmsCIExyY *""'"); + } + arg2 = reinterpret_cast< cmsCIExyY * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_cmsCIExyYTRIPLE" "', argument " "3"" of type '" "cmsCIExyY *""'"); + } + arg3 = reinterpret_cast< cmsCIExyY * >(argp3); + + + InErrorFlag = 0; + result = (cmsCIExyYTRIPLE *)new_cmsCIExyYTRIPLE(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyYTRIPLE, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsCIExyYTRIPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsCIExyYTRIPLE",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsCIExyYTRIPLE" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + + + InErrorFlag = 0; + delete_cmsCIExyYTRIPLE(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIExyYTRIPLE___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIExyYTRIPLE *arg1 = (cmsCIExyYTRIPLE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIExyYTRIPLE___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIExyYTRIPLE___repr__" "', argument " "1"" of type '" "cmsCIExyYTRIPLE *""'"); + } + arg1 = reinterpret_cast< cmsCIExyYTRIPLE * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsCIExyYTRIPLE___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsCIExyYTRIPLE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsCIExyYTRIPLE, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsD50_XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ result; + + if (!PyArg_ParseTuple(args,(char *)":cmsD50_XYZ")) SWIG_fail; + + + InErrorFlag = 0; + result = (LPcmsCIEXYZ)cmsD50_XYZ(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsD50_xyY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY result; + + if (!PyArg_ParseTuple(args,(char *)":cmsD50_xyY")) SWIG_fail; + + + InErrorFlag = 0; + result = (LPcmsCIExyY)cmsD50_xyY(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsOpenProfileFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsOpenProfileFromFile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsOpenProfileFromFile" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsOpenProfileFromFile" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsOpenProfileFromFile((char const *)arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsOpenProfileFromMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVOID arg1 = (LPVOID) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsOpenProfileFromMem",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsOpenProfileFromMem" "', argument " "1"" of type '" "LPVOID""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsOpenProfileFromMem" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsOpenProfileFromMem(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCloseProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCloseProfile",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCloseProfile" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsCloseProfile(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateRGBProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY arg1 = (LPcmsCIExyY) 0 ; + LPcmsCIExyYTRIPLE arg2 = (LPcmsCIExyYTRIPLE) 0 ; + LPGAMMATABLE *arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + LPGAMMATABLE gamma3[3] ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsCreateRGBProfile",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateRGBProfile" "', argument " "1"" of type '" "LPcmsCIExyY""'"); + } + arg1 = reinterpret_cast< LPcmsCIExyY >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCreateRGBProfile" "', argument " "2"" of type '" "LPcmsCIExyYTRIPLE""'"); + } + arg2 = reinterpret_cast< LPcmsCIExyYTRIPLE >(argp2); + { + PyObject* tmp[3]; + + if (PyTuple_Check(obj2)) { + if (!PyArg_ParseTuple(obj2,"OOO",&tmp[0],&tmp[1],&tmp[2])) { + PyErr_SetString(PyExc_TypeError,"gamma must have 3 elements"); + return NULL; + } + + if ((SWIG_ConvertPtr(tmp[0], (void **) &gamma3[0], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + if ((SWIG_ConvertPtr(tmp[1], (void **) &gamma3[1], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + if ((SWIG_ConvertPtr(tmp[2], (void **) &gamma3[2], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + + arg3 = gamma3; + + } else { + PyErr_SetString(PyExc_TypeError,"expected a tuple."); + return NULL; + } + } + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateRGBProfile(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateGrayProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY arg1 = (LPcmsCIExyY) 0 ; + LPGAMMATABLE arg2 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCreateGrayProfile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateGrayProfile" "', argument " "1"" of type '" "LPcmsCIExyY""'"); + } + arg1 = reinterpret_cast< LPcmsCIExyY >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCreateGrayProfile" "', argument " "2"" of type '" "LPGAMMATABLE""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE >(argp2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateGrayProfile(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateLinearizationDeviceLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + LPGAMMATABLE *arg2 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCreateLinearizationDeviceLink",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateLinearizationDeviceLink" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsCreateLinearizationDeviceLink" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCreateLinearizationDeviceLink" "', argument " "2"" of type '" "LPGAMMATABLE []""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE * >(argp2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateLinearizationDeviceLink(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateInkLimitingDeviceLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + double arg2 ; + void *argp1 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCreateInkLimitingDeviceLink",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateInkLimitingDeviceLink" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsCreateInkLimitingDeviceLink" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCreateInkLimitingDeviceLink" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateInkLimitingDeviceLink(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateLabProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY arg1 = (LPcmsCIExyY) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCreateLabProfile",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateLabProfile" "', argument " "1"" of type '" "LPcmsCIExyY""'"); + } + arg1 = reinterpret_cast< LPcmsCIExyY >(argp1); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateLabProfile(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateLab4Profile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY arg1 = (LPcmsCIExyY) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCreateLab4Profile",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateLab4Profile" "', argument " "1"" of type '" "LPcmsCIExyY""'"); + } + arg1 = reinterpret_cast< LPcmsCIExyY >(argp1); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateLab4Profile(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateXYZProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)":cmsCreateXYZProfile")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateXYZProfile(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreate_sRGBProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)":cmsCreate_sRGBProfile")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreate_sRGBProfile(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateBCHSWabstractProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + double arg2 ; + double arg3 ; + double arg4 ; + double arg5 ; + int arg6 ; + int arg7 ; + int val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + double val5 ; + int ecode5 = 0 ; + int val6 ; + int ecode6 = 0 ; + int val7 ; + int ecode7 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cmsCreateBCHSWabstractProfile",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + ecode5 = SWIG_AsVal_double(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "5"" of type '" "double""'"); + } + arg5 = static_cast< double >(val5); + ecode6 = SWIG_AsVal_int(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "6"" of type '" "int""'"); + } + arg6 = static_cast< int >(val6); + ecode7 = SWIG_AsVal_int(obj6, &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cmsCreateBCHSWabstractProfile" "', argument " "7"" of type '" "int""'"); + } + arg7 = static_cast< int >(val7); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateBCHSWabstractProfile(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateNULLProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)":cmsCreateNULLProfile")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsCreateNULLProfile(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsXYZ2xyY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIExyY arg1 = (LPcmsCIExyY) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsXYZ2xyY",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsXYZ2xyY" "', argument " "1"" of type '" "LPcmsCIExyY""'"); + } + arg1 = reinterpret_cast< LPcmsCIExyY >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsXYZ2xyY" "', argument " "2"" of type '" "cmsCIEXYZ const *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + + + InErrorFlag = 0; + cmsXYZ2xyY(arg1,(cmsCIEXYZ const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsxyY2XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + cmsCIExyY *arg2 = (cmsCIExyY *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsxyY2XYZ",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsxyY2XYZ" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsxyY2XYZ" "', argument " "2"" of type '" "cmsCIExyY const *""'"); + } + arg2 = reinterpret_cast< cmsCIExyY * >(argp2); + + + InErrorFlag = 0; + cmsxyY2XYZ(arg1,(cmsCIExyY const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsXYZ2Lab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + cmsCIEXYZ *arg3 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsXYZ2Lab",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsXYZ2Lab" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsXYZ2Lab" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsXYZ2Lab" "', argument " "3"" of type '" "cmsCIEXYZ const *""'"); + } + arg3 = reinterpret_cast< cmsCIEXYZ * >(argp3); + + + InErrorFlag = 0; + cmsXYZ2Lab(arg1,arg2,(cmsCIEXYZ const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLab2XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg2 = (LPcmsCIEXYZ) 0 ; + cmsCIELab *arg3 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsLab2XYZ",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLab2XYZ" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLab2XYZ" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); + } + arg2 = reinterpret_cast< LPcmsCIEXYZ >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsLab2XYZ" "', argument " "3"" of type '" "cmsCIELab const *""'"); + } + arg3 = reinterpret_cast< cmsCIELab * >(argp3); + + + InErrorFlag = 0; + cmsLab2XYZ(arg1,arg2,(cmsCIELab const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLab2LCh(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELCh arg1 = (LPcmsCIELCh) 0 ; + cmsCIELab *arg2 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsLab2LCh",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLab2LCh" "', argument " "1"" of type '" "LPcmsCIELCh""'"); + } + arg1 = reinterpret_cast< LPcmsCIELCh >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLab2LCh" "', argument " "2"" of type '" "cmsCIELab const *""'"); + } + arg2 = reinterpret_cast< cmsCIELab * >(argp2); + + + InErrorFlag = 0; + cmsLab2LCh(arg1,(cmsCIELab const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLCh2Lab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + cmsCIELCh *arg2 = (cmsCIELCh *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsLCh2Lab",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLCh2Lab" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELCh, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLCh2Lab" "', argument " "2"" of type '" "cmsCIELCh const *""'"); + } + arg2 = reinterpret_cast< cmsCIELCh * >(argp2); + + + InErrorFlag = 0; + cmsLCh2Lab(arg1,(cmsCIELCh const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDeltaE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsDeltaE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDeltaE" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsDeltaE" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + + + InErrorFlag = 0; + result = (double)cmsDeltaE(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIE94DeltaE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCIE94DeltaE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIE94DeltaE" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIE94DeltaE" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + + + InErrorFlag = 0; + result = (double)cmsCIE94DeltaE(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBFDdeltaE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsBFDdeltaE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsBFDdeltaE" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsBFDdeltaE" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + + + InErrorFlag = 0; + result = (double)cmsBFDdeltaE(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCMCdeltaE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCMCdeltaE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCMCdeltaE" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCMCdeltaE" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + + + InErrorFlag = 0; + result = (double)cmsCMCdeltaE(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIE2000DeltaE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + LPcmsCIELab arg2 = (LPcmsCIELab) 0 ; + double arg3 ; + double arg4 ; + double arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + double val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsCIE2000DeltaE",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIE2000DeltaE" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIE2000DeltaE" "', argument " "2"" of type '" "LPcmsCIELab""'"); + } + arg2 = reinterpret_cast< LPcmsCIELab >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsCIE2000DeltaE" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCIE2000DeltaE" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + ecode5 = SWIG_AsVal_double(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsCIE2000DeltaE" "', argument " "5"" of type '" "double""'"); + } + arg5 = static_cast< double >(val5); + + + InErrorFlag = 0; + result = (double)cmsCIE2000DeltaE(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsClampLab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + double arg2 ; + double arg3 ; + double arg4 ; + double arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + double val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsClampLab",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsClampLab" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsClampLab" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsClampLab" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsClampLab" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + ecode5 = SWIG_AsVal_double(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsClampLab" "', argument " "5"" of type '" "double""'"); + } + arg5 = static_cast< double >(val5); + + + InErrorFlag = 0; + cmsClampLab(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsWhitePointFromTemp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + LPcmsCIExyY arg2 = (LPcmsCIExyY) 0 ; + int val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsWhitePointFromTemp",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsWhitePointFromTemp" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsWhitePointFromTemp" "', argument " "2"" of type '" "LPcmsCIExyY""'"); + } + arg2 = reinterpret_cast< LPcmsCIExyY >(argp2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsWhitePointFromTemp(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAdaptToIlluminant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg2 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg3 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg4 = (LPcmsCIEXYZ) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsAdaptToIlluminant",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAdaptToIlluminant" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAdaptToIlluminant" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); + } + arg2 = reinterpret_cast< LPcmsCIEXYZ >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAdaptToIlluminant" "', argument " "3"" of type '" "LPcmsCIEXYZ""'"); + } + arg3 = reinterpret_cast< LPcmsCIEXYZ >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsAdaptToIlluminant" "', argument " "4"" of type '" "LPcmsCIEXYZ""'"); + } + arg4 = reinterpret_cast< LPcmsCIEXYZ >(argp4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAdaptToIlluminant(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBuildRGB2XYZtransferMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPcmsCIExyY arg2 = (LPcmsCIExyY) 0 ; + LPcmsCIExyYTRIPLE arg3 = (LPcmsCIExyYTRIPLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsBuildRGB2XYZtransferMatrix",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsBuildRGB2XYZtransferMatrix" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsBuildRGB2XYZtransferMatrix" "', argument " "2"" of type '" "LPcmsCIExyY""'"); + } + arg2 = reinterpret_cast< LPcmsCIExyY >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsBuildRGB2XYZtransferMatrix" "', argument " "3"" of type '" "LPcmsCIExyYTRIPLE""'"); + } + arg3 = reinterpret_cast< LPcmsCIExyYTRIPLE >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsBuildRGB2XYZtransferMatrix(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_whitePoint_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsViewingConditions_whitePoint_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_whitePoint_set" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsViewingConditions_whitePoint_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->whitePoint = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_whitePoint_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions_whitePoint_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_whitePoint_get" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->whitePoint); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_Yb_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsViewingConditions_Yb_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_Yb_set" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsViewingConditions_Yb_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->Yb = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_Yb_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions_Yb_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_Yb_get" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + result = (double) ((arg1)->Yb); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_La_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsViewingConditions_La_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_La_set" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsViewingConditions_La_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->La = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_La_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions_La_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_La_get" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + result = (double) ((arg1)->La); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_surround_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsViewingConditions_surround_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_surround_set" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsViewingConditions_surround_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->surround = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_surround_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions_surround_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_surround_get" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + result = (int) ((arg1)->surround); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_D_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsViewingConditions_D_value_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_D_value_set" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsViewingConditions_D_value_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->D_value = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions_D_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions_D_value_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions_D_value_get" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + result = (double) ((arg1)->D_value); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsViewingConditions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsCIEXYZ *arg1 = (cmsCIEXYZ *) 0 ; + double arg2 ; + double arg3 ; + int arg4 ; + double arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + double val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + cmsViewingConditions *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_cmsViewingConditions",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_cmsViewingConditions" "', argument " "1"" of type '" "cmsCIEXYZ *""'"); + } + arg1 = reinterpret_cast< cmsCIEXYZ * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_cmsViewingConditions" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_cmsViewingConditions" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_cmsViewingConditions" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + ecode5 = SWIG_AsVal_double(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_cmsViewingConditions" "', argument " "5"" of type '" "double""'"); + } + arg5 = static_cast< double >(val5); + + + InErrorFlag = 0; + result = (cmsViewingConditions *)new_cmsViewingConditions(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsViewingConditions, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsViewingConditions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsViewingConditions",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsViewingConditions" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + + + InErrorFlag = 0; + delete_cmsViewingConditions(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsViewingConditions___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsViewingConditions *arg1 = (cmsViewingConditions *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsViewingConditions___repr__",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsViewingConditions___repr__" "', argument " "1"" of type '" "cmsViewingConditions *""'"); + } + arg1 = reinterpret_cast< cmsViewingConditions * >(argp1); + + + InErrorFlag = 0; + result = (char *)cmsViewingConditions___repr__(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsViewingConditions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsViewingConditions, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCIECAM97sInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsViewingConditions arg1 = (LPcmsViewingConditions) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIECAM97sInit",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM97sInit" "', argument " "1"" of type '" "LPcmsViewingConditions""'"); + } + arg1 = reinterpret_cast< LPcmsViewingConditions >(argp1); + + + InErrorFlag = 0; + result = (LCMSHANDLE)cmsCIECAM97sInit(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM97sDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIECAM97sDone",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM97sDone" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + + + InErrorFlag = 0; + cmsCIECAM97sDone(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM97sForward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + LPcmsCIEXYZ arg2 = (LPcmsCIEXYZ) 0 ; + LPcmsJCh arg3 = (LPcmsJCh) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsCIECAM97sForward",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM97sForward" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIECAM97sForward" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); + } + arg2 = reinterpret_cast< LPcmsCIEXYZ >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCIECAM97sForward" "', argument " "3"" of type '" "LPcmsJCh""'"); + } + arg3 = reinterpret_cast< LPcmsJCh >(argp3); + + + InErrorFlag = 0; + cmsCIECAM97sForward(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM97sReverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + LPcmsJCh arg2 = (LPcmsJCh) 0 ; + LPcmsCIEXYZ arg3 = (LPcmsCIEXYZ) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsCIECAM97sReverse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM97sReverse" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIECAM97sReverse" "', argument " "2"" of type '" "LPcmsJCh""'"); + } + arg2 = reinterpret_cast< LPcmsJCh >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCIECAM97sReverse" "', argument " "3"" of type '" "LPcmsCIEXYZ""'"); + } + arg3 = reinterpret_cast< LPcmsCIEXYZ >(argp3); + + + InErrorFlag = 0; + cmsCIECAM97sReverse(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM02Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsViewingConditions arg1 = (LPcmsViewingConditions) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIECAM02Init",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsViewingConditions, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM02Init" "', argument " "1"" of type '" "LPcmsViewingConditions""'"); + } + arg1 = reinterpret_cast< LPcmsViewingConditions >(argp1); + + + InErrorFlag = 0; + result = (LCMSHANDLE)cmsCIECAM02Init(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM02Done(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsCIECAM02Done",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM02Done" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + + + InErrorFlag = 0; + cmsCIECAM02Done(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM02Forward(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + LPcmsCIEXYZ arg2 = (LPcmsCIEXYZ) 0 ; + LPcmsJCh arg3 = (LPcmsJCh) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsCIECAM02Forward",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM02Forward" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIECAM02Forward" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); + } + arg2 = reinterpret_cast< LPcmsCIEXYZ >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCIECAM02Forward" "', argument " "3"" of type '" "LPcmsJCh""'"); + } + arg3 = reinterpret_cast< LPcmsJCh >(argp3); + + + InErrorFlag = 0; + cmsCIECAM02Forward(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCIECAM02Reverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + LPcmsJCh arg2 = (LPcmsJCh) 0 ; + LPcmsCIEXYZ arg3 = (LPcmsCIEXYZ) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsCIECAM02Reverse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCIECAM02Reverse" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsJCh, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCIECAM02Reverse" "', argument " "2"" of type '" "LPcmsJCh""'"); + } + arg2 = reinterpret_cast< LPcmsJCh >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCIECAM02Reverse" "', argument " "3"" of type '" "LPcmsCIEXYZ""'"); + } + arg3 = reinterpret_cast< LPcmsCIEXYZ >(argp3); + + + InErrorFlag = 0; + cmsCIECAM02Reverse(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBuildGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + double arg2 ; + int val1 ; + int ecode1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsBuildGamma",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsBuildGamma" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsBuildGamma" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsBuildGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBuildParametricGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + double *arg3 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsBuildParametricGamma",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsBuildParametricGamma" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsBuildParametricGamma" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsBuildParametricGamma" "', argument " "3"" of type '" "double []""'"); + } + arg3 = reinterpret_cast< double * >(argp3); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsBuildParametricGamma(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsAllocGamma",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsAllocGamma" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsAllocGamma(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeGamma",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeGamma" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + + + InErrorFlag = 0; + cmsFreeGamma(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeGammaTriple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE *arg1 ; + LPGAMMATABLE gamma1[3] ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeGammaTriple",&obj0)) SWIG_fail; + { + PyObject* tmp[3]; + + if (PyTuple_Check(obj0)) { + if (!PyArg_ParseTuple(obj0,"OOO",&tmp[0],&tmp[1],&tmp[2])) { + PyErr_SetString(PyExc_TypeError,"gamma must have 3 elements"); + return NULL; + } + + if ((SWIG_ConvertPtr(tmp[0], (void **) &gamma1[0], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + if ((SWIG_ConvertPtr(tmp[1], (void **) &gamma1[1], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + if ((SWIG_ConvertPtr(tmp[2], (void **) &gamma1[2], SWIGTYPE_p_GAMMATABLE,1)) == -1) return NULL; + + arg1 = gamma1; + + } else { + PyErr_SetString(PyExc_TypeError,"expected a tuple."); + return NULL; + } + } + + + InErrorFlag = 0; + cmsFreeGammaTriple(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDupGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsDupGamma",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDupGamma" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsDupGamma(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReverseGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + LPGAMMATABLE arg2 = (LPGAMMATABLE) 0 ; + int val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReverseGamma",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsReverseGamma" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReverseGamma" "', argument " "2"" of type '" "LPGAMMATABLE""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE >(argp2); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsReverseGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJoinGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + LPGAMMATABLE arg2 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsJoinGamma",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJoinGamma" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsJoinGamma" "', argument " "2"" of type '" "LPGAMMATABLE""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE >(argp2); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsJoinGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJoinGammaEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + LPGAMMATABLE arg2 = (LPGAMMATABLE) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsJoinGammaEx",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJoinGammaEx" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsJoinGammaEx" "', argument " "2"" of type '" "LPGAMMATABLE""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE >(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsJoinGammaEx" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsJoinGammaEx(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSmoothGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSmoothGamma",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSmoothGamma" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSmoothGamma" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsSmoothGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEstimateGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsEstimateGamma",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEstimateGamma" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + + + InErrorFlag = 0; + result = (double)cmsEstimateGamma(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEstimateGammaEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWORD arg1 = (LPWORD) 0 ; + int arg2 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsEstimateGammaEx",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEstimateGammaEx" "', argument " "1"" of type '" "LPWORD""'"); + } + arg1 = reinterpret_cast< LPWORD >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsEstimateGammaEx" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsEstimateGammaEx" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (double)cmsEstimateGammaEx(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadICCGamma",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCGamma" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCGamma" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCGamma" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsReadICCGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCGammaReversed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadICCGammaReversed",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCGammaReversed" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCGammaReversed" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCGammaReversed" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsReadICCGammaReversed(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeMediaWhitePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeMediaWhitePoint",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeMediaWhitePoint" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeMediaWhitePoint" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeMediaWhitePoint(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeMediaBlackPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeMediaBlackPoint",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeMediaBlackPoint" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeMediaBlackPoint" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeMediaBlackPoint(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeIluminant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeIluminant",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeIluminant" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeIluminant" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeIluminant(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeColorants(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZTRIPLE arg1 = (LPcmsCIEXYZTRIPLE) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeColorants",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeColorants" "', argument " "1"" of type '" "LPcmsCIEXYZTRIPLE""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZTRIPLE >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeColorants" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeColorants(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeHeaderFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeHeaderFlags",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeHeaderFlags" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (DWORD)cmsTakeHeaderFlags(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeHeaderAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeHeaderAttributes",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeHeaderAttributes" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (DWORD)cmsTakeHeaderAttributes(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 ; + char *arg2 ; + char temp1[4] ; + int res1 ; + char temp2[4] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetLanguage",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharArray(obj0, temp1, 4); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetLanguage" "', argument " "1"" of type '" "char const [4]""'"); + } + arg1 = reinterpret_cast< char * >(temp1); + res2 = SWIG_AsCharArray(obj1, temp2, 4); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetLanguage" "', argument " "2"" of type '" "char const [4]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + + + InErrorFlag = 0; + cmsSetLanguage((char const (*))arg1,(char const (*))arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeProductName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeProductName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeProductName" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeProductName(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeProductDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeProductDesc",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeProductDesc" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeProductDesc(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeProductInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeProductInfo",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeProductInfo" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeProductInfo(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeManufacturer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeManufacturer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeManufacturer" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeManufacturer(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeModel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeModel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeModel" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeModel(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeCopyright(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeCopyright",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeCopyright" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsTakeCopyright(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeProfileID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + BYTE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeProfileID",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeProfileID" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (BYTE *)cmsTakeProfileID(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeCreationDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tm *arg1 = (tm *) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeCreationDateTime",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tm, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeCreationDateTime" "', argument " "1"" of type '" "tm *""'"); + } + arg1 = reinterpret_cast< tm * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeCreationDateTime" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeCreationDateTime(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeCalibrationDateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tm *arg1 = (tm *) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTakeCalibrationDateTime",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tm, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeCalibrationDateTime" "', argument " "1"" of type '" "tm *""'"); + } + arg1 = reinterpret_cast< tm * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeCalibrationDateTime" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeCalibrationDateTime(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIsTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIsTag",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIsTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIsTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsIsTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIsTag(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeRenderingIntent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsTakeRenderingIntent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeRenderingIntent" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (int)cmsTakeRenderingIntent(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTakeCharTargetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + char **arg2 = (char **) 0 ; + size_t *arg3 = (size_t *) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsTakeCharTargetData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTakeCharTargetData" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTakeCharTargetData" "', argument " "2"" of type '" "char **""'"); + } + arg2 = reinterpret_cast< char ** >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_size_t, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsTakeCharTargetData" "', argument " "3"" of type '" "size_t *""'"); + } + arg3 = reinterpret_cast< size_t * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsTakeCharTargetData(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCTextEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + char *arg3 = (char *) 0 ; + size_t arg4 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsReadICCTextEx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCTextEx" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCTextEx" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCTextEx" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCTextEx" "', argument " "3"" of type '" "char *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_size_t(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsReadICCTextEx" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + + + InErrorFlag = 0; + result = (int)cmsReadICCTextEx(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsReadICCText",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCText" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCText" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCText" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCText" "', argument " "3"" of type '" "char *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (int)cmsReadICCText(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_deviceMfg_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + icSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_deviceMfg_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_deviceMfg_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_deviceMfg_set" "', argument " "2"" of type '" "icSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsPSEQDESC_deviceMfg_set" "', argument " "2"" of type '" "icSignature""'"); + } else { + icSignature * temp = reinterpret_cast< icSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->deviceMfg = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_deviceMfg_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_deviceMfg_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_deviceMfg_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = ((arg1)->deviceMfg); + resultobj = SWIG_NewPointerObj((new icSignature(static_cast< const icSignature& >(result))), SWIGTYPE_p_icSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_deviceModel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + icSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_deviceModel_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_deviceModel_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_deviceModel_set" "', argument " "2"" of type '" "icSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsPSEQDESC_deviceModel_set" "', argument " "2"" of type '" "icSignature""'"); + } else { + icSignature * temp = reinterpret_cast< icSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->deviceModel = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_deviceModel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_deviceModel_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_deviceModel_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = ((arg1)->deviceModel); + resultobj = SWIG_NewPointerObj((new icSignature(static_cast< const icSignature& >(result))), SWIGTYPE_p_icSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_attributes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + icUInt32Number *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_attributes_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_attributes_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_icUInt32Number, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_attributes_set" "', argument " "2"" of type '" "icUInt32Number [2]""'"); + } + arg2 = reinterpret_cast< icUInt32Number * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)2; ++ii) arg1->attributes[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""attributes""' of type '""icUInt32Number [2]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_attributes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_attributes_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_attributes_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = (icUInt32Number *)(icUInt32Number *) ((arg1)->attributes); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icUInt32Number, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_technology_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + icTechnologySignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_technology_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_technology_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTechnologySignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_technology_set" "', argument " "2"" of type '" "icTechnologySignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsPSEQDESC_technology_set" "', argument " "2"" of type '" "icTechnologySignature""'"); + } else { + icTechnologySignature * temp = reinterpret_cast< icTechnologySignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->technology = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_technology_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icTechnologySignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_technology_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_technology_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = ((arg1)->technology); + resultobj = SWIG_NewPointerObj((new icTechnologySignature(static_cast< const icTechnologySignature& >(result))), SWIGTYPE_p_icTechnologySignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_Manufacturer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[512] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_Manufacturer_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_Manufacturer_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, 512); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Manufacturer_set" "', argument " "2"" of type '" "char [512]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->Manufacturer,arg2,512*sizeof(char)); + else memset(arg1->Manufacturer,0,512*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_Manufacturer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_Manufacturer_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_Manufacturer_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = (char *)(char *) ((arg1)->Manufacturer); + { + size_t size = 512; + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_Model_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[512] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsPSEQDESC_Model_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_Model_set" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, 512); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsPSEQDESC_Model_set" "', argument " "2"" of type '" "char [512]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->Model,arg2,512*sizeof(char)); + else memset(arg1->Model,0,512*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsPSEQDESC_Model_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsPSEQDESC_Model_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsPSEQDESC_Model_get" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + result = (char *)(char *) ((arg1)->Model); + { + size_t size = 512; + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsPSEQDESC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsPSEQDESC")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsPSEQDESC *)new cmsPSEQDESC(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsPSEQDESC, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsPSEQDESC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsPSEQDESC *arg1 = (cmsPSEQDESC *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsPSEQDESC",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsPSEQDESC, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsPSEQDESC" "', argument " "1"" of type '" "cmsPSEQDESC *""'"); + } + arg1 = reinterpret_cast< cmsPSEQDESC * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsPSEQDESC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsPSEQDESC, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsSEQ_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *arg1 = (cmsSEQ *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSEQ_n_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsSEQ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSEQ_n_set" "', argument " "1"" of type '" "cmsSEQ *""'"); + } + arg1 = reinterpret_cast< cmsSEQ * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSEQ_n_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->n = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSEQ_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *arg1 = (cmsSEQ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsSEQ_n_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsSEQ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSEQ_n_get" "', argument " "1"" of type '" "cmsSEQ *""'"); + } + arg1 = reinterpret_cast< cmsSEQ * >(argp1); + result = (int) ((arg1)->n); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSEQ_seq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *arg1 = (cmsSEQ *) 0 ; + cmsPSEQDESC *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSEQ_seq_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsSEQ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSEQ_seq_set" "', argument " "1"" of type '" "cmsSEQ *""'"); + } + arg1 = reinterpret_cast< cmsSEQ * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSEQ_seq_set" "', argument " "2"" of type '" "cmsPSEQDESC [1]""'"); + } + arg2 = reinterpret_cast< cmsPSEQDESC * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)1; ++ii) arg1->seq[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""seq""' of type '""cmsPSEQDESC [1]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSEQ_seq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *arg1 = (cmsSEQ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsPSEQDESC *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsSEQ_seq_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsSEQ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSEQ_seq_get" "', argument " "1"" of type '" "cmsSEQ *""'"); + } + arg1 = reinterpret_cast< cmsSEQ * >(argp1); + result = (cmsPSEQDESC *)(cmsPSEQDESC *) ((arg1)->seq); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsPSEQDESC, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsSEQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsSEQ")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsSEQ *)new cmsSEQ(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsSEQ, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsSEQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsSEQ *arg1 = (cmsSEQ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsSEQ",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsSEQ, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsSEQ" "', argument " "1"" of type '" "cmsSEQ *""'"); + } + arg1 = reinterpret_cast< cmsSEQ * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsSEQ_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsSEQ, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsReadProfileSequenceDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LPcmsSEQ result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsReadProfileSequenceDescription",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadProfileSequenceDescription" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsReadProfileSequenceDescription(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPcmsSEQ(static_cast< const LPcmsSEQ& >(result))), SWIGTYPE_p_LPcmsSEQ, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeProfileSequenceDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsSEQ arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeProfileSequenceDescription",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPcmsSEQ, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeProfileSequenceDescription" "', argument " "1"" of type '" "LPcmsSEQ""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsFreeProfileSequenceDescription" "', argument " "1"" of type '" "LPcmsSEQ""'"); + } else { + LPcmsSEQ * temp = reinterpret_cast< LPcmsSEQ * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + cmsFreeProfileSequenceDescription(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsICCcolorSpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsICCcolorSpace",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsICCcolorSpace" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = _cmsICCcolorSpace(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsLCMScolorSpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsLCMScolorSpace",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsLCMScolorSpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsLCMScolorSpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (int)_cmsLCMScolorSpace(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsChannelsOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsChannelsOf",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsChannelsOf" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsChannelsOf" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (int)_cmsChannelsOf(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsIsMatrixShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsIsMatrixShaper",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIsMatrixShaper" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsIsMatrixShaper(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIsIntentSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + int arg3 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIsIntentSupported",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIsIntentSupported" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIsIntentSupported" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIsIntentSupported" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIsIntentSupported(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetPCS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsGetPCS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetPCS" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsGetPCS(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetColorSpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsGetColorSpace",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetColorSpace" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsGetColorSpace(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetDeviceClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + icProfileClassSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsGetDeviceClass",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetDeviceClass" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsGetDeviceClass(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icProfileClassSignature(static_cast< const icProfileClassSignature& >(result))), SWIGTYPE_p_icProfileClassSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetProfileICCversion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsGetProfileICCversion",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetProfileICCversion" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (DWORD)cmsGetProfileICCversion(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetProfileICCversion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetProfileICCversion",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetProfileICCversion" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetProfileICCversion" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + cmsSetProfileICCversion(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetTagCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + icInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsGetTagCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetTagCount" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsGetTagCount(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icInt32Number(static_cast< const icInt32Number& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetTagSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + icInt32Number arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + SwigValueWrapper< icTagSignature > result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsGetTagSignature",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetTagSignature" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGetTagSignature" "', argument " "2"" of type '" "icInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsGetTagSignature" "', argument " "2"" of type '" "icInt32Number""'"); + } else { + icInt32Number * temp = reinterpret_cast< icInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = cmsGetTagSignature(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icTagSignature(static_cast< const icTagSignature& >(result))), SWIGTYPE_p_icTagSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetDeviceClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + icProfileClassSignature arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetDeviceClass",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetDeviceClass" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icProfileClassSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetDeviceClass" "', argument " "2"" of type '" "icProfileClassSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsSetDeviceClass" "', argument " "2"" of type '" "icProfileClassSignature""'"); + } else { + icProfileClassSignature * temp = reinterpret_cast< icProfileClassSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + cmsSetDeviceClass(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetColorSpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + icColorSpaceSignature arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetColorSpace",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetColorSpace" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetColorSpace" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsSetColorSpace" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + cmsSetColorSpace(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetPCS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + icColorSpaceSignature arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetPCS",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetPCS" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetPCS" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsSetPCS" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + cmsSetPCS(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetRenderingIntent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetRenderingIntent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetRenderingIntent" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetRenderingIntent" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + cmsSetRenderingIntent(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetHeaderFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetHeaderFlags",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetHeaderFlags" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetHeaderFlags" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + cmsSetHeaderFlags(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetHeaderAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetHeaderAttributes",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetHeaderAttributes" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetHeaderAttributes" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + cmsSetHeaderAttributes(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetProfileID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + LPBYTE arg2 = (LPBYTE) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetProfileID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetProfileID" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetProfileID" "', argument " "2"" of type '" "LPBYTE""'"); + } + arg2 = reinterpret_cast< LPBYTE >(argp2); + + + InErrorFlag = 0; + cmsSetProfileID(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + DWORD arg2 ; + cmsHPROFILE arg3 = (cmsHPROFILE) 0 ; + DWORD arg4 ; + int arg5 ; + DWORD arg6 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned long val4 ; + int ecode4 = 0 ; + int val5 ; + int ecode5 = 0 ; + unsigned long val6 ; + int ecode6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + cmsHTRANSFORM result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cmsCreateTransform",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateTransform" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCreateTransform" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCreateTransform" "', argument " "3"" of type '" "cmsHPROFILE""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCreateTransform" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + ecode5 = SWIG_AsVal_int(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsCreateTransform" "', argument " "5"" of type '" "int""'"); + } + arg5 = static_cast< int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_long(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cmsCreateTransform" "', argument " "6"" of type '" "DWORD""'"); + } + arg6 = static_cast< DWORD >(val6); + + + InErrorFlag = 0; + result = (cmsHTRANSFORM)cmsCreateTransform(arg1,arg2,arg3,arg4,arg5,arg6); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateProofingTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + DWORD arg2 ; + cmsHPROFILE arg3 = (cmsHPROFILE) 0 ; + DWORD arg4 ; + cmsHPROFILE arg5 = (cmsHPROFILE) 0 ; + int arg6 ; + int arg7 ; + DWORD arg8 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned long val4 ; + int ecode4 = 0 ; + int res5 ; + int val6 ; + int ecode6 = 0 ; + int val7 ; + int ecode7 = 0 ; + unsigned long val8 ; + int ecode8 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + cmsHTRANSFORM result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:cmsCreateProofingTransform",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateProofingTransform" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCreateProofingTransform" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsCreateProofingTransform" "', argument " "3"" of type '" "cmsHPROFILE""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCreateProofingTransform" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsCreateProofingTransform" "', argument " "5"" of type '" "cmsHPROFILE""'"); + } + ecode6 = SWIG_AsVal_int(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cmsCreateProofingTransform" "', argument " "6"" of type '" "int""'"); + } + arg6 = static_cast< int >(val6); + ecode7 = SWIG_AsVal_int(obj6, &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cmsCreateProofingTransform" "', argument " "7"" of type '" "int""'"); + } + arg7 = static_cast< int >(val7); + ecode8 = SWIG_AsVal_unsigned_SS_long(obj7, &val8); + if (!SWIG_IsOK(ecode8)) { + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cmsCreateProofingTransform" "', argument " "8"" of type '" "DWORD""'"); + } + arg8 = static_cast< DWORD >(val8); + + + InErrorFlag = 0; + result = (cmsHTRANSFORM)cmsCreateProofingTransform(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCreateMultiprofileTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE *arg1 ; + int arg2 ; + DWORD arg3 ; + DWORD arg4 ; + int arg5 ; + DWORD arg6 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + unsigned long val3 ; + int ecode3 = 0 ; + unsigned long val4 ; + int ecode4 = 0 ; + int val5 ; + int ecode5 = 0 ; + unsigned long val6 ; + int ecode6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + cmsHTRANSFORM result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cmsCreateMultiprofileTransform",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_void, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsCreateMultiprofileTransform" "', argument " "1"" of type '" "cmsHPROFILE []""'"); + } + arg1 = reinterpret_cast< cmsHPROFILE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCreateMultiprofileTransform" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsCreateMultiprofileTransform" "', argument " "3"" of type '" "DWORD""'"); + } + arg3 = static_cast< DWORD >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCreateMultiprofileTransform" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + ecode5 = SWIG_AsVal_int(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsCreateMultiprofileTransform" "', argument " "5"" of type '" "int""'"); + } + arg5 = static_cast< int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_long(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cmsCreateMultiprofileTransform" "', argument " "6"" of type '" "DWORD""'"); + } + arg6 = static_cast< DWORD >(val6); + + + InErrorFlag = 0; + result = (cmsHTRANSFORM)cmsCreateMultiprofileTransform(arg1,arg2,arg3,arg4,arg5,arg6); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDeleteTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsDeleteTransform",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDeleteTransform" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + + + InErrorFlag = 0; + cmsDeleteTransform(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDoTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + LPVOID arg2 = (LPVOID) 0 ; + LPVOID arg3 = (LPVOID) 0 ; + unsigned int arg4 ; + int res1 ; + int res2 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsDoTransform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDoTransform" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsDoTransform" "', argument " "2"" of type '" "LPVOID""'"); + } + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsDoTransform" "', argument " "3"" of type '" "LPVOID""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsDoTransform" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + + + InErrorFlag = 0; + cmsDoTransform(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsChangeBuffersFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + DWORD arg2 ; + DWORD arg3 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + unsigned long val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsChangeBuffersFormat",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsChangeBuffersFormat" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsChangeBuffersFormat" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsChangeBuffersFormat" "', argument " "3"" of type '" "DWORD""'"); + } + arg3 = static_cast< DWORD >(val3); + + + InErrorFlag = 0; + cmsChangeBuffersFormat(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetAlarmCodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + int arg3 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsSetAlarmCodes",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsSetAlarmCodes" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetAlarmCodes" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsSetAlarmCodes" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + cmsSetAlarmCodes(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetAlarmCodes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int *arg1 = (int *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsGetAlarmCodes",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetAlarmCodes" "', argument " "1"" of type '" "int *""'"); + } + arg1 = reinterpret_cast< int * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGetAlarmCodes" "', argument " "2"" of type '" "int *""'"); + } + arg2 = reinterpret_cast< int * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsGetAlarmCodes" "', argument " "3"" of type '" "int *""'"); + } + arg3 = reinterpret_cast< int * >(argp3); + + + InErrorFlag = 0; + cmsGetAlarmCodes(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetAdaptationState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsSetAdaptationState",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsSetAdaptationState" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (double)cmsSetAdaptationState(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetCMYKPreservationStrategy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsSetCMYKPreservationStrategy",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsSetCMYKPreservationStrategy" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = (int)cmsSetCMYKPreservationStrategy(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_Name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[(256)] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLOR_Name_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_Name_set" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, (256)); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_Name_set" "', argument " "2"" of type '" "char [(256)]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->Name,arg2,(256)*sizeof(char)); + else memset(arg1->Name,0,(256)*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_Name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLOR_Name_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_Name_get" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + result = (char *)(char *) ((arg1)->Name); + { + size_t size = (256); + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_PCS_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLOR_PCS_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_PCS_set" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_PCS_set" "', argument " "2"" of type '" "WORD [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->PCS[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""PCS""' of type '""WORD [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_PCS_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLOR_PCS_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_PCS_get" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + result = (WORD *)(WORD *) ((arg1)->PCS); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_DeviceColorant_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLOR_DeviceColorant_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_DeviceColorant_set" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLOR_DeviceColorant_set" "', argument " "2"" of type '" "WORD [16]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->DeviceColorant[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""DeviceColorant""' of type '""WORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLOR_DeviceColorant_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLOR_DeviceColorant_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLOR_DeviceColorant_get" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + result = (WORD *)(WORD *) ((arg1)->DeviceColorant); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsNAMEDCOLOR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsNAMEDCOLOR")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsNAMEDCOLOR *)new cmsNAMEDCOLOR(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsNAMEDCOLOR, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsNAMEDCOLOR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLOR *arg1 = (cmsNAMEDCOLOR *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsNAMEDCOLOR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLOR, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsNAMEDCOLOR" "', argument " "1"" of type '" "cmsNAMEDCOLOR *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLOR * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsNAMEDCOLOR_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsNAMEDCOLOR, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_nColors_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_nColors_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_nColors_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsNAMEDCOLORLIST_nColors_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->nColors = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_nColors_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_nColors_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_nColors_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (int) ((arg1)->nColors); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Allocated_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_Allocated_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Allocated_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsNAMEDCOLORLIST_Allocated_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Allocated = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Allocated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_Allocated_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Allocated_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (int) ((arg1)->Allocated); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_ColorantCount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_ColorantCount_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_ColorantCount_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsNAMEDCOLORLIST_ColorantCount_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->ColorantCount = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_ColorantCount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_ColorantCount_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_ColorantCount_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (int) ((arg1)->ColorantCount); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Prefix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[33] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_Prefix_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Prefix_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, 33); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Prefix_set" "', argument " "2"" of type '" "char [33]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->Prefix,arg2,33*sizeof(char)); + else memset(arg1->Prefix,0,33*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Prefix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_Prefix_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Prefix_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (char *)(char *) ((arg1)->Prefix); + { + size_t size = 33; + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Suffix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[33] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_Suffix_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Suffix_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, 33); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_Suffix_set" "', argument " "2"" of type '" "char [33]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->Suffix,arg2,33*sizeof(char)); + else memset(arg1->Suffix,0,33*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_Suffix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_Suffix_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_Suffix_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (char *)(char *) ((arg1)->Suffix); + { + size_t size = 33; + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_List_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + cmsNAMEDCOLOR *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNAMEDCOLORLIST_List_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_List_set" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNAMEDCOLORLIST_List_set" "', argument " "2"" of type '" "cmsNAMEDCOLOR [1]""'"); + } + arg2 = reinterpret_cast< cmsNAMEDCOLOR * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)1; ++ii) arg1->List[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""List""' of type '""cmsNAMEDCOLOR [1]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNAMEDCOLORLIST_List_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsNAMEDCOLOR *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNAMEDCOLORLIST_List_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNAMEDCOLORLIST_List_get" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + result = (cmsNAMEDCOLOR *)(cmsNAMEDCOLOR *) ((arg1)->List); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsNAMEDCOLOR, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_cmsNAMEDCOLORLIST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_cmsNAMEDCOLORLIST")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsNAMEDCOLORLIST *)new cmsNAMEDCOLORLIST(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsNAMEDCOLORLIST, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_cmsNAMEDCOLORLIST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsNAMEDCOLORLIST *arg1 = (cmsNAMEDCOLORLIST *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_cmsNAMEDCOLORLIST",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsNAMEDCOLORLIST, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_cmsNAMEDCOLORLIST" "', argument " "1"" of type '" "cmsNAMEDCOLORLIST *""'"); + } + arg1 = reinterpret_cast< cmsNAMEDCOLORLIST * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *cmsNAMEDCOLORLIST_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_cmsNAMEDCOLORLIST, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsNamedColorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsNamedColorCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNamedColorCount" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + + + InErrorFlag = 0; + result = (int)cmsNamedColorCount(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNamedColorInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsNamedColorInfo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNamedColorInfo" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsNamedColorInfo" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsNamedColorInfo" "', argument " "3"" of type '" "char *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsNamedColorInfo" "', argument " "4"" of type '" "char *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsNamedColorInfo" "', argument " "5"" of type '" "char *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsNamedColorInfo(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsNamedColorIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsNamedColorIndex",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsNamedColorIndex" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsNamedColorIndex" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)cmsNamedColorIndex(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadColorantTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPcmsNAMEDCOLORLIST result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadColorantTable",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadColorantTable" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadColorantTable" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadColorantTable" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = cmsReadColorantTable(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPcmsNAMEDCOLORLIST(static_cast< const LPcmsNAMEDCOLORLIST& >(result))), SWIGTYPE_p_LPcmsNAMEDCOLORLIST, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAddTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + void *arg3 = (void *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsAddTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAddTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAddTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsAddTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAddTag" "', argument " "3"" of type '" "void const *""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAddTag(arg1,arg2,(void const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTransform2DeviceLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsTransform2DeviceLink",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTransform2DeviceLink" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsTransform2DeviceLink" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (cmsHPROFILE)cmsTransform2DeviceLink(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsSetLUTdepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsSetLUTdepth",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSetLUTdepth" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsSetLUTdepth" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + _cmsSetLUTdepth(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSaveProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSaveProfile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSaveProfile" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSaveProfile" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsSaveProfile(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsSaveProfileToMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + void *arg2 = (void *) 0 ; + size_t *arg3 = (size_t *) 0 ; + int res1 ; + int res2 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsSaveProfileToMem",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSaveProfileToMem" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSaveProfileToMem" "', argument " "2"" of type '" "void *""'"); + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_size_t, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsSaveProfileToMem" "', argument " "3"" of type '" "size_t *""'"); + } + arg3 = reinterpret_cast< size_t * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsSaveProfileToMem(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetPostScriptCSA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + LPVOID arg3 = (LPVOID) 0 ; + DWORD arg4 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsGetPostScriptCSA",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetPostScriptCSA" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsGetPostScriptCSA" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsGetPostScriptCSA" "', argument " "3"" of type '" "LPVOID""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsGetPostScriptCSA" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = (DWORD)cmsGetPostScriptCSA(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetPostScriptCRD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + LPVOID arg3 = (LPVOID) 0 ; + DWORD arg4 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsGetPostScriptCRD",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetPostScriptCRD" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsGetPostScriptCRD" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsGetPostScriptCRD" "', argument " "3"" of type '" "LPVOID""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsGetPostScriptCRD" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = (DWORD)cmsGetPostScriptCRD(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetPostScriptCRDEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + DWORD arg3 ; + LPVOID arg4 = (LPVOID) 0 ; + DWORD arg5 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + unsigned long val3 ; + int ecode3 = 0 ; + int res4 ; + unsigned long val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsGetPostScriptCRDEx",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetPostScriptCRDEx" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsGetPostScriptCRDEx" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsGetPostScriptCRDEx" "', argument " "3"" of type '" "DWORD""'"); + } + arg3 = static_cast< DWORD >(val3); + res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsGetPostScriptCRDEx" "', argument " "4"" of type '" "LPVOID""'"); + } + ecode5 = SWIG_AsVal_unsigned_SS_long(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cmsGetPostScriptCRDEx" "', argument " "5"" of type '" "DWORD""'"); + } + arg5 = static_cast< DWORD >(val5); + + + InErrorFlag = 0; + result = (DWORD)cmsGetPostScriptCRDEx(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsErrorAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsErrorAction",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsErrorAction" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = (int)cmsErrorAction(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetErrorHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsErrorHandlerFunction arg1 = (cmsErrorHandlerFunction) 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsSetErrorHandler",&obj0)) SWIG_fail; + { + int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_int_p_q_const__char__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cmsSetErrorHandler" "', argument " "1"" of type '" "cmsErrorHandlerFunction""'"); + } + } + + + InErrorFlag = 0; + cmsSetErrorHandler(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)":cmsAllocLUT")) SWIG_fail; + + + InErrorFlag = 0; + result = (LPLUT)cmsAllocLUT(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocLinearTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + LPGAMMATABLE *arg2 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsAllocLinearTable",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAllocLinearTable" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAllocLinearTable" "', argument " "2"" of type '" "LPGAMMATABLE []""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE * >(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsAllocLinearTable" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (LPLUT)cmsAllocLinearTable(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAlloc3DGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsAlloc3DGrid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAlloc3DGrid" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsAlloc3DGrid" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsAlloc3DGrid" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsAlloc3DGrid" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + + + InErrorFlag = 0; + result = (LPLUT)cmsAlloc3DGrid(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetMatrixLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSetMatrixLUT",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetMatrixLUT" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetMatrixLUT" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + + + InErrorFlag = 0; + result = (LPLUT)cmsSetMatrixLUT(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetMatrixLUT4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + DWORD arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsSetMatrixLUT4",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetMatrixLUT4" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSetMatrixLUT4" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSetMatrixLUT4" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsSetMatrixLUT4" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = (LPLUT)cmsSetMatrixLUT4(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeLUT",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeLUT" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + + + InErrorFlag = 0; + cmsFreeLUT(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEvalLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + WORD *arg2 ; + WORD *arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsEvalLUT",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEvalLUT" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsEvalLUT" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsEvalLUT" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + + + InErrorFlag = 0; + cmsEvalLUT(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEvalLUTreverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + WORD *arg2 ; + WORD *arg3 ; + LPWORD arg4 = (LPWORD) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsEvalLUTreverse",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEvalLUTreverse" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsEvalLUTreverse" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsEvalLUTreverse" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsEvalLUTreverse" "', argument " "4"" of type '" "LPWORD""'"); + } + arg4 = reinterpret_cast< LPWORD >(argp4); + + + InErrorFlag = 0; + result = (double)cmsEvalLUTreverse(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCLut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadICCLut",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCLut" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCLut" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCLut" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LPLUT)cmsReadICCLut(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDupLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsDupLUT",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDupLUT" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + + + InErrorFlag = 0; + result = (LPLUT)cmsDupLUT(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSample3DGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + _cmsSAMPLER arg2 = (_cmsSAMPLER) 0 ; + LPVOID arg3 = (LPVOID) 0 ; + DWORD arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res3 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsSample3DGrid",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSample3DGrid" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_p_void__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cmsSample3DGrid" "', argument " "2"" of type '" "_cmsSAMPLER""'"); + } + } + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSample3DGrid" "', argument " "3"" of type '" "LPVOID""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsSample3DGrid" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = (int)cmsSample3DGrid(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSetUserFormatters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + DWORD arg2 ; + cmsFORMATTER arg3 = (cmsFORMATTER) 0 ; + DWORD arg4 ; + cmsFORMATTER arg5 = (cmsFORMATTER) 0 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsSetUserFormatters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSetUserFormatters" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSetUserFormatters" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + { + int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cmsSetUserFormatters" "', argument " "3"" of type '" "cmsFORMATTER""'"); + } + } + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsSetUserFormatters" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + { + int res = SWIG_ConvertFunctionPtr(obj4, (void**)(&arg5), SWIGTYPE_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cmsSetUserFormatters" "', argument " "5"" of type '" "cmsFORMATTER""'"); + } + } + + + InErrorFlag = 0; + cmsSetUserFormatters(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsGetUserFormatters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + LPDWORD arg2 = (LPDWORD) 0 ; + cmsFORMATTER *arg3 = (cmsFORMATTER *) 0 ; + LPDWORD arg4 = (LPDWORD) 0 ; + cmsFORMATTER *arg5 = (cmsFORMATTER *) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsGetUserFormatters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsGetUserFormatters" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsGetUserFormatters" "', argument " "2"" of type '" "LPDWORD""'"); + } + arg2 = reinterpret_cast< LPDWORD >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsGetUserFormatters" "', argument " "3"" of type '" "cmsFORMATTER *""'"); + } + arg3 = reinterpret_cast< cmsFORMATTER * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_long, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsGetUserFormatters" "', argument " "4"" of type '" "LPDWORD""'"); + } + arg4 = reinterpret_cast< LPDWORD >(argp4); + res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsGetUserFormatters" "', argument " "5"" of type '" "cmsFORMATTER *""'"); + } + arg5 = reinterpret_cast< cmsFORMATTER * >(argp5); + + + InErrorFlag = 0; + cmsGetUserFormatters(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8Alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)":cmsIT8Alloc")) SWIG_fail; + + + InErrorFlag = 0; + result = (LCMSHANDLE)cmsIT8Alloc(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8Free(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsIT8Free",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8Free" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + + + InErrorFlag = 0; + cmsIT8Free(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8TableCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsIT8TableCount",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8TableCount" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + + + InErrorFlag = 0; + result = (int)cmsIT8TableCount(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8SetTable",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetTable" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8SetTable" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (int)cmsIT8SetTable(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8LoadFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsIT8LoadFromFile",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8LoadFromFile" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + + + InErrorFlag = 0; + result = (LCMSHANDLE)cmsIT8LoadFromFile((char const *)arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8LoadFromMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + void *arg1 = (void *) 0 ; + size_t arg2 ; + int res1 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSHANDLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8LoadFromMem",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8LoadFromMem" "', argument " "1"" of type '" "void *""'"); + } + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8LoadFromMem" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + + + InErrorFlag = 0; + result = (LCMSHANDLE)cmsIT8LoadFromMem(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SaveToFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8SaveToFile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SaveToFile" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SaveToFile" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SaveToFile(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SaveToMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + void *arg2 = (void *) 0 ; + size_t *arg3 = (size_t *) 0 ; + int res1 ; + int res2 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SaveToMem",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SaveToMem" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SaveToMem" "', argument " "2"" of type '" "void *""'"); + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_size_t, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SaveToMem" "', argument " "3"" of type '" "size_t *""'"); + } + arg3 = reinterpret_cast< size_t * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SaveToMem(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetSheetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsIT8GetSheetType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetSheetType" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + + + InErrorFlag = 0; + result = (char *)cmsIT8GetSheetType(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetSheetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8SetSheetType",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetSheetType" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetSheetType" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetSheetType(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8SetComment",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetComment" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetComment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetComment(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetPropertyStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SetPropertyStr",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetPropertyStr" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyStr" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyStr" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetPropertyStr(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetPropertyDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + double arg3 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SetPropertyDbl",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetPropertyDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyDbl" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetPropertyDbl(arg1,(char const *)arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetPropertyHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SetPropertyHex",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetPropertyHex" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyHex" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetPropertyHex" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetPropertyHex(arg1,(char const *)arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetPropertyMulti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetPropertyMulti",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetPropertyMulti" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyMulti" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyMulti" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetPropertyMulti" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetPropertyMulti(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetPropertyUncooked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SetPropertyUncooked",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetPropertyUncooked" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetPropertyUncooked(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8GetProperty",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetProperty" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetProperty" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (char *)cmsIT8GetProperty(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetPropertyDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8GetPropertyDbl",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetPropertyDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetPropertyDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (double)cmsIT8GetPropertyDbl(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetPropertyMulti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetPropertyMulti",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetPropertyMulti" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetPropertyMulti" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetPropertyMulti" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (char *)cmsIT8GetPropertyMulti(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8EnumProperties(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char ***arg2 = (char ***) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8EnumProperties",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8EnumProperties" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_p_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8EnumProperties" "', argument " "2"" of type '" "char const ***""'"); + } + arg2 = reinterpret_cast< char *** >(argp2); + + + InErrorFlag = 0; + result = (int)cmsIT8EnumProperties(arg1,(char const ***)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8EnumPropertyMulti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char ***arg3 = (char ***) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8EnumPropertyMulti",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8EnumPropertyMulti" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8EnumPropertyMulti" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_p_char, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8EnumPropertyMulti" "', argument " "3"" of type '" "char const ***""'"); + } + arg3 = reinterpret_cast< char *** >(argp3); + + + InErrorFlag = 0; + result = (int)cmsIT8EnumPropertyMulti(arg1,(char const *)arg2,(char const ***)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetDataRowCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + int arg3 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetDataRowCol",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetDataRowCol" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8GetDataRowCol" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8GetDataRowCol" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (char *)cmsIT8GetDataRowCol(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetDataRowColDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + int arg3 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetDataRowColDbl",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetDataRowColDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8GetDataRowColDbl" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8GetDataRowColDbl" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (double)cmsIT8GetDataRowColDbl(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetDataRowCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + int arg3 ; + char *arg4 = (char *) 0 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetDataRowCol",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetDataRowCol" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8SetDataRowCol" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetDataRowCol" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetDataRowCol" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetDataRowCol(arg1,arg2,arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetDataRowColDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + int arg3 ; + double arg4 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetDataRowColDbl",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetDataRowColDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8SetDataRowColDbl" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsIT8SetDataRowColDbl" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsIT8SetDataRowColDbl" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetDataRowColDbl(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetData" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetData" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetData" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (char *)cmsIT8GetData(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetDataDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetDataDbl",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetDataDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetDataDbl" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (double)cmsIT8GetDataDbl(arg1,(char const *)arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetData" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetData" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetData" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetData" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetData(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetDataDbl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + double arg4 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetDataDbl",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetDataDbl" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetDataDbl" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataDbl" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsIT8SetDataDbl" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetDataDbl(arg1,(char const *)arg2,(char const *)arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8GetDataFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetDataFormat" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetDataFormat" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)cmsIT8GetDataFormat(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8SetDataFormat",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetDataFormat" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8SetDataFormat" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetDataFormat" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetDataFormat(arg1,arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8EnumDataFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char ***arg2 = (char ***) 0 ; + int res1 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8EnumDataFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8EnumDataFormat" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_p_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8EnumDataFormat" "', argument " "2"" of type '" "char ***""'"); + } + arg2 = reinterpret_cast< char *** >(argp2); + + + InErrorFlag = 0; + result = (int)cmsIT8EnumDataFormat(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetPatchName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + int arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsIT8GetPatchName",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetPatchName" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIT8GetPatchName" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8GetPatchName" "', argument " "3"" of type '" "char *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (char *)cmsIT8GetPatchName(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8GetPatchByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8GetPatchByName",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8GetPatchByName" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8GetPatchByName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (int)cmsIT8GetPatchByName(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetTableByLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsIT8SetTableByLabel",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetTableByLabel" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetTableByLabel" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsIT8SetTableByLabel" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsIT8SetTableByLabel" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + + + InErrorFlag = 0; + result = (int)cmsIT8SetTableByLabel(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8SetIndexColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8SetIndexColumn",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8SetIndexColumn" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8SetIndexColumn" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsIT8SetIndexColumn(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIT8DefineDblFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSHANDLE arg1 = (LCMSHANDLE) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIT8DefineDblFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIT8DefineDblFormat" "', argument " "1"" of type '" "LCMSHANDLE""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsIT8DefineDblFormat" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + cmsIT8DefineDblFormat(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLabEncoded2Float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsLabEncoded2Float",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLabEncoded2Float" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLabEncoded2Float" "', argument " "2"" of type '" "WORD const [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + + + InErrorFlag = 0; + cmsLabEncoded2Float(arg1,(unsigned short const (*))arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLabEncoded2Float4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIELab arg1 = (LPcmsCIELab) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsLabEncoded2Float4",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLabEncoded2Float4" "', argument " "1"" of type '" "LPcmsCIELab""'"); + } + arg1 = reinterpret_cast< LPcmsCIELab >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLabEncoded2Float4" "', argument " "2"" of type '" "WORD const [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + + + InErrorFlag = 0; + cmsLabEncoded2Float4(arg1,(unsigned short const (*))arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFloat2LabEncoded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + cmsCIELab *arg2 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsFloat2LabEncoded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFloat2LabEncoded" "', argument " "1"" of type '" "WORD [3]""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsFloat2LabEncoded" "', argument " "2"" of type '" "cmsCIELab const *""'"); + } + arg2 = reinterpret_cast< cmsCIELab * >(argp2); + + + InErrorFlag = 0; + cmsFloat2LabEncoded(arg1,(cmsCIELab const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFloat2LabEncoded4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + cmsCIELab *arg2 = (cmsCIELab *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsFloat2LabEncoded4",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFloat2LabEncoded4" "', argument " "1"" of type '" "WORD [3]""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIELab, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsFloat2LabEncoded4" "', argument " "2"" of type '" "cmsCIELab const *""'"); + } + arg2 = reinterpret_cast< cmsCIELab * >(argp2); + + + InErrorFlag = 0; + cmsFloat2LabEncoded4(arg1,(cmsCIELab const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsXYZEncoded2Float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsXYZEncoded2Float",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsXYZEncoded2Float" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsXYZEncoded2Float" "', argument " "2"" of type '" "WORD const [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + + + InErrorFlag = 0; + cmsXYZEncoded2Float(arg1,(unsigned short const (*))arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFloat2XYZEncoded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsFloat2XYZEncoded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFloat2XYZEncoded" "', argument " "1"" of type '" "WORD [3]""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsFloat2XYZEncoded" "', argument " "2"" of type '" "cmsCIEXYZ const *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + + + InErrorFlag = 0; + cmsFloat2XYZEncoded(arg1,(cmsCIEXYZ const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddTextTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddTextTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddTextTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddTextTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddTextTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddTextTag" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddTextTag(arg1,arg2,(char const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddXYZTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + cmsCIEXYZ *arg3 = (cmsCIEXYZ *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddXYZTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddXYZTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddXYZTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddXYZTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddXYZTag" "', argument " "3"" of type '" "cmsCIEXYZ const *""'"); + } + arg3 = reinterpret_cast< cmsCIEXYZ * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddXYZTag(arg1,arg2,(cmsCIEXYZ const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddLUTTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + void *arg3 = (void *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + int res3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddLUTTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddLUTTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddLUTTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddLUTTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddLUTTag" "', argument " "3"" of type '" "void const *""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddLUTTag(arg1,arg2,(void const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddGammaTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LPGAMMATABLE arg3 = (LPGAMMATABLE) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddGammaTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddGammaTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddGammaTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddGammaTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddGammaTag" "', argument " "3"" of type '" "LPGAMMATABLE""'"); + } + arg3 = reinterpret_cast< LPGAMMATABLE >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddGammaTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddChromaticityTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LPcmsCIExyYTRIPLE arg3 = (LPcmsCIExyYTRIPLE) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddChromaticityTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddChromaticityTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddChromaticityTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddChromaticityTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIExyYTRIPLE, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddChromaticityTag" "', argument " "3"" of type '" "LPcmsCIExyYTRIPLE""'"); + } + arg3 = reinterpret_cast< LPcmsCIExyYTRIPLE >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddChromaticityTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddSequenceDescriptionTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LPcmsSEQ arg3 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddSequenceDescriptionTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddSequenceDescriptionTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddSequenceDescriptionTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddSequenceDescriptionTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_LPcmsSEQ, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddSequenceDescriptionTag" "', argument " "3"" of type '" "LPcmsSEQ""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddSequenceDescriptionTag" "', argument " "3"" of type '" "LPcmsSEQ""'"); + } else { + LPcmsSEQ * temp = reinterpret_cast< LPcmsSEQ * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddSequenceDescriptionTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddNamedColorTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LPcmsNAMEDCOLORLIST arg3 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddNamedColorTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddNamedColorTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddNamedColorTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddNamedColorTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_LPcmsNAMEDCOLORLIST, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddNamedColorTag" "', argument " "3"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddNamedColorTag" "', argument " "3"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } else { + LPcmsNAMEDCOLORLIST * temp = reinterpret_cast< LPcmsNAMEDCOLORLIST * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddNamedColorTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddDateTimeTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + tm *arg3 = (tm *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddDateTimeTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddDateTimeTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddDateTimeTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddDateTimeTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_tm, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddDateTimeTag" "', argument " "3"" of type '" "tm *""'"); + } + arg3 = reinterpret_cast< tm * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddDateTimeTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddColorantTableTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LPcmsNAMEDCOLORLIST arg3 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddColorantTableTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddColorantTableTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddColorantTableTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddColorantTableTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_LPcmsNAMEDCOLORLIST, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddColorantTableTag" "', argument " "3"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddColorantTableTag" "', argument " "3"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } else { + LPcmsNAMEDCOLORLIST * temp = reinterpret_cast< LPcmsNAMEDCOLORLIST * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddColorantTableTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsAddChromaticAdaptationTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + cmsCIEXYZ *arg3 = (cmsCIEXYZ *) 0 ; + int res1 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsAddChromaticAdaptationTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsAddChromaticAdaptationTag" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsAddChromaticAdaptationTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsAddChromaticAdaptationTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsAddChromaticAdaptationTag" "', argument " "3"" of type '" "cmsCIEXYZ const *""'"); + } + arg3 = reinterpret_cast< cmsCIEXYZ * >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsAddChromaticAdaptationTag(arg1,arg2,(cmsCIEXYZ const *)arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsQuickFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + double val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsQuickFloor",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsQuickFloor" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + + + InErrorFlag = 0; + result = (int)_cmsQuickFloor(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsClampWord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsClampWord",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsClampWord" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = (WORD)_cmsClampWord(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsMalloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + size_t arg1 ; + size_t val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsMalloc",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsMalloc" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_t >(val1); + + + InErrorFlag = 0; + result = (void *)_cmsMalloc(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsCalloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + size_t arg1 ; + size_t arg2 ; + size_t val1 ; + int ecode1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsCalloc",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsCalloc" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_t >(val1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsCalloc" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + + + InErrorFlag = 0; + result = (void *)_cmsCalloc(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsFree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + void *arg1 = (void *) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsFree",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsFree" "', argument " "1"" of type '" "void *""'"); + } + + + InErrorFlag = 0; + _cmsFree(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSignalError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsSignalError",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsSignalError" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsSignalError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsSignalError" "', argument " "3"" of type '" "char *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + + + InErrorFlag = 0; + cmsSignalError(arg1,(char const *)arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign16_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *arg1 = (_cmsTestAlign16 *) 0 ; + icS15Fixed16Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTestAlign16_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign16, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign16_a_set" "', argument " "1"" of type '" "_cmsTestAlign16 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign16 * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icS15Fixed16Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTestAlign16_a_set" "', argument " "2"" of type '" "icS15Fixed16Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTestAlign16_a_set" "', argument " "2"" of type '" "icS15Fixed16Number""'"); + } else { + icS15Fixed16Number * temp = reinterpret_cast< icS15Fixed16Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->a = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign16_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *arg1 = (_cmsTestAlign16 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icS15Fixed16Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTestAlign16_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign16, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign16_a_get" "', argument " "1"" of type '" "_cmsTestAlign16 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign16 * >(argp1); + result = ((arg1)->a); + resultobj = SWIG_NewPointerObj((new icS15Fixed16Number(static_cast< const icS15Fixed16Number& >(result))), SWIGTYPE_p_icS15Fixed16Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign16_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *arg1 = (_cmsTestAlign16 *) 0 ; + icUInt16Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTestAlign16_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign16, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign16_b_set" "', argument " "1"" of type '" "_cmsTestAlign16 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign16 * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt16Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTestAlign16_b_set" "', argument " "2"" of type '" "icUInt16Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTestAlign16_b_set" "', argument " "2"" of type '" "icUInt16Number""'"); + } else { + icUInt16Number * temp = reinterpret_cast< icUInt16Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->b = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign16_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *arg1 = (_cmsTestAlign16 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt16Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTestAlign16_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign16, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign16_b_get" "', argument " "1"" of type '" "_cmsTestAlign16 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign16 * >(argp1); + result = ((arg1)->b); + resultobj = SWIG_NewPointerObj((new icUInt16Number(static_cast< const icUInt16Number& >(result))), SWIGTYPE_p_icUInt16Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new__cmsTestAlign16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new__cmsTestAlign16")) SWIG_fail; + + + InErrorFlag = 0; + result = (_cmsTestAlign16 *)new _cmsTestAlign16(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__cmsTestAlign16, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete__cmsTestAlign16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign16 *arg1 = (_cmsTestAlign16 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete__cmsTestAlign16",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign16, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__cmsTestAlign16" "', argument " "1"" of type '" "_cmsTestAlign16 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign16 * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_cmsTestAlign16_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__cmsTestAlign16, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap__cmsTestAlign8_a_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *arg1 = (_cmsTestAlign8 *) 0 ; + icS15Fixed16Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTestAlign8_a_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign8_a_set" "', argument " "1"" of type '" "_cmsTestAlign8 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign8 * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icS15Fixed16Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTestAlign8_a_set" "', argument " "2"" of type '" "icS15Fixed16Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTestAlign8_a_set" "', argument " "2"" of type '" "icS15Fixed16Number""'"); + } else { + icS15Fixed16Number * temp = reinterpret_cast< icS15Fixed16Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->a = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign8_a_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *arg1 = (_cmsTestAlign8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icS15Fixed16Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTestAlign8_a_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign8_a_get" "', argument " "1"" of type '" "_cmsTestAlign8 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign8 * >(argp1); + result = ((arg1)->a); + resultobj = SWIG_NewPointerObj((new icS15Fixed16Number(static_cast< const icS15Fixed16Number& >(result))), SWIGTYPE_p_icS15Fixed16Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign8_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *arg1 = (_cmsTestAlign8 *) 0 ; + icUInt8Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTestAlign8_b_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign8_b_set" "', argument " "1"" of type '" "_cmsTestAlign8 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign8 * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt8Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTestAlign8_b_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTestAlign8_b_set" "', argument " "2"" of type '" "icUInt8Number""'"); + } else { + icUInt8Number * temp = reinterpret_cast< icUInt8Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->b = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTestAlign8_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *arg1 = (_cmsTestAlign8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt8Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTestAlign8_b_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign8, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTestAlign8_b_get" "', argument " "1"" of type '" "_cmsTestAlign8 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign8 * >(argp1); + result = ((arg1)->b); + resultobj = SWIG_NewPointerObj((new icUInt8Number(static_cast< const icUInt8Number& >(result))), SWIGTYPE_p_icUInt8Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new__cmsTestAlign8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new__cmsTestAlign8")) SWIG_fail; + + + InErrorFlag = 0; + result = (_cmsTestAlign8 *)new _cmsTestAlign8(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__cmsTestAlign8, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete__cmsTestAlign8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTestAlign8 *arg1 = (_cmsTestAlign8 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete__cmsTestAlign8",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmsTestAlign8, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__cmsTestAlign8" "', argument " "1"" of type '" "_cmsTestAlign8 *""'"); + } + arg1 = reinterpret_cast< _cmsTestAlign8 * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_cmsTestAlign8_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__cmsTestAlign8, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_FixedMul(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + Fixed32 arg2 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Fixed32 result; + + if (!PyArg_ParseTuple(args,(char *)"OO:FixedMul",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedMul" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedMul" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedMul" "', argument " "2"" of type '" "Fixed32""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedMul" "', argument " "2"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = FixedMul(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new Fixed32(static_cast< const Fixed32& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_FixedSquare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Fixed32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:FixedSquare",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedSquare" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedSquare" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = FixedSquare(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new Fixed32(static_cast< const Fixed32& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ToFixedDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + Fixed32 result; + + if (!PyArg_ParseTuple(args,(char *)"O:ToFixedDomain",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToFixedDomain" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = ToFixedDomain(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new Fixed32(static_cast< const Fixed32& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_FromFixedDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:FromFixedDomain",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FromFixedDomain" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FromFixedDomain" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (int)FromFixedDomain(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_FixedLERP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + Fixed32 arg2 ; + Fixed32 arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + Fixed32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:FixedLERP",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FixedLERP" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedLERP" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedLERP" "', argument " "2"" of type '" "Fixed32""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedLERP" "', argument " "2"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FixedLERP" "', argument " "3"" of type '" "Fixed32""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedLERP" "', argument " "3"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + result = FixedLERP(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new Fixed32(static_cast< const Fixed32& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_FixedScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD arg1 ; + Fixed32 arg2 ; + unsigned short val1 ; + int ecode1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OO:FixedScale",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FixedScale" "', argument " "1"" of type '" "WORD""'"); + } + arg1 = static_cast< WORD >(val1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FixedScale" "', argument " "2"" of type '" "Fixed32""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FixedScale" "', argument " "2"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + result = (WORD)FixedScale(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_WVEC3_n_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WVEC3 *arg1 = (WVEC3 *) 0 ; + Fixed32 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:WVEC3_n_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WVEC3_n_set" "', argument " "1"" of type '" "WVEC3 *""'"); + } + arg1 = reinterpret_cast< WVEC3 * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_icInt32Number, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WVEC3_n_set" "', argument " "2"" of type '" "Fixed32 [3]""'"); + } + arg2 = reinterpret_cast< Fixed32 * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->n[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""n""' of type '""Fixed32 [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_WVEC3_n_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WVEC3 *arg1 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Fixed32 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:WVEC3_n_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WVEC3_n_get" "', argument " "1"" of type '" "WVEC3 *""'"); + } + arg1 = reinterpret_cast< WVEC3 * >(argp1); + result = (Fixed32 *)(Fixed32 *) ((arg1)->n); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icInt32Number, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_WVEC3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_WVEC3")) SWIG_fail; + + + InErrorFlag = 0; + result = (WVEC3 *)new WVEC3(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_WVEC3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WVEC3 *arg1 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_WVEC3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WVEC3, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WVEC3" "', argument " "1"" of type '" "WVEC3 *""'"); + } + arg1 = reinterpret_cast< WVEC3 * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *WVEC3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_WVEC3, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_WMAT3_v_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WMAT3 *arg1 = (WMAT3 *) 0 ; + WVEC3 *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:WMAT3_v_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WMAT3_v_set" "', argument " "1"" of type '" "WMAT3 *""'"); + } + arg1 = reinterpret_cast< WMAT3 * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "WMAT3_v_set" "', argument " "2"" of type '" "WVEC3 [3]""'"); + } + arg2 = reinterpret_cast< WVEC3 * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->v[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""v""' of type '""WVEC3 [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_WMAT3_v_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WMAT3 *arg1 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:WMAT3_v_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WMAT3_v_get" "', argument " "1"" of type '" "WMAT3 *""'"); + } + arg1 = reinterpret_cast< WMAT3 * >(argp1); + result = (WVEC3 *)(WVEC3 *) ((arg1)->v); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_WMAT3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_WMAT3")) SWIG_fail; + + + InErrorFlag = 0; + result = (WMAT3 *)new WMAT3(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_WMAT3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WMAT3 *arg1 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_WMAT3",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_WMAT3, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_WMAT3" "', argument " "1"" of type '" "WMAT3 *""'"); + } + arg1 = reinterpret_cast< WMAT3 * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *WMAT3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_WMAT3, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_VEC3init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + double arg2 ; + double arg3 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:VEC3init",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3init" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VEC3init" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3init" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VEC3init" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + VEC3init(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3initF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWVEC3 arg1 ; + double arg2 ; + double arg3 ; + double arg4 ; + void *argp1 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:VEC3initF",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3initF" "', argument " "1"" of type '" "LPWVEC3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3initF" "', argument " "1"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VEC3initF" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3initF" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VEC3initF" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + + + InErrorFlag = 0; + VEC3initF(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3toFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWVEC3 arg1 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3toFix",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3toFix" "', argument " "1"" of type '" "LPWVEC3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3toFix" "', argument " "1"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3toFix" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + + + InErrorFlag = 0; + VEC3toFix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3fromFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPWVEC3 arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3fromFix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3fromFix" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3fromFix" "', argument " "2"" of type '" "LPWVEC3""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3fromFix" "', argument " "2"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + VEC3fromFix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3scaleFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWORD arg1 = (LPWORD) 0 ; + LPWVEC3 arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3scaleFix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3scaleFix" "', argument " "1"" of type '" "LPWORD""'"); + } + arg1 = reinterpret_cast< LPWORD >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3scaleFix" "', argument " "2"" of type '" "LPWVEC3""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3scaleFix" "', argument " "2"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + VEC3scaleFix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3swap",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3swap" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3swap" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + + + InErrorFlag = 0; + VEC3swap(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3divK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3divK",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3divK" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3divK" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3divK" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + VEC3divK(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3perK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3perK",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3perK" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3perK" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3perK" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + VEC3perK(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3minus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3minus",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3minus" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3minus" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VEC3minus" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + + + InErrorFlag = 0; + VEC3minus(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3perComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3perComp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3perComp" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3perComp" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VEC3perComp" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + + + InErrorFlag = 0; + VEC3perComp(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWVEC3 arg1 ; + LPWVEC3 arg2 ; + double arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3equal",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3equal" "', argument " "1"" of type '" "LPWVEC3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3equal" "', argument " "1"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3equal" "', argument " "2"" of type '" "LPWVEC3""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3equal" "', argument " "2"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3equal" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (LCMSBOOL)VEC3equal(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3equalF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3equalF",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3equalF" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3equalF" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3equalF" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + result = (LCMSBOOL)VEC3equalF(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3scaleAndCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWVEC3 arg1 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + double arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3scaleAndCut",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3scaleAndCut" "', argument " "1"" of type '" "LPWVEC3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VEC3scaleAndCut" "', argument " "1"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3scaleAndCut" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VEC3scaleAndCut" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + VEC3scaleAndCut(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3cross(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:VEC3cross",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3cross" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3cross" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VEC3cross" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + + + InErrorFlag = 0; + VEC3cross(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3saturate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:VEC3saturate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3saturate" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + + + InErrorFlag = 0; + VEC3saturate(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPVEC3 arg2 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:VEC3distance",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3distance" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VEC3distance" "', argument " "2"" of type '" "LPVEC3""'"); + } + arg2 = reinterpret_cast< LPVEC3 >(argp2); + + + InErrorFlag = 0; + result = (double)VEC3distance(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_VEC3length(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:VEC3length",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VEC3length" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + + + InErrorFlag = 0; + result = (double)VEC3length(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3identity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MAT3identity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3identity" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + + + InErrorFlag = 0; + MAT3identity(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3per(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + LPMAT3 arg3 = (LPMAT3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3per",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3per" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3per" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MAT3per" "', argument " "3"" of type '" "LPMAT3""'"); + } + arg3 = reinterpret_cast< LPMAT3 >(argp3); + + + InErrorFlag = 0; + MAT3per(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3perK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3perK",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3perK" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3perK" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MAT3perK" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + MAT3perK(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3inverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MAT3inverse",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3inverse" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3inverse" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + + + InErrorFlag = 0; + result = (int)MAT3inverse(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3solve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3solve",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3solve" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3solve" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MAT3solve" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + + + InErrorFlag = 0; + result = (LCMSBOOL)MAT3solve(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3det(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:MAT3det",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3det" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + + + InErrorFlag = 0; + result = (double)MAT3det(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVEC3 arg1 = (LPVEC3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + LPVEC3 arg3 = (LPVEC3) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3eval",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3eval" "', argument " "1"" of type '" "LPVEC3""'"); + } + arg1 = reinterpret_cast< LPVEC3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3eval" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_VEC3, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MAT3eval" "', argument " "3"" of type '" "LPVEC3""'"); + } + arg3 = reinterpret_cast< LPVEC3 >(argp3); + + + InErrorFlag = 0; + MAT3eval(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3toFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWMAT3 arg1 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MAT3toFix",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3toFix" "', argument " "1"" of type '" "LPWMAT3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3toFix" "', argument " "1"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3toFix" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + + + InErrorFlag = 0; + MAT3toFix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3fromFix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPWMAT3 arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MAT3fromFix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3fromFix" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3fromFix" "', argument " "2"" of type '" "LPWMAT3""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3fromFix" "', argument " "2"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + + + InErrorFlag = 0; + MAT3fromFix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3evalW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWVEC3 arg1 ; + LPWMAT3 arg2 ; + LPWVEC3 arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3evalW",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3evalW" "', argument " "1"" of type '" "LPWVEC3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3evalW" "', argument " "1"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3evalW" "', argument " "2"" of type '" "LPWMAT3""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3evalW" "', argument " "2"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MAT3evalW" "', argument " "3"" of type '" "LPWVEC3""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3evalW" "', argument " "3"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + MAT3evalW(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3isIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWMAT3 arg1 ; + double arg2 ; + void *argp1 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MAT3isIdentity",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3isIdentity" "', argument " "1"" of type '" "LPWMAT3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3isIdentity" "', argument " "1"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MAT3isIdentity" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (LCMSBOOL)MAT3isIdentity(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MAT3scaleAndCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWMAT3 arg1 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + double arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MAT3scaleAndCut",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MAT3scaleAndCut" "', argument " "1"" of type '" "LPWMAT3""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MAT3scaleAndCut" "', argument " "1"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MAT3scaleAndCut" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MAT3scaleAndCut" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + MAT3scaleAndCut(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsIsLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsIsLinear",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsIsLinear" "', argument " "1"" of type '" "WORD []""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsIsLinear" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (int)cmsIsLinear(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_X0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + unsigned int *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_X0_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_X0_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_X0_set" "', argument " "2"" of type '" "unsigned int [256]""'"); + } + arg2 = reinterpret_cast< unsigned int * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->X0[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""X0""' of type '""unsigned int [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_X0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_X0_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_X0_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (unsigned int *)(unsigned int *) ((arg1)->X0); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_Y0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + unsigned int *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_Y0_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_Y0_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_Y0_set" "', argument " "2"" of type '" "unsigned int [256]""'"); + } + arg2 = reinterpret_cast< unsigned int * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->Y0[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Y0""' of type '""unsigned int [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_Y0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_Y0_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_Y0_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (unsigned int *)(unsigned int *) ((arg1)->Y0); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_Z0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + unsigned int *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_Z0_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_Z0_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_Z0_set" "', argument " "2"" of type '" "unsigned int [256]""'"); + } + arg2 = reinterpret_cast< unsigned int * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->Z0[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""Z0""' of type '""unsigned int [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_Z0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_Z0_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_Z0_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (unsigned int *)(unsigned int *) ((arg1)->Z0); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_rx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_rx_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_rx_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_rx_set" "', argument " "2"" of type '" "WORD [256]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->rx[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""rx""' of type '""WORD [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_rx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_rx_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_rx_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (WORD *)(WORD *) ((arg1)->rx); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_ry_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_ry_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_ry_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_ry_set" "', argument " "2"" of type '" "WORD [256]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->ry[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""ry""' of type '""WORD [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_ry_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_ry_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_ry_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (WORD *)(WORD *) ((arg1)->ry); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_rz_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L8PARAMS_rz_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_rz_set" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L8PARAMS_rz_set" "', argument " "2"" of type '" "WORD [256]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)256; ++ii) arg1->rz[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""rz""' of type '""WORD [256]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L8PARAMS_rz_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:L8PARAMS_rz_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L8PARAMS_rz_get" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + result = (WORD *)(WORD *) ((arg1)->rz); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_L8PARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_L8PARAMS")) SWIG_fail; + + + InErrorFlag = 0; + result = (L8PARAMS *)new L8PARAMS(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l8opt_struc, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_L8PARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L8PARAMS *arg1 = (L8PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_L8PARAMS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l8opt_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_L8PARAMS" "', argument " "1"" of type '" "L8PARAMS *""'"); + } + arg1 = reinterpret_cast< L8PARAMS * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *L8PARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__lcms_l8opt_struc, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_L16PARAMS_nSamples_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_nSamples_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nSamples_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_nSamples_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->nSamples = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_nSamples_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_nSamples_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nSamples_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->nSamples); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_nInputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_nInputs_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nInputs_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_nInputs_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->nInputs = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_nInputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_nInputs_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nInputs_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->nInputs); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_nOutputs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_nOutputs_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nOutputs_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_nOutputs_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->nOutputs = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_nOutputs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_nOutputs_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_nOutputs_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->nOutputs); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_Domain_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + WORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_Domain_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_Domain_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_Domain_set" "', argument " "2"" of type '" "WORD""'"); + } + arg2 = static_cast< WORD >(val2); + if (arg1) (arg1)->Domain = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_Domain_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_Domain_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_Domain_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (WORD) ((arg1)->Domain); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta1_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta1_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta1_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta1); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta2_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta2_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta2_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta2); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta3_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta3_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta3 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta3_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta3); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta4_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta4_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta4 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta4_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta4_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta4); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta5_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta5_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta5_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta5 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta5_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta5_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta5); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta6_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta6_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta6_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta6 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta6_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta6_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta6); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta7_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta7_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta7_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta7 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta7_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta7_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta7); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_opta8_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta8_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "L16PARAMS_opta8_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->opta8 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_opta8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_opta8_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_opta8_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (int) ((arg1)->opta8); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_Interp3D_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + _cms3DLERP arg2 = (_cms3DLERP) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_Interp3D_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_Interp3D_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "L16PARAMS_Interp3D_set" "', argument " "2"" of type '" "_cms3DLERP""'"); + } + } + if (arg1) (arg1)->Interp3D = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_Interp3D_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cms3DLERP result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_Interp3D_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_Interp3D_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (_cms3DLERP) ((arg1)->Interp3D); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_p8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + LPL8PARAMS arg2 = (LPL8PARAMS) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:L16PARAMS_p8_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_p8_set" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l8opt_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "L16PARAMS_p8_set" "', argument " "2"" of type '" "LPL8PARAMS""'"); + } + arg2 = reinterpret_cast< LPL8PARAMS >(argp2); + if (arg1) (arg1)->p8 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_L16PARAMS_p8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPL8PARAMS result; + + if (!PyArg_ParseTuple(args,(char *)"O:L16PARAMS_p8_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "L16PARAMS_p8_get" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + result = (LPL8PARAMS) ((arg1)->p8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l8opt_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_L16PARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_L16PARAMS")) SWIG_fail; + + + InErrorFlag = 0; + result = (L16PARAMS *)new L16PARAMS(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_L16PARAMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + L16PARAMS *arg1 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_L16PARAMS",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_l16params_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_L16PARAMS" "', argument " "1"" of type '" "L16PARAMS *""'"); + } + arg1 = reinterpret_cast< L16PARAMS * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *L16PARAMS_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__lcms_l16params_struc, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsCalcL16Params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + LPL16PARAMS arg2 = (LPL16PARAMS) 0 ; + int val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsCalcL16Params",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsCalcL16Params" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsCalcL16Params" "', argument " "2"" of type '" "LPL16PARAMS""'"); + } + arg2 = reinterpret_cast< LPL16PARAMS >(argp2); + + + InErrorFlag = 0; + cmsCalcL16Params(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCalcCLUT16Params(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + int arg3 ; + LPL16PARAMS arg4 = (LPL16PARAMS) 0 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsCalcCLUT16Params",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsCalcCLUT16Params" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCalcCLUT16Params" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsCalcCLUT16Params" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsCalcCLUT16Params" "', argument " "4"" of type '" "LPL16PARAMS""'"); + } + arg4 = reinterpret_cast< LPL16PARAMS >(argp4); + + + InErrorFlag = 0; + cmsCalcCLUT16Params(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsCalcCLUT16ParamsEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + int arg3 ; + LCMSBOOL arg4 ; + LPL16PARAMS arg5 = (LPL16PARAMS) 0 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:cmsCalcCLUT16ParamsEx",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsCalcCLUT16ParamsEx" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsCalcCLUT16ParamsEx" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsCalcCLUT16ParamsEx" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsCalcCLUT16ParamsEx" "', argument " "4"" of type '" "LCMSBOOL""'"); + } + arg4 = static_cast< LCMSBOOL >(val4); + res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsCalcCLUT16ParamsEx" "', argument " "5"" of type '" "LPL16PARAMS""'"); + } + arg5 = reinterpret_cast< LPL16PARAMS >(argp5); + + + InErrorFlag = 0; + cmsCalcCLUT16ParamsEx(arg1,arg2,arg3,arg4,arg5); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLinearInterpLUT16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD arg1 ; + WORD *arg2 ; + LPL16PARAMS arg3 = (LPL16PARAMS) 0 ; + unsigned short val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsLinearInterpLUT16",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsLinearInterpLUT16" "', argument " "1"" of type '" "WORD""'"); + } + arg1 = static_cast< WORD >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLinearInterpLUT16" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsLinearInterpLUT16" "', argument " "3"" of type '" "LPL16PARAMS""'"); + } + arg3 = reinterpret_cast< LPL16PARAMS >(argp3); + + + InErrorFlag = 0; + result = (WORD)cmsLinearInterpLUT16(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLinearInterpFixed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD arg1 ; + WORD *arg2 ; + LPL16PARAMS arg3 = (LPL16PARAMS) 0 ; + unsigned short val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + Fixed32 result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsLinearInterpFixed",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsLinearInterpFixed" "', argument " "1"" of type '" "WORD""'"); + } + arg1 = static_cast< WORD >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLinearInterpFixed" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsLinearInterpFixed" "', argument " "3"" of type '" "LPL16PARAMS""'"); + } + arg3 = reinterpret_cast< LPL16PARAMS >(argp3); + + + InErrorFlag = 0; + result = cmsLinearInterpFixed(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new Fixed32(static_cast< const Fixed32& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReverseLinearInterpLUT16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD arg1 ; + WORD *arg2 ; + LPL16PARAMS arg3 = (LPL16PARAMS) 0 ; + unsigned short val1 ; + int ecode1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsReverseLinearInterpLUT16",&obj0,&obj1,&obj2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsReverseLinearInterpLUT16" "', argument " "1"" of type '" "WORD""'"); + } + arg1 = static_cast< WORD >(val1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReverseLinearInterpLUT16" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReverseLinearInterpLUT16" "', argument " "3"" of type '" "LPL16PARAMS""'"); + } + arg3 = reinterpret_cast< LPL16PARAMS >(argp3); + + + InErrorFlag = 0; + result = (WORD)cmsReverseLinearInterpLUT16(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTrilinearInterp16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + WORD *arg2 ; + WORD *arg3 ; + LPL16PARAMS arg4 = (LPL16PARAMS) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsTrilinearInterp16",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTrilinearInterp16" "', argument " "1"" of type '" "WORD []""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTrilinearInterp16" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsTrilinearInterp16" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsTrilinearInterp16" "', argument " "4"" of type '" "LPL16PARAMS""'"); + } + arg4 = reinterpret_cast< LPL16PARAMS >(argp4); + + + InErrorFlag = 0; + cmsTrilinearInterp16(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTetrahedralInterp16(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + WORD *arg2 ; + WORD *arg3 ; + LPL16PARAMS arg4 = (LPL16PARAMS) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsTetrahedralInterp16",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTetrahedralInterp16" "', argument " "1"" of type '" "WORD []""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTetrahedralInterp16" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsTetrahedralInterp16" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsTetrahedralInterp16" "', argument " "4"" of type '" "LPL16PARAMS""'"); + } + arg4 = reinterpret_cast< LPL16PARAMS >(argp4); + + + InErrorFlag = 0; + cmsTetrahedralInterp16(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsTetrahedralInterp8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + WORD *arg2 ; + WORD *arg3 ; + LPL16PARAMS arg4 = (LPL16PARAMS) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsTetrahedralInterp8",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsTetrahedralInterp8" "', argument " "1"" of type '" "WORD []""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsTetrahedralInterp8" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsTetrahedralInterp8" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsTetrahedralInterp8" "', argument " "4"" of type '" "LPL16PARAMS""'"); + } + arg4 = reinterpret_cast< LPL16PARAMS >(argp4); + + + InErrorFlag = 0; + cmsTetrahedralInterp8(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_wFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_wFlags_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_wFlags_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_wFlags_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->wFlags = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_wFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_wFlags_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_wFlags_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (DWORD) ((arg1)->wFlags); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Matrix_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Matrix_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Matrix_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->Matrix = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Matrix_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Matrix_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (WMAT3 *)& ((arg1)->Matrix); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_InputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_InputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_InputChan_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_InputChan_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->InputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_InputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_InputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_InputChan_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->InputChan); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_OutputChan_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_OutputChan_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_OutputChan_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_OutputChan_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->OutputChan = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_OutputChan_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_OutputChan_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_OutputChan_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->OutputChan); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_InputEntries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_InputEntries_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_InputEntries_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_InputEntries_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->InputEntries = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_InputEntries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_InputEntries_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_InputEntries_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->InputEntries); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_OutputEntries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_OutputEntries_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_OutputEntries_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_OutputEntries_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->OutputEntries = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_OutputEntries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_OutputEntries_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_OutputEntries_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->OutputEntries); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_cLutPoints_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_cLutPoints_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_cLutPoints_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_cLutPoints_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->cLutPoints = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_cLutPoints_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_cLutPoints_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_cLutPoints_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->cLutPoints); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L1_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L1_set" "', argument " "2"" of type '" "LPWORD [16]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->L1[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L1""' of type '""LPWORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L1_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L2_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L2_set" "', argument " "2"" of type '" "LPWORD [16]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->L2[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L2""' of type '""LPWORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L2_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_T_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LPWORD arg2 = (LPWORD) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_T_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_T_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_T_set" "', argument " "2"" of type '" "LPWORD""'"); + } + arg2 = reinterpret_cast< LPWORD >(argp2); + if (arg1) (arg1)->T = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_T_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_T_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_T_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LPWORD) ((arg1)->T); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Tsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Tsize_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Tsize_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_Tsize_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->Tsize = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Tsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Tsize_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Tsize_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->Tsize); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_In16params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_In16params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_In16params_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_In16params_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->In16params = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_In16params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_In16params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_In16params_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (L16PARAMS *)& ((arg1)->In16params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Out16params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Out16params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Out16params_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Out16params_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->Out16params = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Out16params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Out16params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Out16params_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (L16PARAMS *)& ((arg1)->Out16params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_CLut16params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_CLut16params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_CLut16params_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_CLut16params_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->CLut16params = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_CLut16params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_CLut16params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_CLut16params_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (L16PARAMS *)& ((arg1)->CLut16params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Intent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Intent_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Intent_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_Intent_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Intent = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Intent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Intent_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Intent_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (int) ((arg1)->Intent); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Mat3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Mat3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Mat3_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Mat3_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->Mat3 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Mat3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Mat3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Mat3_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (WMAT3 *)& ((arg1)->Mat3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Ofs3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + WVEC3 *arg2 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Ofs3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Ofs3_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Ofs3_set" "', argument " "2"" of type '" "WVEC3 *""'"); + } + arg2 = reinterpret_cast< WVEC3 * >(argp2); + if (arg1) (arg1)->Ofs3 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Ofs3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Ofs3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Ofs3_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (WVEC3 *)& ((arg1)->Ofs3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L3_set" "', argument " "2"" of type '" "LPWORD [16]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->L3[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L3""' of type '""LPWORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L3params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3params_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L3params_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->L3params = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L3params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3params_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (L16PARAMS *)& ((arg1)->L3params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3Entries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L3Entries_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3Entries_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_L3Entries_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->L3Entries = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L3Entries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L3Entries_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L3Entries_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->L3Entries); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Mat4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Mat4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Mat4_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Mat4_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->Mat4 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Mat4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Mat4_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Mat4_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (WMAT3 *)& ((arg1)->Mat4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Ofs4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + WVEC3 *arg2 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_Ofs4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Ofs4_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_Ofs4_set" "', argument " "2"" of type '" "WVEC3 *""'"); + } + arg2 = reinterpret_cast< WVEC3 * >(argp2); + if (arg1) (arg1)->Ofs4 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_Ofs4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_Ofs4_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_Ofs4_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (WVEC3 *)& ((arg1)->Ofs4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L4_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L4_set" "', argument " "2"" of type '" "LPWORD [16]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->L4[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L4""' of type '""LPWORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L4_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4params_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L4params_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4params_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_L4params_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->L4params = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4params_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L4params_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4params_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (L16PARAMS *)& ((arg1)->L4params); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4Entries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_L4Entries_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4Entries_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_L4Entries_set" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + if (arg1) (arg1)->L4Entries = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_L4Entries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_L4Entries_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_L4Entries_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (unsigned int) ((arg1)->L4Entries); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_FixGrayAxes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LCMSBOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_FixGrayAxes_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_FixGrayAxes_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_lcms_LUT_struc_FixGrayAxes_set" "', argument " "2"" of type '" "LCMSBOOL""'"); + } + arg2 = static_cast< LCMSBOOL >(val2); + if (arg1) (arg1)->FixGrayAxes = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_FixGrayAxes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_FixGrayAxes_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_FixGrayAxes_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LCMSBOOL) ((arg1)->FixGrayAxes); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_LCurvesSeed_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + LCMSGAMMAPARAMS (*arg2)[16] ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_lcms_LUT_struc_LCurvesSeed_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_LCurvesSeed_set" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_a_16__LCMSGAMMAPARAMS, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_lcms_LUT_struc_LCurvesSeed_set" "', argument " "2"" of type '" "LCMSGAMMAPARAMS [4][16]""'"); + } + arg2 = reinterpret_cast< LCMSGAMMAPARAMS (*)[16] >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)4; ++ii) { + if (arg2[ii]) { + size_t jj = 0; + for (; jj < (size_t)16; ++jj) arg1->LCurvesSeed[ii][jj] = arg2[ii][jj]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""LCurvesSeed""' of type '""LCMSGAMMAPARAMS [4][16]""'"); + } + } + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""LCurvesSeed""' of type '""LCMSGAMMAPARAMS [4][16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__lcms_LUT_struc_LCurvesSeed_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSGAMMAPARAMS (*result)[16] = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_lcms_LUT_struc_LCurvesSeed_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_lcms_LUT_struc_LCurvesSeed_get" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + result = (LCMSGAMMAPARAMS (*)[16])(LCMSGAMMAPARAMS (*)[16]) ((arg1)->LCurvesSeed); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_16__LCMSGAMMAPARAMS, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new__lcms_LUT_struc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new__lcms_LUT_struc")) SWIG_fail; + + + InErrorFlag = 0; + result = (_lcms_LUT_struc *)new _lcms_LUT_struc(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete__lcms_LUT_struc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _lcms_LUT_struc *arg1 = (_lcms_LUT_struc *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete__lcms_LUT_struc",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__lcms_LUT_struc" "', argument " "1"" of type '" "_lcms_LUT_struc *""'"); + } + arg1 = reinterpret_cast< _lcms_LUT_struc * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_lcms_LUT_struc_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__lcms_LUT_struc, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap__cmsSmoothEndpoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPWORD arg1 = (LPWORD) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsSmoothEndpoints",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSmoothEndpoints" "', argument " "1"" of type '" "LPWORD""'"); + } + arg1 = reinterpret_cast< LPWORD >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsSmoothEndpoints" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsSmoothEndpoints(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsCrc32OfGammaTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsCrc32OfGammaTable",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsCrc32OfGammaTable" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + + + InErrorFlag = 0; + result = (unsigned int)_cmsCrc32OfGammaTable(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + LPSAMPLEDCURVE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsAllocSampledCurve",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsAllocSampledCurve" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = (LPSAMPLEDCURVE)cmsAllocSampledCurve(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeSampledCurve",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + + + InErrorFlag = 0; + cmsFreeSampledCurve(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDupSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPSAMPLEDCURVE result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsDupSampledCurve",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDupSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + + + InErrorFlag = 0; + result = (LPSAMPLEDCURVE)cmsDupSampledCurve(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsConvertGammaToSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPGAMMATABLE arg1 = (LPGAMMATABLE) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPSAMPLEDCURVE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsConvertGammaToSampledCurve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsConvertGammaToSampledCurve" "', argument " "1"" of type '" "LPGAMMATABLE""'"); + } + arg1 = reinterpret_cast< LPGAMMATABLE >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsConvertGammaToSampledCurve" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (LPSAMPLEDCURVE)cmsConvertGammaToSampledCurve(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsConvertSampledCurveToGamma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsConvertSampledCurveToGamma",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsConvertSampledCurveToGamma" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsConvertSampledCurveToGamma" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)cmsConvertSampledCurveToGamma(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEndpointsOfSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + double *arg2 = (double *) 0 ; + double *arg3 = (double *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsEndpointsOfSampledCurve",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEndpointsOfSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsEndpointsOfSampledCurve" "', argument " "2"" of type '" "double *""'"); + } + arg2 = reinterpret_cast< double * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_double, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsEndpointsOfSampledCurve" "', argument " "3"" of type '" "double *""'"); + } + arg3 = reinterpret_cast< double * >(argp3); + + + InErrorFlag = 0; + cmsEndpointsOfSampledCurve(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsClampSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + double arg2 ; + double arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsClampSampledCurve",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsClampSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsClampSampledCurve" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsClampSampledCurve" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + + + InErrorFlag = 0; + cmsClampSampledCurve(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsSmoothSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsSmoothSampledCurve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsSmoothSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsSmoothSampledCurve" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsSmoothSampledCurve(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsRescaleSampledCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + double arg2 ; + double arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsRescaleSampledCurve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsRescaleSampledCurve" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsRescaleSampledCurve" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + ecode3 = SWIG_AsVal_double(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsRescaleSampledCurve" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsRescaleSampledCurve" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + + + InErrorFlag = 0; + cmsRescaleSampledCurve(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsJoinSampledCurves(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPSAMPLEDCURVE arg1 = (LPSAMPLEDCURVE) 0 ; + LPSAMPLEDCURVE arg2 = (LPSAMPLEDCURVE) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LPSAMPLEDCURVE result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsJoinSampledCurves",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsJoinSampledCurves" "', argument " "1"" of type '" "LPSAMPLEDCURVE""'"); + } + arg1 = reinterpret_cast< LPSAMPLEDCURVE >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsJoinSampledCurves" "', argument " "2"" of type '" "LPSAMPLEDCURVE""'"); + } + arg2 = reinterpret_cast< LPSAMPLEDCURVE >(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsJoinSampledCurves" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + + + InErrorFlag = 0; + result = (LPSAMPLEDCURVE)cmsJoinSampledCurves(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SAMPLEDCURVE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_dwFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_dwFlags_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_dwFlags_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MATSHAPER_dwFlags_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->dwFlags = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_dwFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_dwFlags_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_dwFlags_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (DWORD) ((arg1)->dwFlags); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_Matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_Matrix_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_Matrix_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MATSHAPER_Matrix_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->Matrix = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_Matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_Matrix_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_Matrix_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (WMAT3 *)& ((arg1)->Matrix); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_p16_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_p16_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_p16_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MATSHAPER_p16_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->p16 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_p16_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_p16_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_p16_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (L16PARAMS *)& ((arg1)->p16); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_L_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_L_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_L_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MATSHAPER_L_set" "', argument " "2"" of type '" "LPWORD [3]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->L[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L""' of type '""LPWORD [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_L_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_L_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_L_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_p2_16_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + L16PARAMS *arg2 = (L16PARAMS *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_p2_16_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_p2_16_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MATSHAPER_p2_16_set" "', argument " "2"" of type '" "L16PARAMS *""'"); + } + arg2 = reinterpret_cast< L16PARAMS * >(argp2); + if (arg1) (arg1)->p2_16 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_p2_16_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + L16PARAMS *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_p2_16_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_p2_16_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (L16PARAMS *)& ((arg1)->p2_16); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_l16params_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_L2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + LPWORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MATSHAPER_L2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_L2_set" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MATSHAPER_L2_set" "', argument " "2"" of type '" "LPWORD [3]""'"); + } + arg2 = reinterpret_cast< LPWORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)3; ++ii) arg1->L2[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""L2""' of type '""LPWORD [3]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MATSHAPER_L2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPWORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MATSHAPER_L2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MATSHAPER_L2_get" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + result = (LPWORD *)(LPWORD *) ((arg1)->L2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_MATSHAPER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_MATSHAPER")) SWIG_fail; + + + InErrorFlag = 0; + result = (MATSHAPER *)new MATSHAPER(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MATSHAPER, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MATSHAPER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MATSHAPER *arg1 = (MATSHAPER *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MATSHAPER",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MATSHAPER, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MATSHAPER" "', argument " "1"" of type '" "MATSHAPER *""'"); + } + arg1 = reinterpret_cast< MATSHAPER * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MATSHAPER_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MATSHAPER, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_cmsAllocMatShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPGAMMATABLE *arg2 ; + DWORD arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned long val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsAllocMatShaper",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAllocMatShaper" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAllocMatShaper" "', argument " "2"" of type '" "LPGAMMATABLE []""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_long(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsAllocMatShaper" "', argument " "3"" of type '" "DWORD""'"); + } + arg3 = static_cast< DWORD >(val3); + + + InErrorFlag = 0; + result = cmsAllocMatShaper(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocMatShaper2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPGAMMATABLE *arg2 ; + LPGAMMATABLE *arg3 ; + DWORD arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsAllocMatShaper2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAllocMatShaper2" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAllocMatShaper2" "', argument " "2"" of type '" "LPGAMMATABLE []""'"); + } + arg2 = reinterpret_cast< LPGAMMATABLE * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_GAMMATABLE, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAllocMatShaper2" "', argument " "3"" of type '" "LPGAMMATABLE []""'"); + } + arg3 = reinterpret_cast< LPGAMMATABLE * >(argp3); + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsAllocMatShaper2" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = cmsAllocMatShaper2(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeMatShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMATSHAPER arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeMatShaper",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPMATSHAPER, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeMatShaper" "', argument " "1"" of type '" "LPMATSHAPER""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsFreeMatShaper" "', argument " "1"" of type '" "LPMATSHAPER""'"); + } else { + LPMATSHAPER * temp = reinterpret_cast< LPMATSHAPER * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + cmsFreeMatShaper(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsEvalMatShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMATSHAPER arg1 ; + WORD *arg2 ; + WORD *arg3 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsEvalMatShaper",&obj0,&obj1,&obj2)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPMATSHAPER, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsEvalMatShaper" "', argument " "1"" of type '" "LPMATSHAPER""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsEvalMatShaper" "', argument " "1"" of type '" "LPMATSHAPER""'"); + } else { + LPMATSHAPER * temp = reinterpret_cast< LPMATSHAPER * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsEvalMatShaper" "', argument " "2"" of type '" "WORD []""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsEvalMatShaper" "', argument " "3"" of type '" "WORD []""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + + + InErrorFlag = 0; + cmsEvalMatShaper(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCMatrixRGB2XYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadICCMatrixRGB2XYZ",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCMatrixRGB2XYZ" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCMatrixRGB2XYZ" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsReadICCMatrixRGB2XYZ(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBuildInputMatrixShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsBuildInputMatrixShaper",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsBuildInputMatrixShaper" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsBuildInputMatrixShaper(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsBuildOutputMatrixShaper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsBuildOutputMatrixShaper",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsBuildOutputMatrixShaper" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = cmsBuildOutputMatrixShaper(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAdaptationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPMAT3 arg2 = (LPMAT3) 0 ; + LPcmsCIEXYZ arg3 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg4 = (LPcmsCIEXYZ) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsAdaptationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAdaptationMatrix" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAdaptationMatrix" "', argument " "2"" of type '" "LPMAT3""'"); + } + arg2 = reinterpret_cast< LPMAT3 >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAdaptationMatrix" "', argument " "3"" of type '" "LPcmsCIEXYZ""'"); + } + arg3 = reinterpret_cast< LPcmsCIEXYZ >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsAdaptationMatrix" "', argument " "4"" of type '" "LPcmsCIEXYZ""'"); + } + arg4 = reinterpret_cast< LPcmsCIEXYZ >(argp4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAdaptationMatrix(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAdaptMatrixToD50(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPcmsCIExyY arg2 = (LPcmsCIExyY) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsAdaptMatrixToD50",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAdaptMatrixToD50" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAdaptMatrixToD50" "', argument " "2"" of type '" "LPcmsCIExyY""'"); + } + arg2 = reinterpret_cast< LPcmsCIExyY >(argp2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAdaptMatrixToD50(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAdaptMatrixFromD50(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + LPcmsCIExyY arg2 = (LPcmsCIExyY) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsAdaptMatrixFromD50",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAdaptMatrixFromD50" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIExyY, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAdaptMatrixFromD50" "', argument " "2"" of type '" "LPcmsCIExyY""'"); + } + arg2 = reinterpret_cast< LPcmsCIExyY >(argp2); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAdaptMatrixFromD50(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadChromaticAdaptationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPMAT3 arg1 = (LPMAT3) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsReadChromaticAdaptationMatrix",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadChromaticAdaptationMatrix" "', argument " "1"" of type '" "LPMAT3""'"); + } + arg1 = reinterpret_cast< LPMAT3 >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadChromaticAdaptationMatrix" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsReadChromaticAdaptationMatrix(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsXYZ2LabEncoded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsXYZ2LabEncoded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsXYZ2LabEncoded" "', argument " "1"" of type '" "WORD [3]""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsXYZ2LabEncoded" "', argument " "2"" of type '" "WORD [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + + + InErrorFlag = 0; + cmsXYZ2LabEncoded(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsLab2XYZEncoded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + WORD *arg1 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:cmsLab2XYZEncoded",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsLab2XYZEncoded" "', argument " "1"" of type '" "WORD [3]""'"); + } + arg1 = reinterpret_cast< WORD * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsLab2XYZEncoded" "', argument " "2"" of type '" "WORD [3]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + + + InErrorFlag = 0; + cmsLab2XYZEncoded(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsIdentifyWhitePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + LPcmsCIEXYZ arg2 = (LPcmsCIEXYZ) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsIdentifyWhitePoint",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyWhitePoint" "', argument " "1"" of type '" "char *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsIdentifyWhitePoint" "', argument " "2"" of type '" "LPcmsCIEXYZ""'"); + } + arg2 = reinterpret_cast< LPcmsCIEXYZ >(argp2); + + + InErrorFlag = 0; + _cmsIdentifyWhitePoint(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsQuantizeVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + double arg1 ; + int arg2 ; + double val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsQuantizeVal",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_double(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_cmsQuantizeVal" "', argument " "1"" of type '" "double""'"); + } + arg1 = static_cast< double >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsQuantizeVal" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (WORD)_cmsQuantizeVal(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAllocNamedColorList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + LPcmsNAMEDCOLORLIST result; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsAllocNamedColorList",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsAllocNamedColorList" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + + + InErrorFlag = 0; + result = cmsAllocNamedColorList(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new LPcmsNAMEDCOLORLIST(static_cast< const LPcmsNAMEDCOLORLIST& >(result))), SWIGTYPE_p_LPcmsNAMEDCOLORLIST, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsReadICCnamedColorList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg3 ; + int res1 ; + int res2 ; + void *argp3 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:cmsReadICCnamedColorList",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsReadICCnamedColorList" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsReadICCnamedColorList" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + { + res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsReadICCnamedColorList" "', argument " "3"" of type '" "icTagSignature""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsReadICCnamedColorList" "', argument " "3"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp3); + arg3 = *temp; + if (SWIG_IsNewObj(res3)) delete temp; + } + } + + + InErrorFlag = 0; + result = (int)cmsReadICCnamedColorList(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsFreeNamedColorList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsNAMEDCOLORLIST arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:cmsFreeNamedColorList",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_LPcmsNAMEDCOLORLIST, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsFreeNamedColorList" "', argument " "1"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsFreeNamedColorList" "', argument " "1"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } else { + LPcmsNAMEDCOLORLIST * temp = reinterpret_cast< LPcmsNAMEDCOLORLIST * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + cmsFreeNamedColorList(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsAppendNamedColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + char *arg2 = (char *) 0 ; + WORD *arg3 ; + WORD *arg4 ; + int res1 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsAppendNamedColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsAppendNamedColor" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsAppendNamedColor" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsAppendNamedColor" "', argument " "3"" of type '" "WORD [3]""'"); + } + arg3 = reinterpret_cast< WORD * >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsAppendNamedColor" "', argument " "4"" of type '" "WORD [16]""'"); + } + arg4 = reinterpret_cast< WORD * >(argp4); + + + InErrorFlag = 0; + result = (LCMSBOOL)cmsAppendNamedColor(arg1,(char const *)arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_stream_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_stream_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_stream_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_stream_set" "', argument " "2"" of type '" "void *""'"); + } + if (arg1) (arg1)->stream = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_stream_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + void *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_stream_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_stream_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (void *) ((arg1)->stream); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_DeviceClass_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icProfileClassSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_DeviceClass_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_DeviceClass_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icProfileClassSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_DeviceClass_set" "', argument " "2"" of type '" "icProfileClassSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_DeviceClass_set" "', argument " "2"" of type '" "icProfileClassSignature""'"); + } else { + icProfileClassSignature * temp = reinterpret_cast< icProfileClassSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->DeviceClass = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_DeviceClass_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icProfileClassSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_DeviceClass_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_DeviceClass_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->DeviceClass); + resultobj = SWIG_NewPointerObj((new icProfileClassSignature(static_cast< const icProfileClassSignature& >(result))), SWIGTYPE_p_icProfileClassSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ColorSpace_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icColorSpaceSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_ColorSpace_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ColorSpace_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_ColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_ColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->ColorSpace = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ColorSpace_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_ColorSpace_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ColorSpace_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->ColorSpace); + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_PCS_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icColorSpaceSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_PCS_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_PCS_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_PCS_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_PCS_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->PCS = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_PCS_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_PCS_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_PCS_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->PCS); + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_RenderingIntent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icRenderingIntent arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_RenderingIntent_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_RenderingIntent_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icRenderingIntent, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_RenderingIntent_set" "', argument " "2"" of type '" "icRenderingIntent""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_RenderingIntent_set" "', argument " "2"" of type '" "icRenderingIntent""'"); + } else { + icRenderingIntent * temp = reinterpret_cast< icRenderingIntent * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->RenderingIntent = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_RenderingIntent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icRenderingIntent result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_RenderingIntent_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_RenderingIntent_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->RenderingIntent); + resultobj = SWIG_NewPointerObj((new icRenderingIntent(static_cast< const icRenderingIntent& >(result))), SWIGTYPE_p_icRenderingIntent, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_flags_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_flags_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_flags_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_flags_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->flags = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_flags_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_flags_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->flags); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_attributes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_attributes_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_attributes_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_attributes_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_attributes_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->attributes = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_attributes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_attributes_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_attributes_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->attributes); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Illuminant_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Illuminant_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Illuminant_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_Illuminant_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->Illuminant = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Illuminant_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Illuminant_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Illuminant_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->Illuminant); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icUInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Version_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Version_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icUInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_Version_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_Version_set" "', argument " "2"" of type '" "icUInt32Number""'"); + } else { + icUInt32Number * temp = reinterpret_cast< icUInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->Version = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icUInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Version_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Version_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->Version); + resultobj = SWIG_NewPointerObj((new icUInt32Number(static_cast< const icUInt32Number& >(result))), SWIGTYPE_p_icUInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ChromaticAdaptation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + MAT3 *arg2 = (MAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_ChromaticAdaptation_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ChromaticAdaptation_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_ChromaticAdaptation_set" "', argument " "2"" of type '" "MAT3 *""'"); + } + arg2 = reinterpret_cast< MAT3 * >(argp2); + if (arg1) (arg1)->ChromaticAdaptation = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ChromaticAdaptation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_ChromaticAdaptation_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ChromaticAdaptation_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (MAT3 *)& ((arg1)->ChromaticAdaptation); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_MediaWhitePoint_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_MediaWhitePoint_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_MediaWhitePoint_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_MediaWhitePoint_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->MediaWhitePoint = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_MediaWhitePoint_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_MediaWhitePoint_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_MediaWhitePoint_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->MediaWhitePoint); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_MediaBlackPoint_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + cmsCIEXYZ *arg2 = (cmsCIEXYZ *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_MediaBlackPoint_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_MediaBlackPoint_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_MediaBlackPoint_set" "', argument " "2"" of type '" "cmsCIEXYZ *""'"); + } + arg2 = reinterpret_cast< cmsCIEXYZ * >(argp2); + if (arg1) (arg1)->MediaBlackPoint = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_MediaBlackPoint_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsCIEXYZ *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_MediaBlackPoint_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_MediaBlackPoint_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (cmsCIEXYZ *)& ((arg1)->MediaBlackPoint); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ProfileID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + BYTE *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_ProfileID_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ProfileID_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_ProfileID_set" "', argument " "2"" of type '" "BYTE [16]""'"); + } + arg2 = reinterpret_cast< BYTE * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->ProfileID[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""ProfileID""' of type '""BYTE [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_ProfileID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + BYTE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_ProfileID_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_ProfileID_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (BYTE *)(BYTE *) ((arg1)->ProfileID); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagCount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icInt32Number arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_TagCount_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagCount_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_TagCount_set" "', argument " "2"" of type '" "icInt32Number""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_TagCount_set" "', argument " "2"" of type '" "icInt32Number""'"); + } else { + icInt32Number * temp = reinterpret_cast< icInt32Number * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->TagCount = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagCount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_TagCount_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagCount_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->TagCount); + resultobj = SWIG_NewPointerObj((new icInt32Number(static_cast< const icInt32Number& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagNames_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + icTagSignature *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_TagNames_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagNames_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_icTagSignature, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_TagNames_set" "', argument " "2"" of type '" "icTagSignature [100]""'"); + } + arg2 = reinterpret_cast< icTagSignature * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)100; ++ii) arg1->TagNames[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""TagNames""' of type '""icTagSignature [100]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagNames_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icTagSignature *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_TagNames_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagNames_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (icTagSignature *)(icTagSignature *) ((arg1)->TagNames); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icTagSignature, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagSizes_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + size_t *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_TagSizes_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagSizes_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_size_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_TagSizes_set" "', argument " "2"" of type '" "size_t [100]""'"); + } + arg2 = reinterpret_cast< size_t * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)100; ++ii) arg1->TagSizes[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""TagSizes""' of type '""size_t [100]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagSizes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_TagSizes_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagSizes_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (size_t *)(size_t *) ((arg1)->TagSizes); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagOffsets_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + size_t *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_TagOffsets_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagOffsets_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_size_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_TagOffsets_set" "', argument " "2"" of type '" "size_t [100]""'"); + } + arg2 = reinterpret_cast< size_t * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)100; ++ii) arg1->TagOffsets[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""TagOffsets""' of type '""size_t [100]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagOffsets_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_TagOffsets_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagOffsets_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (size_t *)(size_t *) ((arg1)->TagOffsets); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagPtrs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LPVOID *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_TagPtrs_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagPtrs_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_void, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_TagPtrs_set" "', argument " "2"" of type '" "LPVOID [100]""'"); + } + arg2 = reinterpret_cast< LPVOID * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)100; ++ii) arg1->TagPtrs[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""TagPtrs""' of type '""LPVOID [100]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_TagPtrs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPVOID *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_TagPtrs_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_TagPtrs_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LPVOID *)(LPVOID *) ((arg1)->TagPtrs); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_PhysicalFile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + char *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char temp2[(256)] ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_PhysicalFile_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_PhysicalFile_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + res2 = SWIG_AsCharArray(obj1, temp2, (256)); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_PhysicalFile_set" "', argument " "2"" of type '" "char [(256)]""'"); + } + arg2 = reinterpret_cast< char * >(temp2); + if (arg2) memcpy(arg1->PhysicalFile,arg2,(256)*sizeof(char)); + else memset(arg1->PhysicalFile,0,(256)*sizeof(char)); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_PhysicalFile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_PhysicalFile_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_PhysicalFile_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (char *)(char *) ((arg1)->PhysicalFile); + { + size_t size = (256); + + while (size && (result[size - 1] == '\0')) --size; + + resultobj = SWIG_FromCharPtrAndSize(result, size); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_IsWrite_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LCMSBOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_IsWrite_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_IsWrite_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LCMSICCPROFILE_IsWrite_set" "', argument " "2"" of type '" "LCMSBOOL""'"); + } + arg2 = static_cast< LCMSBOOL >(val2); + if (arg1) (arg1)->IsWrite = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_IsWrite_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_IsWrite_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_IsWrite_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LCMSBOOL) ((arg1)->IsWrite); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_SaveAs8Bits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LCMSBOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_SaveAs8Bits_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_SaveAs8Bits_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LCMSICCPROFILE_SaveAs8Bits_set" "', argument " "2"" of type '" "LCMSBOOL""'"); + } + arg2 = static_cast< LCMSBOOL >(val2); + if (arg1) (arg1)->SaveAs8Bits = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_SaveAs8Bits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_SaveAs8Bits_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_SaveAs8Bits_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LCMSBOOL) ((arg1)->SaveAs8Bits); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Created_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + tm arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Created_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Created_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_tm, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LCMSICCPROFILE_Created_set" "', argument " "2"" of type '" "tm""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LCMSICCPROFILE_Created_set" "', argument " "2"" of type '" "tm""'"); + } else { + tm * temp = reinterpret_cast< tm * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->Created = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Created_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tm result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Created_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Created_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->Created); + resultobj = SWIG_NewPointerObj((new tm(static_cast< const tm& >(result))), SWIGTYPE_p_tm, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Read_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + size_t (*arg2)(void *,size_t,size_t,_lcms_iccprofile_struct *) = (size_t (*)(void *,size_t,size_t,_lcms_iccprofile_struct *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Read_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Read_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "LCMSICCPROFILE_Read_set" "', argument " "2"" of type '" "size_t (*)(void *,size_t,size_t,_lcms_iccprofile_struct *)""'"); + } + } + if (arg1) (arg1)->Read = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Read_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t (*result)(void *,size_t,size_t,_lcms_iccprofile_struct *) = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Read_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Read_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (size_t (*)(void *,size_t,size_t,_lcms_iccprofile_struct *)) ((arg1)->Read); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Seek_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LCMSBOOL (*arg2)(_lcms_iccprofile_struct *,size_t) = (LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Seek_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Seek_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "LCMSICCPROFILE_Seek_set" "', argument " "2"" of type '" "LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t)""'"); + } + } + if (arg1) (arg1)->Seek = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Seek_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL (*result)(_lcms_iccprofile_struct *,size_t) = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Seek_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Seek_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t)) ((arg1)->Seek); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t__int); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Close_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LCMSBOOL (*arg2)(_lcms_iccprofile_struct *) = (LCMSBOOL (*)(_lcms_iccprofile_struct *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Close_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Close_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__lcms_iccprofile_struct__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "LCMSICCPROFILE_Close_set" "', argument " "2"" of type '" "LCMSBOOL (*)(_lcms_iccprofile_struct *)""'"); + } + } + if (arg1) (arg1)->Close = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Close_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL (*result)(_lcms_iccprofile_struct *) = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Close_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Close_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LCMSBOOL (*)(_lcms_iccprofile_struct *)) ((arg1)->Close); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__lcms_iccprofile_struct__int); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Tell_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + size_t (*arg2)(_lcms_iccprofile_struct *) = (size_t (*)(_lcms_iccprofile_struct *)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Tell_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Tell_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__lcms_iccprofile_struct__size_t); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "LCMSICCPROFILE_Tell_set" "', argument " "2"" of type '" "size_t (*)(_lcms_iccprofile_struct *)""'"); + } + } + if (arg1) (arg1)->Tell = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Tell_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t (*result)(_lcms_iccprofile_struct *) = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Tell_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Tell_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (size_t (*)(_lcms_iccprofile_struct *)) ((arg1)->Tell); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__lcms_iccprofile_struct__size_t); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Write_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + LCMSBOOL (*arg2)(_lcms_iccprofile_struct *,size_t,LPVOID) = (LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_Write_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Write_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t_p_void__int); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "LCMSICCPROFILE_Write_set" "', argument " "2"" of type '" "LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)""'"); + } + } + if (arg1) (arg1)->Write = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_Write_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL (*result)(_lcms_iccprofile_struct *,size_t,LPVOID) = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_Write_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_Write_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = (LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)) ((arg1)->Write); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__lcms_iccprofile_struct_size_t_p_void__int); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_UsedSpace_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:LCMSICCPROFILE_UsedSpace_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_UsedSpace_set" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LCMSICCPROFILE_UsedSpace_set" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + if (arg1) (arg1)->UsedSpace = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_LCMSICCPROFILE_UsedSpace_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:LCMSICCPROFILE_UsedSpace_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LCMSICCPROFILE_UsedSpace_get" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + result = ((arg1)->UsedSpace); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_LCMSICCPROFILE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_LCMSICCPROFILE")) SWIG_fail; + + + InErrorFlag = 0; + result = (LCMSICCPROFILE *)new LCMSICCPROFILE(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_iccprofile_struct, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_LCMSICCPROFILE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LCMSICCPROFILE *arg1 = (LCMSICCPROFILE *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_LCMSICCPROFILE",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LCMSICCPROFILE" "', argument " "1"" of type '" "LCMSICCPROFILE *""'"); + } + arg1 = reinterpret_cast< LCMSICCPROFILE * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *LCMSICCPROFILE_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__lcms_iccprofile_struct, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap__cmsCreateProfilePlaceholder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)":_cmsCreateProfilePlaceholder")) SWIG_fail; + + + InErrorFlag = 0; + result = (cmsHPROFILE)_cmsCreateProfilePlaceholder(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsSearchTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + LCMSBOOL arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + icInt32Number result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsSearchTag",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSearchTag" "', argument " "1"" of type '" "LPLCMSICCPROFILE""'"); + } + arg1 = reinterpret_cast< LPLCMSICCPROFILE >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSearchTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsSearchTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_cmsSearchTag" "', argument " "3"" of type '" "LCMSBOOL""'"); + } + arg3 = static_cast< LCMSBOOL >(val3); + + + InErrorFlag = 0; + result = _cmsSearchTag(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj((new icInt32Number(static_cast< const icInt32Number& >(result))), SWIGTYPE_p_icInt32Number, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsInitTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ; + SwigValueWrapper< icTagSignature > arg2 ; + size_t arg3 ; + void *arg4 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int res4 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LPVOID result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:_cmsInitTag",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsInitTag" "', argument " "1"" of type '" "LPLCMSICCPROFILE""'"); + } + arg1 = reinterpret_cast< LPLCMSICCPROFILE >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icTagSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsInitTag" "', argument " "2"" of type '" "icTagSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsInitTag" "', argument " "2"" of type '" "icTagSignature""'"); + } else { + icTagSignature * temp = reinterpret_cast< icTagSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_cmsInitTag" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "_cmsInitTag" "', argument " "4"" of type '" "void const *""'"); + } + + + InErrorFlag = 0; + result = (LPVOID)_cmsInitTag(arg1,arg2,arg3,(void const *)arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsCreateProfileFromFilePlaceholder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + LPLCMSICCPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsCreateProfileFromFilePlaceholder",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsCreateProfileFromFilePlaceholder" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + + + InErrorFlag = 0; + result = (LPLCMSICCPROFILE)_cmsCreateProfileFromFilePlaceholder((char const *)arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsCreateProfileFromMemPlaceholder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPVOID arg1 = (LPVOID) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLCMSICCPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsCreateProfileFromMemPlaceholder",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsCreateProfileFromMemPlaceholder" "', argument " "1"" of type '" "LPVOID""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsCreateProfileFromMemPlaceholder" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (LPLCMSICCPROFILE)_cmsCreateProfileFromMemPlaceholder(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsSetSaveToDisk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsSetSaveToDisk",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSetSaveToDisk" "', argument " "1"" of type '" "LPLCMSICCPROFILE""'"); + } + arg1 = reinterpret_cast< LPLCMSICCPROFILE >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSetSaveToDisk" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + + + InErrorFlag = 0; + _cmsSetSaveToDisk(arg1,(char const *)arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsSetSaveToMemory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLCMSICCPROFILE arg1 = (LPLCMSICCPROFILE) 0 ; + LPVOID arg2 = (LPVOID) 0 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsSetSaveToMemory",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_iccprofile_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsSetSaveToMemory" "', argument " "1"" of type '" "LPLCMSICCPROFILE""'"); + } + arg1 = reinterpret_cast< LPLCMSICCPROFILE >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsSetSaveToMemory" "', argument " "2"" of type '" "LPVOID""'"); + } + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_cmsSetSaveToMemory" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + + + InErrorFlag = 0; + _cmsSetSaveToMemory(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InputFormat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_InputFormat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InputFormat_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_InputFormat_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->InputFormat = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InputFormat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_InputFormat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InputFormat_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (DWORD) ((arg1)->InputFormat); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutputFormat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_OutputFormat_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutputFormat_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_OutputFormat_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->OutputFormat = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutputFormat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_OutputFormat_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutputFormat_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (DWORD) ((arg1)->OutputFormat); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_StrideIn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_StrideIn_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_StrideIn_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_StrideIn_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->StrideIn = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_StrideIn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_StrideIn_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_StrideIn_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (DWORD) ((arg1)->StrideIn); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_StrideOut_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_StrideOut_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_StrideOut_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_StrideOut_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->StrideOut = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_StrideOut_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_StrideOut_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_StrideOut_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (DWORD) ((arg1)->StrideOut); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Intent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Intent_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Intent_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_Intent_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Intent = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Intent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Intent_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Intent_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->Intent); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ProofIntent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_ProofIntent_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ProofIntent_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_ProofIntent_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->ProofIntent = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ProofIntent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_ProofIntent_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ProofIntent_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->ProofIntent); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_DoGamutCheck_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_DoGamutCheck_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_DoGamutCheck_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_DoGamutCheck_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->DoGamutCheck = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_DoGamutCheck_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_DoGamutCheck_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_DoGamutCheck_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->DoGamutCheck); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InputProfile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_InputProfile_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InputProfile_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_InputProfile_set" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + if (arg1) (arg1)->InputProfile = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InputProfile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_InputProfile_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InputProfile_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (cmsHPROFILE) ((arg1)->InputProfile); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutputProfile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_OutputProfile_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutputProfile_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_OutputProfile_set" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + if (arg1) (arg1)->OutputProfile = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutputProfile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_OutputProfile_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutputProfile_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (cmsHPROFILE) ((arg1)->OutputProfile); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_PreviewProfile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_PreviewProfile_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_PreviewProfile_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_PreviewProfile_set" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + if (arg1) (arg1)->PreviewProfile = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_PreviewProfile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + cmsHPROFILE result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_PreviewProfile_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_PreviewProfile_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (cmsHPROFILE) ((arg1)->PreviewProfile); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_EntryColorSpace_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + icColorSpaceSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_EntryColorSpace_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_EntryColorSpace_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_EntryColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_EntryColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->EntryColorSpace = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_EntryColorSpace_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_EntryColorSpace_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_EntryColorSpace_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->EntryColorSpace); + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ExitColorSpace_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + icColorSpaceSignature arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_ExitColorSpace_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ExitColorSpace_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_ExitColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_ExitColorSpace_set" "', argument " "2"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->ExitColorSpace = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ExitColorSpace_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + icColorSpaceSignature result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_ExitColorSpace_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ExitColorSpace_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->ExitColorSpace); + resultobj = SWIG_NewPointerObj((new icColorSpaceSignature(static_cast< const icColorSpaceSignature& >(result))), SWIGTYPE_p_icColorSpaceSignature, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_dwOriginalFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_dwOriginalFlags_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_dwOriginalFlags_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_dwOriginalFlags_set" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + if (arg1) (arg1)->dwOriginalFlags = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_dwOriginalFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + DWORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_dwOriginalFlags_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_dwOriginalFlags_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (DWORD) ((arg1)->dwOriginalFlags); + resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_m1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_m1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_m1_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_m1_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->m1 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_m1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_m1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_m1_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WMAT3 *)& ((arg1)->m1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_m2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WMAT3 *arg2 = (WMAT3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_m2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_m2_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WMAT3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_m2_set" "', argument " "2"" of type '" "WMAT3 *""'"); + } + arg2 = reinterpret_cast< WMAT3 * >(argp2); + if (arg1) (arg1)->m2 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_m2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WMAT3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_m2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_m2_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WMAT3 *)& ((arg1)->m2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WMAT3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_of1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WVEC3 *arg2 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_of1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_of1_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_of1_set" "', argument " "2"" of type '" "WVEC3 *""'"); + } + arg2 = reinterpret_cast< WVEC3 * >(argp2); + if (arg1) (arg1)->of1 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_of1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_of1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_of1_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WVEC3 *)& ((arg1)->of1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_of2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WVEC3 *arg2 = (WVEC3 *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_of2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_of2_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_WVEC3, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_of2_set" "', argument " "2"" of type '" "WVEC3 *""'"); + } + arg2 = reinterpret_cast< WVEC3 * >(argp2); + if (arg1) (arg1)->of2 = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_of2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WVEC3 *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_of2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_of2_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WVEC3 *)& ((arg1)->of2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_WVEC3, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_xform_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsCOLORCALLBACKFN arg2 = (_cmsCOLORCALLBACKFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_xform_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_xform_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_xform_set" "', argument " "2"" of type '" "_cmsCOLORCALLBACKFN""'"); + } + } + if (arg1) (arg1)->xform = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_xform_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsCOLORCALLBACKFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_xform_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_xform_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsCOLORCALLBACKFN) ((arg1)->xform); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_FromInput_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsFIXFN arg2 = (_cmsFIXFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_FromInput_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_FromInput_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_FromInput_set" "', argument " "2"" of type '" "_cmsFIXFN""'"); + } + } + if (arg1) (arg1)->FromInput = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_FromInput_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsFIXFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_FromInput_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_FromInput_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsFIXFN) ((arg1)->FromInput); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_FromDevice_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsTRANSFN arg2 = (_cmsTRANSFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_FromDevice_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_FromDevice_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_FromDevice_set" "', argument " "2"" of type '" "_cmsTRANSFN""'"); + } + } + if (arg1) (arg1)->FromDevice = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_FromDevice_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsTRANSFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_FromDevice_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_FromDevice_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsTRANSFN) ((arg1)->FromDevice); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Stage1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsADJFN arg2 = (_cmsADJFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Stage1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Stage1_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_Stage1_set" "', argument " "2"" of type '" "_cmsADJFN""'"); + } + } + if (arg1) (arg1)->Stage1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Stage1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsADJFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Stage1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Stage1_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsADJFN) ((arg1)->Stage1); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Stage2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsADJFN arg2 = (_cmsADJFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Stage2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Stage2_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_Stage2_set" "', argument " "2"" of type '" "_cmsADJFN""'"); + } + } + if (arg1) (arg1)->Stage2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Stage2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsADJFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Stage2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Stage2_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsADJFN) ((arg1)->Stage2); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ToDevice_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsTRANSFN arg2 = (_cmsTRANSFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_ToDevice_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ToDevice_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_ToDevice_set" "', argument " "2"" of type '" "_cmsTRANSFN""'"); + } + } + if (arg1) (arg1)->ToDevice = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ToDevice_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsTRANSFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_ToDevice_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ToDevice_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsTRANSFN) ((arg1)->ToDevice); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ToOutput_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + _cmsFIXFN arg2 = (_cmsFIXFN) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_ToOutput_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ToOutput_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_cmsTRANSFORM_ToOutput_set" "', argument " "2"" of type '" "_cmsFIXFN""'"); + } + } + if (arg1) (arg1)->ToOutput = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_ToOutput_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + _cmsFIXFN result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_ToOutput_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_ToOutput_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (_cmsFIXFN) ((arg1)->ToOutput); + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Device2PCS_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Device2PCS_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Device2PCS_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_Device2PCS_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->Device2PCS = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Device2PCS_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Device2PCS_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Device2PCS_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->Device2PCS); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_PCS2Device_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_PCS2Device_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_PCS2Device_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_PCS2Device_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->PCS2Device = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_PCS2Device_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_PCS2Device_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_PCS2Device_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->PCS2Device); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Gamut_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Gamut_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Gamut_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_Gamut_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->Gamut = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Gamut_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Gamut_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Gamut_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->Gamut); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Preview_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Preview_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Preview_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_Preview_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->Preview = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Preview_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Preview_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Preview_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->Preview); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_DeviceLink_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_DeviceLink_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_DeviceLink_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_DeviceLink_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->DeviceLink = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_DeviceLink_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_DeviceLink_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_DeviceLink_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->DeviceLink); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_GamutCheck_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPLUT arg2 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_GamutCheck_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_GamutCheck_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__lcms_LUT_struc, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_GamutCheck_set" "', argument " "2"" of type '" "LPLUT""'"); + } + arg2 = reinterpret_cast< LPLUT >(argp2); + if (arg1) (arg1)->GamutCheck = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_GamutCheck_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_GamutCheck_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_GamutCheck_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LPLUT) ((arg1)->GamutCheck); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InMatShaper_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPMATSHAPER arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_InMatShaper_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InMatShaper_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPMATSHAPER, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_InMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_InMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } else { + LPMATSHAPER * temp = reinterpret_cast< LPMATSHAPER * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->InMatShaper = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_InMatShaper_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_InMatShaper_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_InMatShaper_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->InMatShaper); + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutMatShaper_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPMATSHAPER arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_OutMatShaper_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutMatShaper_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPMATSHAPER, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_OutMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_OutMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } else { + LPMATSHAPER * temp = reinterpret_cast< LPMATSHAPER * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->OutMatShaper = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_OutMatShaper_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_OutMatShaper_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_OutMatShaper_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->OutMatShaper); + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_SmeltMatShaper_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPMATSHAPER arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_SmeltMatShaper_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_SmeltMatShaper_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPMATSHAPER, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_SmeltMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_SmeltMatShaper_set" "', argument " "2"" of type '" "LPMATSHAPER""'"); + } else { + LPMATSHAPER * temp = reinterpret_cast< LPMATSHAPER * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->SmeltMatShaper = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_SmeltMatShaper_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPMATSHAPER result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_SmeltMatShaper_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_SmeltMatShaper_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->SmeltMatShaper); + resultobj = SWIG_NewPointerObj((new LPMATSHAPER(static_cast< const LPMATSHAPER& >(result))), SWIGTYPE_p_LPMATSHAPER, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Phase1_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase1_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_Phase1_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Phase1 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Phase1_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase1_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->Phase1); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Phase2_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase2_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_Phase2_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Phase2 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Phase2_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase2_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->Phase2); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_Phase3_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase3_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_Phase3_set" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + if (arg1) (arg1)->Phase3 = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_Phase3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_Phase3_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_Phase3_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (int) ((arg1)->Phase3); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_NamedColorList_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LPcmsNAMEDCOLORLIST arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_NamedColorList_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_NamedColorList_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + { + res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LPcmsNAMEDCOLORLIST, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_NamedColorList_set" "', argument " "2"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsTRANSFORM_NamedColorList_set" "', argument " "2"" of type '" "LPcmsNAMEDCOLORLIST""'"); + } else { + LPcmsNAMEDCOLORLIST * temp = reinterpret_cast< LPcmsNAMEDCOLORLIST * >(argp2); + arg2 = *temp; + if (SWIG_IsNewObj(res2)) delete temp; + } + } + if (arg1) (arg1)->NamedColorList = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_NamedColorList_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPcmsNAMEDCOLORLIST result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_NamedColorList_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_NamedColorList_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = ((arg1)->NamedColorList); + resultobj = SWIG_NewPointerObj((new LPcmsNAMEDCOLORLIST(static_cast< const LPcmsNAMEDCOLORLIST& >(result))), SWIGTYPE_p_LPcmsNAMEDCOLORLIST, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_lInputV4Lab_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LCMSBOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_lInputV4Lab_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_lInputV4Lab_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_lInputV4Lab_set" "', argument " "2"" of type '" "LCMSBOOL""'"); + } + arg2 = static_cast< LCMSBOOL >(val2); + if (arg1) (arg1)->lInputV4Lab = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_lInputV4Lab_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_lInputV4Lab_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_lInputV4Lab_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LCMSBOOL) ((arg1)->lInputV4Lab); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_lOutputV4Lab_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LCMSBOOL arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_lOutputV4Lab_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_lOutputV4Lab_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_lOutputV4Lab_set" "', argument " "2"" of type '" "LCMSBOOL""'"); + } + arg2 = static_cast< LCMSBOOL >(val2); + if (arg1) (arg1)->lOutputV4Lab = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_lOutputV4Lab_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_lOutputV4Lab_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_lOutputV4Lab_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LCMSBOOL) ((arg1)->lOutputV4Lab); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_CacheIn_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_CacheIn_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_CacheIn_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_CacheIn_set" "', argument " "2"" of type '" "WORD [16]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->CacheIn[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""CacheIn""' of type '""WORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_CacheIn_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_CacheIn_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_CacheIn_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WORD *)(WORD *) ((arg1)->CacheIn); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_CacheOut_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + WORD *arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_CacheOut_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_CacheOut_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsTRANSFORM_CacheOut_set" "', argument " "2"" of type '" "WORD [16]""'"); + } + arg2 = reinterpret_cast< WORD * >(argp2); + { + if (arg2) { + size_t ii = 0; + for (; ii < (size_t)16; ++ii) arg1->CacheOut[ii] = arg2[ii]; + } else { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""CacheOut""' of type '""WORD [16]""'"); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_CacheOut_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_CacheOut_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_CacheOut_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (WORD *)(WORD *) ((arg1)->CacheOut); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_AdaptationState_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + double arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + double val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_AdaptationState_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_AdaptationState_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_double(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_AdaptationState_set" "', argument " "2"" of type '" "double""'"); + } + arg2 = static_cast< double >(val2); + if (arg1) (arg1)->AdaptationState = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_AdaptationState_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_AdaptationState_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_AdaptationState_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (double) ((arg1)->AdaptationState); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_rwlock_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + LCMS_RWLOCK_T arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsTRANSFORM_rwlock_set",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_rwlock_set" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsTRANSFORM_rwlock_set" "', argument " "2"" of type '" "LCMS_RWLOCK_T""'"); + } + arg2 = static_cast< LCMS_RWLOCK_T >(val2); + if (arg1) (arg1)->rwlock = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsTRANSFORM_rwlock_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMS_RWLOCK_T result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsTRANSFORM_rwlock_get",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsTRANSFORM_rwlock_get" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + result = (LCMS_RWLOCK_T) ((arg1)->rwlock); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new__cmsTRANSFORM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new__cmsTRANSFORM")) SWIG_fail; + + + InErrorFlag = 0; + result = (_cmsTRANSFORM *)new _cmsTRANSFORM(); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__cmstransform_struct, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete__cmsTRANSFORM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _cmsTRANSFORM *arg1 = (_cmsTRANSFORM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete__cmsTRANSFORM",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__cmsTRANSFORM" "', argument " "1"" of type '" "_cmsTRANSFORM *""'"); + } + arg1 = reinterpret_cast< _cmsTRANSFORM * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_cmsTRANSFORM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p__cmstransform_struct, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap__cmsIdentifyInputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _LPcmsTRANSFORM arg1 = (_LPcmsTRANSFORM) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + _cmsFIXFN result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsIdentifyInputFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyInputFormat" "', argument " "1"" of type '" "_LPcmsTRANSFORM""'"); + } + arg1 = reinterpret_cast< _LPcmsTRANSFORM >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsIdentifyInputFormat" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (_cmsFIXFN)_cmsIdentifyInputFormat(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsIdentifyOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _LPcmsTRANSFORM arg1 = (_LPcmsTRANSFORM) 0 ; + DWORD arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + _cmsFIXFN result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsIdentifyOutputFormat",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsIdentifyOutputFormat" "', argument " "1"" of type '" "_LPcmsTRANSFORM""'"); + } + arg1 = reinterpret_cast< _LPcmsTRANSFORM >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsIdentifyOutputFormat" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (_cmsFIXFN)_cmsIdentifyOutputFormat(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsChooseCnvrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + LPcmsCIEXYZ arg3 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg4 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg5 = (LPcmsCIEXYZ) 0 ; + LPMAT3 arg6 = (LPMAT3) 0 ; + int arg7 ; + LPcmsCIEXYZ arg8 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg9 = (LPcmsCIEXYZ) 0 ; + LPcmsCIEXYZ arg10 = (LPcmsCIEXYZ) 0 ; + LPMAT3 arg11 = (LPMAT3) 0 ; + int arg12 ; + double arg13 ; + _cmsADJFN *arg14 = (_cmsADJFN *) 0 ; + LPWMAT3 arg15 ; + LPWVEC3 arg16 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + int val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; + int val12 ; + int ecode12 = 0 ; + double val13 ; + int ecode13 = 0 ; + void *argp14 = 0 ; + int res14 = 0 ; + void *argp15 ; + int res15 = 0 ; + void *argp16 ; + int res16 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + PyObject * obj6 = 0 ; + PyObject * obj7 = 0 ; + PyObject * obj8 = 0 ; + PyObject * obj9 = 0 ; + PyObject * obj10 = 0 ; + PyObject * obj11 = 0 ; + PyObject * obj12 = 0 ; + PyObject * obj13 = 0 ; + PyObject * obj14 = 0 ; + PyObject * obj15 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOOOO:cmsChooseCnvrt",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cmsChooseCnvrt" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmsChooseCnvrt" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cmsChooseCnvrt" "', argument " "3"" of type '" "LPcmsCIEXYZ""'"); + } + arg3 = reinterpret_cast< LPcmsCIEXYZ >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cmsChooseCnvrt" "', argument " "4"" of type '" "LPcmsCIEXYZ""'"); + } + arg4 = reinterpret_cast< LPcmsCIEXYZ >(argp4); + res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cmsChooseCnvrt" "', argument " "5"" of type '" "LPcmsCIEXYZ""'"); + } + arg5 = reinterpret_cast< LPcmsCIEXYZ >(argp5); + res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cmsChooseCnvrt" "', argument " "6"" of type '" "LPMAT3""'"); + } + arg6 = reinterpret_cast< LPMAT3 >(argp6); + ecode7 = SWIG_AsVal_int(obj6, &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cmsChooseCnvrt" "', argument " "7"" of type '" "int""'"); + } + arg7 = static_cast< int >(val7); + res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "cmsChooseCnvrt" "', argument " "8"" of type '" "LPcmsCIEXYZ""'"); + } + arg8 = reinterpret_cast< LPcmsCIEXYZ >(argp8); + res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "cmsChooseCnvrt" "', argument " "9"" of type '" "LPcmsCIEXYZ""'"); + } + arg9 = reinterpret_cast< LPcmsCIEXYZ >(argp9); + res10 = SWIG_ConvertPtr(obj9, &argp10,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "cmsChooseCnvrt" "', argument " "10"" of type '" "LPcmsCIEXYZ""'"); + } + arg10 = reinterpret_cast< LPcmsCIEXYZ >(argp10); + res11 = SWIG_ConvertPtr(obj10, &argp11,SWIGTYPE_p_MAT3, 0 | 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "cmsChooseCnvrt" "', argument " "11"" of type '" "LPMAT3""'"); + } + arg11 = reinterpret_cast< LPMAT3 >(argp11); + ecode12 = SWIG_AsVal_int(obj11, &val12); + if (!SWIG_IsOK(ecode12)) { + SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "cmsChooseCnvrt" "', argument " "12"" of type '" "int""'"); + } + arg12 = static_cast< int >(val12); + ecode13 = SWIG_AsVal_double(obj12, &val13); + if (!SWIG_IsOK(ecode13)) { + SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "cmsChooseCnvrt" "', argument " "13"" of type '" "double""'"); + } + arg13 = static_cast< double >(val13); + res14 = SWIG_ConvertPtr(obj13, &argp14,SWIGTYPE_p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, 0 | 0 ); + if (!SWIG_IsOK(res14)) { + SWIG_exception_fail(SWIG_ArgError(res14), "in method '" "cmsChooseCnvrt" "', argument " "14"" of type '" "_cmsADJFN *""'"); + } + arg14 = reinterpret_cast< _cmsADJFN * >(argp14); + { + res15 = SWIG_ConvertPtr(obj14, &argp15, SWIGTYPE_p_LPWMAT3, 0 | 0); + if (!SWIG_IsOK(res15)) { + SWIG_exception_fail(SWIG_ArgError(res15), "in method '" "cmsChooseCnvrt" "', argument " "15"" of type '" "LPWMAT3""'"); + } + if (!argp15) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsChooseCnvrt" "', argument " "15"" of type '" "LPWMAT3""'"); + } else { + LPWMAT3 * temp = reinterpret_cast< LPWMAT3 * >(argp15); + arg15 = *temp; + if (SWIG_IsNewObj(res15)) delete temp; + } + } + { + res16 = SWIG_ConvertPtr(obj15, &argp16, SWIGTYPE_p_LPWVEC3, 0 | 0); + if (!SWIG_IsOK(res16)) { + SWIG_exception_fail(SWIG_ArgError(res16), "in method '" "cmsChooseCnvrt" "', argument " "16"" of type '" "LPWVEC3""'"); + } + if (!argp16) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmsChooseCnvrt" "', argument " "16"" of type '" "LPWVEC3""'"); + } else { + LPWVEC3 * temp = reinterpret_cast< LPWVEC3 * >(argp16); + arg16 = *temp; + if (SWIG_IsNewObj(res16)) delete temp; + } + } + + + InErrorFlag = 0; + result = (int)cmsChooseCnvrt(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsEndPointsBySpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + WORD **arg2 = (WORD **) 0 ; + WORD **arg3 = (WORD **) 0 ; + int *arg4 = (int *) 0 ; + void *argp1 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:_cmsEndPointsBySpace",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsEndPointsBySpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsEndPointsBySpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_cmsEndPointsBySpace" "', argument " "2"" of type '" "WORD **""'"); + } + arg2 = reinterpret_cast< WORD ** >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_unsigned_short, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsEndPointsBySpace" "', argument " "3"" of type '" "WORD **""'"); + } + arg3 = reinterpret_cast< WORD ** >(argp3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "_cmsEndPointsBySpace" "', argument " "4"" of type '" "int *""'"); + } + arg4 = reinterpret_cast< int * >(argp4); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsEndPointsBySpace(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsWhiteBySpace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsWhiteBySpace",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsWhiteBySpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsWhiteBySpace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (WORD *)_cmsWhiteBySpace(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_short, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Clamp_L(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:Clamp_L",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clamp_L" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clamp_L" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (WORD)Clamp_L(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Clamp_ab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Fixed32 arg1 ; + void *argp1 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + WORD result; + + if (!PyArg_ParseTuple(args,(char *)"O:Clamp_ab",&obj0)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icInt32Number, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Clamp_ab" "', argument " "1"" of type '" "Fixed32""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Clamp_ab" "', argument " "1"" of type '" "Fixed32""'"); + } else { + Fixed32 * temp = reinterpret_cast< Fixed32 * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + + + InErrorFlag = 0; + result = (WORD)Clamp_ab(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_cmsDetectBlackPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPcmsCIEXYZ arg1 = (LPcmsCIEXYZ) 0 ; + cmsHPROFILE arg2 = (cmsHPROFILE) 0 ; + int arg3 ; + DWORD arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + int val3 ; + int ecode3 = 0 ; + unsigned long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:cmsDetectBlackPoint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cmsCIEXYZ, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmsDetectBlackPoint" "', argument " "1"" of type '" "LPcmsCIEXYZ""'"); + } + arg1 = reinterpret_cast< LPcmsCIEXYZ >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmsDetectBlackPoint" "', argument " "2"" of type '" "cmsHPROFILE""'"); + } + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cmsDetectBlackPoint" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cmsDetectBlackPoint" "', argument " "4"" of type '" "DWORD""'"); + } + arg4 = static_cast< DWORD >(val4); + + + InErrorFlag = 0; + result = (int)cmsDetectBlackPoint(arg1,arg2,arg3,arg4); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsReasonableGridpointsByColorspace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icColorSpaceSignature arg1 ; + DWORD arg2 ; + void *argp1 ; + int res1 = 0 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsReasonableGridpointsByColorspace",&obj0,&obj1)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_icColorSpaceSignature, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsReasonableGridpointsByColorspace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_cmsReasonableGridpointsByColorspace" "', argument " "1"" of type '" "icColorSpaceSignature""'"); + } else { + icColorSpaceSignature * temp = reinterpret_cast< icColorSpaceSignature * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsReasonableGridpointsByColorspace" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (int)_cmsReasonableGridpointsByColorspace(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsPrecalculateDeviceLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsPrecalculateDeviceLink",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsPrecalculateDeviceLink" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsPrecalculateDeviceLink" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (LPLUT)_cmsPrecalculateDeviceLink(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsPrecalculateBlackPreservingDeviceLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + DWORD arg2 ; + int res1 ; + unsigned long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsPrecalculateBlackPreservingDeviceLink",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsPrecalculateBlackPreservingDeviceLink" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsPrecalculateBlackPreservingDeviceLink" "', argument " "2"" of type '" "DWORD""'"); + } + arg2 = static_cast< DWORD >(val2); + + + InErrorFlag = 0; + result = (LPLUT)_cmsPrecalculateBlackPreservingDeviceLink(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsPrecalculateGamutCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + int res1 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsPrecalculateGamutCheck",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsPrecalculateGamutCheck" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + + + InErrorFlag = 0; + result = (LPLUT)_cmsPrecalculateGamutCheck(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsFixWhiteMisalignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + _LPcmsTRANSFORM arg1 = (_LPcmsTRANSFORM) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsFixWhiteMisalignment",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__cmstransform_struct, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsFixWhiteMisalignment" "', argument " "1"" of type '" "_LPcmsTRANSFORM""'"); + } + arg1 = reinterpret_cast< _LPcmsTRANSFORM >(argp1); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsFixWhiteMisalignment(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsBlessLUT8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsBlessLUT8",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsBlessLUT8" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + + + InErrorFlag = 0; + result = (LPLUT)_cmsBlessLUT8(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsComputeGamutLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsComputeGamutLUT",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsComputeGamutLUT" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsComputeGamutLUT" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (LPLUT)_cmsComputeGamutLUT(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsComputeSoftProofLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHPROFILE arg1 = (cmsHPROFILE) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPLUT result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsComputeSoftProofLUT",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsComputeSoftProofLUT" "', argument " "1"" of type '" "cmsHPROFILE""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsComputeSoftProofLUT" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (LPLUT)_cmsComputeSoftProofLUT(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsComputePrelinearizationTablesFromXFORM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM *arg1 ; + int arg2 ; + LPLUT arg3 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:_cmsComputePrelinearizationTablesFromXFORM",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_void, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsComputePrelinearizationTablesFromXFORM" "', argument " "1"" of type '" "cmsHTRANSFORM []""'"); + } + arg1 = reinterpret_cast< cmsHTRANSFORM * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsComputePrelinearizationTablesFromXFORM" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_cmsComputePrelinearizationTablesFromXFORM" "', argument " "3"" of type '" "LPLUT""'"); + } + arg3 = reinterpret_cast< LPLUT >(argp3); + + + InErrorFlag = 0; + _cmsComputePrelinearizationTablesFromXFORM(arg1,arg2,arg3); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsBuildKToneCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + cmsHTRANSFORM arg1 = (cmsHTRANSFORM) 0 ; + int arg2 ; + int res1 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + LPGAMMATABLE result; + + if (!PyArg_ParseTuple(args,(char *)"OO:_cmsBuildKToneCurve",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsBuildKToneCurve" "', argument " "1"" of type '" "cmsHTRANSFORM""'"); + } + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_cmsBuildKToneCurve" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + + + InErrorFlag = 0; + result = (LPGAMMATABLE)_cmsBuildKToneCurve(arg1,arg2); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GAMMATABLE, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap__cmsValidateLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + LPLUT arg1 = (LPLUT) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + LCMSBOOL result; + + if (!PyArg_ParseTuple(args,(char *)"O:_cmsValidateLUT",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__lcms_LUT_struc, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cmsValidateLUT" "', argument " "1"" of type '" "LPLUT""'"); + } + arg1 = reinterpret_cast< LPLUT >(argp1); + + + InErrorFlag = 0; + result = (LCMSBOOL)_cmsValidateLUT(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_icTagSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + unsigned int arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + icTagSignature *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_icTagSignature",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_icTagSignature" "', argument " "1"" of type '" "unsigned int""'"); + } + arg1 = static_cast< unsigned int >(val1); + + + InErrorFlag = 0; + result = (icTagSignature *)new_icTagSignature(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_icTagSignature, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_icTagSignature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + icTagSignature *arg1 = (icTagSignature *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_icTagSignature",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_icTagSignature, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_icTagSignature" "', argument " "1"" of type '" "icTagSignature *""'"); + } + arg1 = reinterpret_cast< icTagSignature * >(argp1); + + + InErrorFlag = 0; + delete_icTagSignature(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *icTagSignature_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_icTagSignature, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_StrPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + StrPointer *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_StrPointer",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrPointer" "', argument " "1"" of type '" "char *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + + + InErrorFlag = 0; + result = (StrPointer *)new_StrPointer(arg1); + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StrPointer, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_StrPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + StrPointer *arg1 = (StrPointer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_StrPointer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StrPointer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrPointer" "', argument " "1"" of type '" "StrPointer *""'"); + } + arg1 = reinterpret_cast< StrPointer * >(argp1); + + + InErrorFlag = 0; + delete arg1; + if (InErrorFlag) SWIG_fail; + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *StrPointer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_StrPointer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +static PyMethodDef SwigMethods[] = { + { (char *)"COLORW_w_set", _wrap_COLORW_w_set, METH_VARARGS, NULL}, + { (char *)"COLORW_w_get", _wrap_COLORW_w_get, METH_VARARGS, NULL}, + { (char *)"new_COLORW", _wrap_new_COLORW, METH_VARARGS, NULL}, + { (char *)"COLORW___repr__", _wrap_COLORW___repr__, METH_VARARGS, NULL}, + { (char *)"COLORW___getitem__", _wrap_COLORW___getitem__, METH_VARARGS, NULL}, + { (char *)"COLORW___setitem__", _wrap_COLORW___setitem__, METH_VARARGS, NULL}, + { (char *)"delete_COLORW", _wrap_delete_COLORW, METH_VARARGS, NULL}, + { (char *)"COLORW_swigregister", COLORW_swigregister, METH_VARARGS, NULL}, + { (char *)"COLORB_b_set", _wrap_COLORB_b_set, METH_VARARGS, NULL}, + { (char *)"COLORB_b_get", _wrap_COLORB_b_get, METH_VARARGS, NULL}, + { (char *)"new_COLORB", _wrap_new_COLORB, METH_VARARGS, NULL}, + { (char *)"delete_COLORB", _wrap_delete_COLORB, METH_VARARGS, NULL}, + { (char *)"COLORB___repr__", _wrap_COLORB___repr__, METH_VARARGS, NULL}, + { (char *)"COLORB___getitem__", _wrap_COLORB___getitem__, METH_VARARGS, NULL}, + { (char *)"COLORB___setitem__", _wrap_COLORB___setitem__, METH_VARARGS, NULL}, + { (char *)"COLORB_swigregister", COLORB_swigregister, METH_VARARGS, NULL}, + { (char *)"IT8_hIT8_set", _wrap_IT8_hIT8_set, METH_VARARGS, NULL}, + { (char *)"IT8_hIT8_get", _wrap_IT8_hIT8_get, METH_VARARGS, NULL}, + { (char *)"new_IT8", _wrap_new_IT8, METH_VARARGS, NULL}, + { (char *)"delete_IT8", _wrap_delete_IT8, METH_VARARGS, NULL}, + { (char *)"IT8___repr__", _wrap_IT8___repr__, METH_VARARGS, NULL}, + { (char *)"IT8_saveToFile", _wrap_IT8_saveToFile, METH_VARARGS, NULL}, + { (char *)"IT8_tableCount", _wrap_IT8_tableCount, METH_VARARGS, NULL}, + { (char *)"IT8_setTable", _wrap_IT8_setTable, METH_VARARGS, NULL}, + { (char *)"IT8_getSheetType", _wrap_IT8_getSheetType, METH_VARARGS, NULL}, + { (char *)"IT8_setSheetType", _wrap_IT8_setSheetType, METH_VARARGS, NULL}, + { (char *)"IT8_addComment", _wrap_IT8_addComment, METH_VARARGS, NULL}, + { (char *)"IT8_setProperty", _wrap_IT8_setProperty, METH_VARARGS, NULL}, + { (char *)"IT8_setPropertyAsHex", _wrap_IT8_setPropertyAsHex, METH_VARARGS, NULL}, + { (char *)"IT8_setPropertyUncooked", _wrap_IT8_setPropertyUncooked, METH_VARARGS, NULL}, + { (char *)"IT8_getProperty", _wrap_IT8_getProperty, METH_VARARGS, NULL}, + { (char *)"IT8_getPropertyAsDbl", _wrap_IT8_getPropertyAsDbl, METH_VARARGS, NULL}, + { (char *)"IT8_getData", _wrap_IT8_getData, METH_VARARGS, NULL}, + { (char *)"IT8_getDataAsDbl", _wrap_IT8_getDataAsDbl, METH_VARARGS, NULL}, + { (char *)"IT8_setData", _wrap_IT8_setData, METH_VARARGS, NULL}, + { (char *)"IT8_setDataFormat", _wrap_IT8_setDataFormat, METH_VARARGS, NULL}, + { (char *)"IT8_getPatchName", _wrap_IT8_getPatchName, METH_VARARGS, NULL}, + { (char *)"IT8_getDataFormat", _wrap_IT8_getDataFormat, METH_VARARGS, NULL}, + { (char *)"IT8_enumDataFormat", _wrap_IT8_enumDataFormat, METH_VARARGS, NULL}, + { (char *)"IT8_enumProperties", _wrap_IT8_enumProperties, METH_VARARGS, NULL}, + { (char *)"IT8_setTableByLabel", _wrap_IT8_setTableByLabel, METH_VARARGS, NULL}, + { (char *)"IT8_getRow", _wrap_IT8_getRow, METH_VARARGS, NULL}, + { (char *)"IT8_getCol", _wrap_IT8_getCol, METH_VARARGS, NULL}, + { (char *)"IT8_swigregister", IT8_swigregister, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_gridPoints_set", _wrap_icCLutStruct_gridPoints_set, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_gridPoints_get", _wrap_icCLutStruct_gridPoints_get, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_prec_set", _wrap_icCLutStruct_prec_set, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_prec_get", _wrap_icCLutStruct_prec_get, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad1_set", _wrap_icCLutStruct_pad1_set, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad1_get", _wrap_icCLutStruct_pad1_get, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad2_set", _wrap_icCLutStruct_pad2_set, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad2_get", _wrap_icCLutStruct_pad2_get, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad3_set", _wrap_icCLutStruct_pad3_set, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_pad3_get", _wrap_icCLutStruct_pad3_get, METH_VARARGS, NULL}, + { (char *)"new_icCLutStruct", _wrap_new_icCLutStruct, METH_VARARGS, NULL}, + { (char *)"delete_icCLutStruct", _wrap_delete_icCLutStruct, METH_VARARGS, NULL}, + { (char *)"icCLutStruct_swigregister", icCLutStruct_swigregister, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_inputChan_set", _wrap_icLutAtoB_inputChan_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_inputChan_get", _wrap_icLutAtoB_inputChan_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_outputChan_set", _wrap_icLutAtoB_outputChan_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_outputChan_get", _wrap_icLutAtoB_outputChan_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_pad1_set", _wrap_icLutAtoB_pad1_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_pad1_get", _wrap_icLutAtoB_pad1_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_pad2_set", _wrap_icLutAtoB_pad2_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_pad2_get", _wrap_icLutAtoB_pad2_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetB_set", _wrap_icLutAtoB_offsetB_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetB_get", _wrap_icLutAtoB_offsetB_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetMat_set", _wrap_icLutAtoB_offsetMat_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetMat_get", _wrap_icLutAtoB_offsetMat_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetM_set", _wrap_icLutAtoB_offsetM_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetM_get", _wrap_icLutAtoB_offsetM_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetC_set", _wrap_icLutAtoB_offsetC_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetC_get", _wrap_icLutAtoB_offsetC_get, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetA_set", _wrap_icLutAtoB_offsetA_set, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_offsetA_get", _wrap_icLutAtoB_offsetA_get, METH_VARARGS, NULL}, + { (char *)"new_icLutAtoB", _wrap_new_icLutAtoB, METH_VARARGS, NULL}, + { (char *)"delete_icLutAtoB", _wrap_delete_icLutAtoB, METH_VARARGS, NULL}, + { (char *)"icLutAtoB_swigregister", icLutAtoB_swigregister, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_inputChan_set", _wrap_icLutBtoA_inputChan_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_inputChan_get", _wrap_icLutBtoA_inputChan_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_outputChan_set", _wrap_icLutBtoA_outputChan_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_outputChan_get", _wrap_icLutBtoA_outputChan_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_pad1_set", _wrap_icLutBtoA_pad1_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_pad1_get", _wrap_icLutBtoA_pad1_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_pad2_set", _wrap_icLutBtoA_pad2_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_pad2_get", _wrap_icLutBtoA_pad2_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetB_set", _wrap_icLutBtoA_offsetB_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetB_get", _wrap_icLutBtoA_offsetB_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetMat_set", _wrap_icLutBtoA_offsetMat_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetMat_get", _wrap_icLutBtoA_offsetMat_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetM_set", _wrap_icLutBtoA_offsetM_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetM_get", _wrap_icLutBtoA_offsetM_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetC_set", _wrap_icLutBtoA_offsetC_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetC_get", _wrap_icLutBtoA_offsetC_get, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetA_set", _wrap_icLutBtoA_offsetA_set, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_offsetA_get", _wrap_icLutBtoA_offsetA_get, METH_VARARGS, NULL}, + { (char *)"new_icLutBtoA", _wrap_new_icLutBtoA, METH_VARARGS, NULL}, + { (char *)"delete_icLutBtoA", _wrap_delete_icLutBtoA, METH_VARARGS, NULL}, + { (char *)"icLutBtoA_swigregister", icLutBtoA_swigregister, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Crc32_set", _wrap_LCMSGAMMAPARAMS_Crc32_set, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Crc32_get", _wrap_LCMSGAMMAPARAMS_Crc32_get, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Type_set", _wrap_LCMSGAMMAPARAMS_Type_set, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Type_get", _wrap_LCMSGAMMAPARAMS_Type_get, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Params_set", _wrap_LCMSGAMMAPARAMS_Params_set, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_Params_get", _wrap_LCMSGAMMAPARAMS_Params_get, METH_VARARGS, NULL}, + { (char *)"new_LCMSGAMMAPARAMS", _wrap_new_LCMSGAMMAPARAMS, METH_VARARGS, NULL}, + { (char *)"delete_LCMSGAMMAPARAMS", _wrap_delete_LCMSGAMMAPARAMS, METH_VARARGS, NULL}, + { (char *)"LCMSGAMMAPARAMS_swigregister", LCMSGAMMAPARAMS_swigregister, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_Seed_set", _wrap_GAMMATABLE_Seed_set, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_Seed_get", _wrap_GAMMATABLE_Seed_get, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_nEntries_set", _wrap_GAMMATABLE_nEntries_set, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_nEntries_get", _wrap_GAMMATABLE_nEntries_get, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_GammaTable_set", _wrap_GAMMATABLE_GammaTable_set, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_GammaTable_get", _wrap_GAMMATABLE_GammaTable_get, METH_VARARGS, NULL}, + { (char *)"new_GAMMATABLE", _wrap_new_GAMMATABLE, METH_VARARGS, NULL}, + { (char *)"delete_GAMMATABLE", _wrap_delete_GAMMATABLE, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE___repr__", _wrap_GAMMATABLE___repr__, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE___getitem__", _wrap_GAMMATABLE___getitem__, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE___setitem__", _wrap_GAMMATABLE___setitem__, METH_VARARGS, NULL}, + { (char *)"GAMMATABLE_swigregister", GAMMATABLE_swigregister, METH_VARARGS, NULL}, + { (char *)"VEC3_n_set", _wrap_VEC3_n_set, METH_VARARGS, NULL}, + { (char *)"VEC3_n_get", _wrap_VEC3_n_get, METH_VARARGS, NULL}, + { (char *)"new_VEC3", _wrap_new_VEC3, METH_VARARGS, NULL}, + { (char *)"delete_VEC3", _wrap_delete_VEC3, METH_VARARGS, NULL}, + { (char *)"VEC3___getitem__", _wrap_VEC3___getitem__, METH_VARARGS, NULL}, + { (char *)"VEC3___setitem__", _wrap_VEC3___setitem__, METH_VARARGS, NULL}, + { (char *)"VEC3___repr__", _wrap_VEC3___repr__, METH_VARARGS, NULL}, + { (char *)"VEC3_swigregister", VEC3_swigregister, METH_VARARGS, NULL}, + { (char *)"MAT3_v_set", _wrap_MAT3_v_set, METH_VARARGS, NULL}, + { (char *)"MAT3_v_get", _wrap_MAT3_v_get, METH_VARARGS, NULL}, + { (char *)"new_MAT3", _wrap_new_MAT3, METH_VARARGS, NULL}, + { (char *)"delete_MAT3", _wrap_delete_MAT3, METH_VARARGS, NULL}, + { (char *)"MAT3_swigregister", MAT3_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_X_set", _wrap_cmsCIEXYZ_X_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_X_get", _wrap_cmsCIEXYZ_X_get, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_Y_set", _wrap_cmsCIEXYZ_Y_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_Y_get", _wrap_cmsCIEXYZ_Y_get, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_Z_set", _wrap_cmsCIEXYZ_Z_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_Z_get", _wrap_cmsCIEXYZ_Z_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIEXYZ", _wrap_new_cmsCIEXYZ, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIEXYZ", _wrap_delete_cmsCIEXYZ, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ___repr__", _wrap_cmsCIEXYZ___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZ_swigregister", cmsCIEXYZ_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_x_set", _wrap_cmsCIExyY_x_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_x_get", _wrap_cmsCIExyY_x_get, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_y_set", _wrap_cmsCIExyY_y_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_y_get", _wrap_cmsCIExyY_y_get, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_Y_set", _wrap_cmsCIExyY_Y_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_Y_get", _wrap_cmsCIExyY_Y_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIExyY", _wrap_new_cmsCIExyY, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIExyY", _wrap_delete_cmsCIExyY, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY___repr__", _wrap_cmsCIExyY___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIExyY_swigregister", cmsCIExyY_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_L_set", _wrap_cmsCIELab_L_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_L_get", _wrap_cmsCIELab_L_get, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_a_set", _wrap_cmsCIELab_a_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_a_get", _wrap_cmsCIELab_a_get, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_b_set", _wrap_cmsCIELab_b_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_b_get", _wrap_cmsCIELab_b_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIELab", _wrap_new_cmsCIELab, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIELab", _wrap_delete_cmsCIELab, METH_VARARGS, NULL}, + { (char *)"cmsCIELab___repr__", _wrap_cmsCIELab___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIELab___cmp__", _wrap_cmsCIELab___cmp__, METH_VARARGS, NULL}, + { (char *)"cmsCIELab_swigregister", cmsCIELab_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_L_set", _wrap_cmsCIELCh_L_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_L_get", _wrap_cmsCIELCh_L_get, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_C_set", _wrap_cmsCIELCh_C_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_C_get", _wrap_cmsCIELCh_C_get, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_h_set", _wrap_cmsCIELCh_h_set, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_h_get", _wrap_cmsCIELCh_h_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIELCh", _wrap_new_cmsCIELCh, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIELCh", _wrap_delete_cmsCIELCh, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh___repr__", _wrap_cmsCIELCh___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIELCh_swigregister", cmsCIELCh_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsJCh_J_set", _wrap_cmsJCh_J_set, METH_VARARGS, NULL}, + { (char *)"cmsJCh_J_get", _wrap_cmsJCh_J_get, METH_VARARGS, NULL}, + { (char *)"cmsJCh_C_set", _wrap_cmsJCh_C_set, METH_VARARGS, NULL}, + { (char *)"cmsJCh_C_get", _wrap_cmsJCh_C_get, METH_VARARGS, NULL}, + { (char *)"cmsJCh_h_set", _wrap_cmsJCh_h_set, METH_VARARGS, NULL}, + { (char *)"cmsJCh_h_get", _wrap_cmsJCh_h_get, METH_VARARGS, NULL}, + { (char *)"new_cmsJCh", _wrap_new_cmsJCh, METH_VARARGS, NULL}, + { (char *)"delete_cmsJCh", _wrap_delete_cmsJCh, METH_VARARGS, NULL}, + { (char *)"cmsJCh___repr__", _wrap_cmsJCh___repr__, METH_VARARGS, NULL}, + { (char *)"cmsJCh_swigregister", cmsJCh_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Red_set", _wrap_cmsCIEXYZTRIPLE_Red_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Red_get", _wrap_cmsCIEXYZTRIPLE_Red_get, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Green_set", _wrap_cmsCIEXYZTRIPLE_Green_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Green_get", _wrap_cmsCIEXYZTRIPLE_Green_get, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Blue_set", _wrap_cmsCIEXYZTRIPLE_Blue_set, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_Blue_get", _wrap_cmsCIEXYZTRIPLE_Blue_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIEXYZTRIPLE", _wrap_new_cmsCIEXYZTRIPLE, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIEXYZTRIPLE", _wrap_delete_cmsCIEXYZTRIPLE, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE___repr__", _wrap_cmsCIEXYZTRIPLE___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIEXYZTRIPLE_swigregister", cmsCIEXYZTRIPLE_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Red_set", _wrap_cmsCIExyYTRIPLE_Red_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Red_get", _wrap_cmsCIExyYTRIPLE_Red_get, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Green_set", _wrap_cmsCIExyYTRIPLE_Green_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Green_get", _wrap_cmsCIExyYTRIPLE_Green_get, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Blue_set", _wrap_cmsCIExyYTRIPLE_Blue_set, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_Blue_get", _wrap_cmsCIExyYTRIPLE_Blue_get, METH_VARARGS, NULL}, + { (char *)"new_cmsCIExyYTRIPLE", _wrap_new_cmsCIExyYTRIPLE, METH_VARARGS, NULL}, + { (char *)"delete_cmsCIExyYTRIPLE", _wrap_delete_cmsCIExyYTRIPLE, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE___repr__", _wrap_cmsCIExyYTRIPLE___repr__, METH_VARARGS, NULL}, + { (char *)"cmsCIExyYTRIPLE_swigregister", cmsCIExyYTRIPLE_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsD50_XYZ", _wrap_cmsD50_XYZ, METH_VARARGS, NULL}, + { (char *)"cmsD50_xyY", _wrap_cmsD50_xyY, METH_VARARGS, NULL}, + { (char *)"cmsOpenProfileFromFile", _wrap_cmsOpenProfileFromFile, METH_VARARGS, NULL}, + { (char *)"cmsOpenProfileFromMem", _wrap_cmsOpenProfileFromMem, METH_VARARGS, NULL}, + { (char *)"cmsCloseProfile", _wrap_cmsCloseProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateRGBProfile", _wrap_cmsCreateRGBProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateGrayProfile", _wrap_cmsCreateGrayProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateLinearizationDeviceLink", _wrap_cmsCreateLinearizationDeviceLink, METH_VARARGS, NULL}, + { (char *)"cmsCreateInkLimitingDeviceLink", _wrap_cmsCreateInkLimitingDeviceLink, METH_VARARGS, NULL}, + { (char *)"cmsCreateLabProfile", _wrap_cmsCreateLabProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateLab4Profile", _wrap_cmsCreateLab4Profile, METH_VARARGS, NULL}, + { (char *)"cmsCreateXYZProfile", _wrap_cmsCreateXYZProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreate_sRGBProfile", _wrap_cmsCreate_sRGBProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateBCHSWabstractProfile", _wrap_cmsCreateBCHSWabstractProfile, METH_VARARGS, NULL}, + { (char *)"cmsCreateNULLProfile", _wrap_cmsCreateNULLProfile, METH_VARARGS, NULL}, + { (char *)"cmsXYZ2xyY", _wrap_cmsXYZ2xyY, METH_VARARGS, NULL}, + { (char *)"cmsxyY2XYZ", _wrap_cmsxyY2XYZ, METH_VARARGS, NULL}, + { (char *)"cmsXYZ2Lab", _wrap_cmsXYZ2Lab, METH_VARARGS, NULL}, + { (char *)"cmsLab2XYZ", _wrap_cmsLab2XYZ, METH_VARARGS, NULL}, + { (char *)"cmsLab2LCh", _wrap_cmsLab2LCh, METH_VARARGS, NULL}, + { (char *)"cmsLCh2Lab", _wrap_cmsLCh2Lab, METH_VARARGS, NULL}, + { (char *)"cmsDeltaE", _wrap_cmsDeltaE, METH_VARARGS, NULL}, + { (char *)"cmsCIE94DeltaE", _wrap_cmsCIE94DeltaE, METH_VARARGS, NULL}, + { (char *)"cmsBFDdeltaE", _wrap_cmsBFDdeltaE, METH_VARARGS, NULL}, + { (char *)"cmsCMCdeltaE", _wrap_cmsCMCdeltaE, METH_VARARGS, NULL}, + { (char *)"cmsCIE2000DeltaE", _wrap_cmsCIE2000DeltaE, METH_VARARGS, NULL}, + { (char *)"cmsClampLab", _wrap_cmsClampLab, METH_VARARGS, NULL}, + { (char *)"cmsWhitePointFromTemp", _wrap_cmsWhitePointFromTemp, METH_VARARGS, NULL}, + { (char *)"cmsAdaptToIlluminant", _wrap_cmsAdaptToIlluminant, METH_VARARGS, NULL}, + { (char *)"cmsBuildRGB2XYZtransferMatrix", _wrap_cmsBuildRGB2XYZtransferMatrix, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_whitePoint_set", _wrap_cmsViewingConditions_whitePoint_set, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_whitePoint_get", _wrap_cmsViewingConditions_whitePoint_get, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_Yb_set", _wrap_cmsViewingConditions_Yb_set, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_Yb_get", _wrap_cmsViewingConditions_Yb_get, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_La_set", _wrap_cmsViewingConditions_La_set, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_La_get", _wrap_cmsViewingConditions_La_get, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_surround_set", _wrap_cmsViewingConditions_surround_set, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_surround_get", _wrap_cmsViewingConditions_surround_get, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_D_value_set", _wrap_cmsViewingConditions_D_value_set, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_D_value_get", _wrap_cmsViewingConditions_D_value_get, METH_VARARGS, NULL}, + { (char *)"new_cmsViewingConditions", _wrap_new_cmsViewingConditions, METH_VARARGS, NULL}, + { (char *)"delete_cmsViewingConditions", _wrap_delete_cmsViewingConditions, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions___repr__", _wrap_cmsViewingConditions___repr__, METH_VARARGS, NULL}, + { (char *)"cmsViewingConditions_swigregister", cmsViewingConditions_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM97sInit", _wrap_cmsCIECAM97sInit, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM97sDone", _wrap_cmsCIECAM97sDone, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM97sForward", _wrap_cmsCIECAM97sForward, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM97sReverse", _wrap_cmsCIECAM97sReverse, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM02Init", _wrap_cmsCIECAM02Init, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM02Done", _wrap_cmsCIECAM02Done, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM02Forward", _wrap_cmsCIECAM02Forward, METH_VARARGS, NULL}, + { (char *)"cmsCIECAM02Reverse", _wrap_cmsCIECAM02Reverse, METH_VARARGS, NULL}, + { (char *)"cmsBuildGamma", _wrap_cmsBuildGamma, METH_VARARGS, NULL}, + { (char *)"cmsBuildParametricGamma", _wrap_cmsBuildParametricGamma, METH_VARARGS, NULL}, + { (char *)"cmsAllocGamma", _wrap_cmsAllocGamma, METH_VARARGS, NULL}, + { (char *)"cmsFreeGamma", _wrap_cmsFreeGamma, METH_VARARGS, NULL}, + { (char *)"cmsFreeGammaTriple", _wrap_cmsFreeGammaTriple, METH_VARARGS, NULL}, + { (char *)"cmsDupGamma", _wrap_cmsDupGamma, METH_VARARGS, NULL}, + { (char *)"cmsReverseGamma", _wrap_cmsReverseGamma, METH_VARARGS, NULL}, + { (char *)"cmsJoinGamma", _wrap_cmsJoinGamma, METH_VARARGS, NULL}, + { (char *)"cmsJoinGammaEx", _wrap_cmsJoinGammaEx, METH_VARARGS, NULL}, + { (char *)"cmsSmoothGamma", _wrap_cmsSmoothGamma, METH_VARARGS, NULL}, + { (char *)"cmsEstimateGamma", _wrap_cmsEstimateGamma, METH_VARARGS, NULL}, + { (char *)"cmsEstimateGammaEx", _wrap_cmsEstimateGammaEx, METH_VARARGS, NULL}, + { (char *)"cmsReadICCGamma", _wrap_cmsReadICCGamma, METH_VARARGS, NULL}, + { (char *)"cmsReadICCGammaReversed", _wrap_cmsReadICCGammaReversed, METH_VARARGS, NULL}, + { (char *)"cmsTakeMediaWhitePoint", _wrap_cmsTakeMediaWhitePoint, METH_VARARGS, NULL}, + { (char *)"cmsTakeMediaBlackPoint", _wrap_cmsTakeMediaBlackPoint, METH_VARARGS, NULL}, + { (char *)"cmsTakeIluminant", _wrap_cmsTakeIluminant, METH_VARARGS, NULL}, + { (char *)"cmsTakeColorants", _wrap_cmsTakeColorants, METH_VARARGS, NULL}, + { (char *)"cmsTakeHeaderFlags", _wrap_cmsTakeHeaderFlags, METH_VARARGS, NULL}, + { (char *)"cmsTakeHeaderAttributes", _wrap_cmsTakeHeaderAttributes, METH_VARARGS, NULL}, + { (char *)"cmsSetLanguage", _wrap_cmsSetLanguage, METH_VARARGS, NULL}, + { (char *)"cmsTakeProductName", _wrap_cmsTakeProductName, METH_VARARGS, NULL}, + { (char *)"cmsTakeProductDesc", _wrap_cmsTakeProductDesc, METH_VARARGS, NULL}, + { (char *)"cmsTakeProductInfo", _wrap_cmsTakeProductInfo, METH_VARARGS, NULL}, + { (char *)"cmsTakeManufacturer", _wrap_cmsTakeManufacturer, METH_VARARGS, NULL}, + { (char *)"cmsTakeModel", _wrap_cmsTakeModel, METH_VARARGS, NULL}, + { (char *)"cmsTakeCopyright", _wrap_cmsTakeCopyright, METH_VARARGS, NULL}, + { (char *)"cmsTakeProfileID", _wrap_cmsTakeProfileID, METH_VARARGS, NULL}, + { (char *)"cmsTakeCreationDateTime", _wrap_cmsTakeCreationDateTime, METH_VARARGS, NULL}, + { (char *)"cmsTakeCalibrationDateTime", _wrap_cmsTakeCalibrationDateTime, METH_VARARGS, NULL}, + { (char *)"cmsIsTag", _wrap_cmsIsTag, METH_VARARGS, NULL}, + { (char *)"cmsTakeRenderingIntent", _wrap_cmsTakeRenderingIntent, METH_VARARGS, NULL}, + { (char *)"cmsTakeCharTargetData", _wrap_cmsTakeCharTargetData, METH_VARARGS, NULL}, + { (char *)"cmsReadICCTextEx", _wrap_cmsReadICCTextEx, METH_VARARGS, NULL}, + { (char *)"cmsReadICCText", _wrap_cmsReadICCText, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_deviceMfg_set", _wrap_cmsPSEQDESC_deviceMfg_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_deviceMfg_get", _wrap_cmsPSEQDESC_deviceMfg_get, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_deviceModel_set", _wrap_cmsPSEQDESC_deviceModel_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_deviceModel_get", _wrap_cmsPSEQDESC_deviceModel_get, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_attributes_set", _wrap_cmsPSEQDESC_attributes_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_attributes_get", _wrap_cmsPSEQDESC_attributes_get, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_technology_set", _wrap_cmsPSEQDESC_technology_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_technology_get", _wrap_cmsPSEQDESC_technology_get, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_Manufacturer_set", _wrap_cmsPSEQDESC_Manufacturer_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_Manufacturer_get", _wrap_cmsPSEQDESC_Manufacturer_get, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_Model_set", _wrap_cmsPSEQDESC_Model_set, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_Model_get", _wrap_cmsPSEQDESC_Model_get, METH_VARARGS, NULL}, + { (char *)"new_cmsPSEQDESC", _wrap_new_cmsPSEQDESC, METH_VARARGS, NULL}, + { (char *)"delete_cmsPSEQDESC", _wrap_delete_cmsPSEQDESC, METH_VARARGS, NULL}, + { (char *)"cmsPSEQDESC_swigregister", cmsPSEQDESC_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsSEQ_n_set", _wrap_cmsSEQ_n_set, METH_VARARGS, NULL}, + { (char *)"cmsSEQ_n_get", _wrap_cmsSEQ_n_get, METH_VARARGS, NULL}, + { (char *)"cmsSEQ_seq_set", _wrap_cmsSEQ_seq_set, METH_VARARGS, NULL}, + { (char *)"cmsSEQ_seq_get", _wrap_cmsSEQ_seq_get, METH_VARARGS, NULL}, + { (char *)"new_cmsSEQ", _wrap_new_cmsSEQ, METH_VARARGS, NULL}, + { (char *)"delete_cmsSEQ", _wrap_delete_cmsSEQ, METH_VARARGS, NULL}, + { (char *)"cmsSEQ_swigregister", cmsSEQ_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsReadProfileSequenceDescription", _wrap_cmsReadProfileSequenceDescription, METH_VARARGS, NULL}, + { (char *)"cmsFreeProfileSequenceDescription", _wrap_cmsFreeProfileSequenceDescription, METH_VARARGS, NULL}, + { (char *)"_cmsICCcolorSpace", _wrap__cmsICCcolorSpace, METH_VARARGS, NULL}, + { (char *)"_cmsLCMScolorSpace", _wrap__cmsLCMScolorSpace, METH_VARARGS, NULL}, + { (char *)"_cmsChannelsOf", _wrap__cmsChannelsOf, METH_VARARGS, NULL}, + { (char *)"_cmsIsMatrixShaper", _wrap__cmsIsMatrixShaper, METH_VARARGS, NULL}, + { (char *)"cmsIsIntentSupported", _wrap_cmsIsIntentSupported, METH_VARARGS, NULL}, + { (char *)"cmsGetPCS", _wrap_cmsGetPCS, METH_VARARGS, NULL}, + { (char *)"cmsGetColorSpace", _wrap_cmsGetColorSpace, METH_VARARGS, NULL}, + { (char *)"cmsGetDeviceClass", _wrap_cmsGetDeviceClass, METH_VARARGS, NULL}, + { (char *)"cmsGetProfileICCversion", _wrap_cmsGetProfileICCversion, METH_VARARGS, NULL}, + { (char *)"cmsSetProfileICCversion", _wrap_cmsSetProfileICCversion, METH_VARARGS, NULL}, + { (char *)"cmsGetTagCount", _wrap_cmsGetTagCount, METH_VARARGS, NULL}, + { (char *)"cmsGetTagSignature", _wrap_cmsGetTagSignature, METH_VARARGS, NULL}, + { (char *)"cmsSetDeviceClass", _wrap_cmsSetDeviceClass, METH_VARARGS, NULL}, + { (char *)"cmsSetColorSpace", _wrap_cmsSetColorSpace, METH_VARARGS, NULL}, + { (char *)"cmsSetPCS", _wrap_cmsSetPCS, METH_VARARGS, NULL}, + { (char *)"cmsSetRenderingIntent", _wrap_cmsSetRenderingIntent, METH_VARARGS, NULL}, + { (char *)"cmsSetHeaderFlags", _wrap_cmsSetHeaderFlags, METH_VARARGS, NULL}, + { (char *)"cmsSetHeaderAttributes", _wrap_cmsSetHeaderAttributes, METH_VARARGS, NULL}, + { (char *)"cmsSetProfileID", _wrap_cmsSetProfileID, METH_VARARGS, NULL}, + { (char *)"cmsCreateTransform", _wrap_cmsCreateTransform, METH_VARARGS, NULL}, + { (char *)"cmsCreateProofingTransform", _wrap_cmsCreateProofingTransform, METH_VARARGS, NULL}, + { (char *)"cmsCreateMultiprofileTransform", _wrap_cmsCreateMultiprofileTransform, METH_VARARGS, NULL}, + { (char *)"cmsDeleteTransform", _wrap_cmsDeleteTransform, METH_VARARGS, NULL}, + { (char *)"cmsDoTransform", _wrap_cmsDoTransform, METH_VARARGS, NULL}, + { (char *)"cmsChangeBuffersFormat", _wrap_cmsChangeBuffersFormat, METH_VARARGS, NULL}, + { (char *)"cmsSetAlarmCodes", _wrap_cmsSetAlarmCodes, METH_VARARGS, NULL}, + { (char *)"cmsGetAlarmCodes", _wrap_cmsGetAlarmCodes, METH_VARARGS, NULL}, + { (char *)"cmsSetAdaptationState", _wrap_cmsSetAdaptationState, METH_VARARGS, NULL}, + { (char *)"cmsSetCMYKPreservationStrategy", _wrap_cmsSetCMYKPreservationStrategy, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_Name_set", _wrap_cmsNAMEDCOLOR_Name_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_Name_get", _wrap_cmsNAMEDCOLOR_Name_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_PCS_set", _wrap_cmsNAMEDCOLOR_PCS_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_PCS_get", _wrap_cmsNAMEDCOLOR_PCS_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_DeviceColorant_set", _wrap_cmsNAMEDCOLOR_DeviceColorant_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_DeviceColorant_get", _wrap_cmsNAMEDCOLOR_DeviceColorant_get, METH_VARARGS, NULL}, + { (char *)"new_cmsNAMEDCOLOR", _wrap_new_cmsNAMEDCOLOR, METH_VARARGS, NULL}, + { (char *)"delete_cmsNAMEDCOLOR", _wrap_delete_cmsNAMEDCOLOR, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLOR_swigregister", cmsNAMEDCOLOR_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_nColors_set", _wrap_cmsNAMEDCOLORLIST_nColors_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_nColors_get", _wrap_cmsNAMEDCOLORLIST_nColors_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Allocated_set", _wrap_cmsNAMEDCOLORLIST_Allocated_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Allocated_get", _wrap_cmsNAMEDCOLORLIST_Allocated_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_ColorantCount_set", _wrap_cmsNAMEDCOLORLIST_ColorantCount_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_ColorantCount_get", _wrap_cmsNAMEDCOLORLIST_ColorantCount_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Prefix_set", _wrap_cmsNAMEDCOLORLIST_Prefix_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Prefix_get", _wrap_cmsNAMEDCOLORLIST_Prefix_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Suffix_set", _wrap_cmsNAMEDCOLORLIST_Suffix_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_Suffix_get", _wrap_cmsNAMEDCOLORLIST_Suffix_get, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_List_set", _wrap_cmsNAMEDCOLORLIST_List_set, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_List_get", _wrap_cmsNAMEDCOLORLIST_List_get, METH_VARARGS, NULL}, + { (char *)"new_cmsNAMEDCOLORLIST", _wrap_new_cmsNAMEDCOLORLIST, METH_VARARGS, NULL}, + { (char *)"delete_cmsNAMEDCOLORLIST", _wrap_delete_cmsNAMEDCOLORLIST, METH_VARARGS, NULL}, + { (char *)"cmsNAMEDCOLORLIST_swigregister", cmsNAMEDCOLORLIST_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsNamedColorCount", _wrap_cmsNamedColorCount, METH_VARARGS, NULL}, + { (char *)"cmsNamedColorInfo", _wrap_cmsNamedColorInfo, METH_VARARGS, NULL}, + { (char *)"cmsNamedColorIndex", _wrap_cmsNamedColorIndex, METH_VARARGS, NULL}, + { (char *)"cmsReadColorantTable", _wrap_cmsReadColorantTable, METH_VARARGS, NULL}, + { (char *)"cmsAddTag", _wrap_cmsAddTag, METH_VARARGS, NULL}, + { (char *)"cmsTransform2DeviceLink", _wrap_cmsTransform2DeviceLink, METH_VARARGS, NULL}, + { (char *)"_cmsSetLUTdepth", _wrap__cmsSetLUTdepth, METH_VARARGS, NULL}, + { (char *)"cmsSaveProfile", _wrap_cmsSaveProfile, METH_VARARGS, NULL}, + { (char *)"_cmsSaveProfileToMem", _wrap__cmsSaveProfileToMem, METH_VARARGS, NULL}, + { (char *)"cmsGetPostScriptCSA", _wrap_cmsGetPostScriptCSA, METH_VARARGS, NULL}, + { (char *)"cmsGetPostScriptCRD", _wrap_cmsGetPostScriptCRD, METH_VARARGS, NULL}, + { (char *)"cmsGetPostScriptCRDEx", _wrap_cmsGetPostScriptCRDEx, METH_VARARGS, NULL}, + { (char *)"cmsErrorAction", _wrap_cmsErrorAction, METH_VARARGS, NULL}, + { (char *)"cmsSetErrorHandler", _wrap_cmsSetErrorHandler, METH_VARARGS, NULL}, + { (char *)"cmsAllocLUT", _wrap_cmsAllocLUT, METH_VARARGS, NULL}, + { (char *)"cmsAllocLinearTable", _wrap_cmsAllocLinearTable, METH_VARARGS, NULL}, + { (char *)"cmsAlloc3DGrid", _wrap_cmsAlloc3DGrid, METH_VARARGS, NULL}, + { (char *)"cmsSetMatrixLUT", _wrap_cmsSetMatrixLUT, METH_VARARGS, NULL}, + { (char *)"cmsSetMatrixLUT4", _wrap_cmsSetMatrixLUT4, METH_VARARGS, NULL}, + { (char *)"cmsFreeLUT", _wrap_cmsFreeLUT, METH_VARARGS, NULL}, + { (char *)"cmsEvalLUT", _wrap_cmsEvalLUT, METH_VARARGS, NULL}, + { (char *)"cmsEvalLUTreverse", _wrap_cmsEvalLUTreverse, METH_VARARGS, NULL}, + { (char *)"cmsReadICCLut", _wrap_cmsReadICCLut, METH_VARARGS, NULL}, + { (char *)"cmsDupLUT", _wrap_cmsDupLUT, METH_VARARGS, NULL}, + { (char *)"cmsSample3DGrid", _wrap_cmsSample3DGrid, METH_VARARGS, NULL}, + { (char *)"cmsSetUserFormatters", _wrap_cmsSetUserFormatters, METH_VARARGS, NULL}, + { (char *)"cmsGetUserFormatters", _wrap_cmsGetUserFormatters, METH_VARARGS, NULL}, + { (char *)"cmsIT8Alloc", _wrap_cmsIT8Alloc, METH_VARARGS, NULL}, + { (char *)"cmsIT8Free", _wrap_cmsIT8Free, METH_VARARGS, NULL}, + { (char *)"cmsIT8TableCount", _wrap_cmsIT8TableCount, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetTable", _wrap_cmsIT8SetTable, METH_VARARGS, NULL}, + { (char *)"cmsIT8LoadFromFile", _wrap_cmsIT8LoadFromFile, METH_VARARGS, NULL}, + { (char *)"cmsIT8LoadFromMem", _wrap_cmsIT8LoadFromMem, METH_VARARGS, NULL}, + { (char *)"cmsIT8SaveToFile", _wrap_cmsIT8SaveToFile, METH_VARARGS, NULL}, + { (char *)"cmsIT8SaveToMem", _wrap_cmsIT8SaveToMem, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetSheetType", _wrap_cmsIT8GetSheetType, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetSheetType", _wrap_cmsIT8SetSheetType, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetComment", _wrap_cmsIT8SetComment, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetPropertyStr", _wrap_cmsIT8SetPropertyStr, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetPropertyDbl", _wrap_cmsIT8SetPropertyDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetPropertyHex", _wrap_cmsIT8SetPropertyHex, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetPropertyMulti", _wrap_cmsIT8SetPropertyMulti, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetPropertyUncooked", _wrap_cmsIT8SetPropertyUncooked, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetProperty", _wrap_cmsIT8GetProperty, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetPropertyDbl", _wrap_cmsIT8GetPropertyDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetPropertyMulti", _wrap_cmsIT8GetPropertyMulti, METH_VARARGS, NULL}, + { (char *)"cmsIT8EnumProperties", _wrap_cmsIT8EnumProperties, METH_VARARGS, NULL}, + { (char *)"cmsIT8EnumPropertyMulti", _wrap_cmsIT8EnumPropertyMulti, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetDataRowCol", _wrap_cmsIT8GetDataRowCol, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetDataRowColDbl", _wrap_cmsIT8GetDataRowColDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetDataRowCol", _wrap_cmsIT8SetDataRowCol, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetDataRowColDbl", _wrap_cmsIT8SetDataRowColDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetData", _wrap_cmsIT8GetData, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetDataDbl", _wrap_cmsIT8GetDataDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetData", _wrap_cmsIT8SetData, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetDataDbl", _wrap_cmsIT8SetDataDbl, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetDataFormat", _wrap_cmsIT8GetDataFormat, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetDataFormat", _wrap_cmsIT8SetDataFormat, METH_VARARGS, NULL}, + { (char *)"cmsIT8EnumDataFormat", _wrap_cmsIT8EnumDataFormat, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetPatchName", _wrap_cmsIT8GetPatchName, METH_VARARGS, NULL}, + { (char *)"cmsIT8GetPatchByName", _wrap_cmsIT8GetPatchByName, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetTableByLabel", _wrap_cmsIT8SetTableByLabel, METH_VARARGS, NULL}, + { (char *)"cmsIT8SetIndexColumn", _wrap_cmsIT8SetIndexColumn, METH_VARARGS, NULL}, + { (char *)"cmsIT8DefineDblFormat", _wrap_cmsIT8DefineDblFormat, METH_VARARGS, NULL}, + { (char *)"cmsLabEncoded2Float", _wrap_cmsLabEncoded2Float, METH_VARARGS, NULL}, + { (char *)"cmsLabEncoded2Float4", _wrap_cmsLabEncoded2Float4, METH_VARARGS, NULL}, + { (char *)"cmsFloat2LabEncoded", _wrap_cmsFloat2LabEncoded, METH_VARARGS, NULL}, + { (char *)"cmsFloat2LabEncoded4", _wrap_cmsFloat2LabEncoded4, METH_VARARGS, NULL}, + { (char *)"cmsXYZEncoded2Float", _wrap_cmsXYZEncoded2Float, METH_VARARGS, NULL}, + { (char *)"cmsFloat2XYZEncoded", _wrap_cmsFloat2XYZEncoded, METH_VARARGS, NULL}, + { (char *)"_cmsAddTextTag", _wrap__cmsAddTextTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddXYZTag", _wrap__cmsAddXYZTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddLUTTag", _wrap__cmsAddLUTTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddGammaTag", _wrap__cmsAddGammaTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddChromaticityTag", _wrap__cmsAddChromaticityTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddSequenceDescriptionTag", _wrap__cmsAddSequenceDescriptionTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddNamedColorTag", _wrap__cmsAddNamedColorTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddDateTimeTag", _wrap__cmsAddDateTimeTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddColorantTableTag", _wrap__cmsAddColorantTableTag, METH_VARARGS, NULL}, + { (char *)"_cmsAddChromaticAdaptationTag", _wrap__cmsAddChromaticAdaptationTag, METH_VARARGS, NULL}, + { (char *)"_cmsQuickFloor", _wrap__cmsQuickFloor, METH_VARARGS, NULL}, + { (char *)"_cmsClampWord", _wrap__cmsClampWord, METH_VARARGS, NULL}, + { (char *)"_cmsMalloc", _wrap__cmsMalloc, METH_VARARGS, NULL}, + { (char *)"_cmsCalloc", _wrap__cmsCalloc, METH_VARARGS, NULL}, + { (char *)"_cmsFree", _wrap__cmsFree, METH_VARARGS, NULL}, + { (char *)"cmsSignalError", _wrap_cmsSignalError, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign16_a_set", _wrap__cmsTestAlign16_a_set, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign16_a_get", _wrap__cmsTestAlign16_a_get, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign16_b_set", _wrap__cmsTestAlign16_b_set, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign16_b_get", _wrap__cmsTestAlign16_b_get, METH_VARARGS, NULL}, + { (char *)"new__cmsTestAlign16", _wrap_new__cmsTestAlign16, METH_VARARGS, NULL}, + { (char *)"delete__cmsTestAlign16", _wrap_delete__cmsTestAlign16, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign16_swigregister", _cmsTestAlign16_swigregister, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign8_a_set", _wrap__cmsTestAlign8_a_set, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign8_a_get", _wrap__cmsTestAlign8_a_get, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign8_b_set", _wrap__cmsTestAlign8_b_set, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign8_b_get", _wrap__cmsTestAlign8_b_get, METH_VARARGS, NULL}, + { (char *)"new__cmsTestAlign8", _wrap_new__cmsTestAlign8, METH_VARARGS, NULL}, + { (char *)"delete__cmsTestAlign8", _wrap_delete__cmsTestAlign8, METH_VARARGS, NULL}, + { (char *)"_cmsTestAlign8_swigregister", _cmsTestAlign8_swigregister, METH_VARARGS, NULL}, + { (char *)"FixedMul", _wrap_FixedMul, METH_VARARGS, NULL}, + { (char *)"FixedSquare", _wrap_FixedSquare, METH_VARARGS, NULL}, + { (char *)"ToFixedDomain", _wrap_ToFixedDomain, METH_VARARGS, NULL}, + { (char *)"FromFixedDomain", _wrap_FromFixedDomain, METH_VARARGS, NULL}, + { (char *)"FixedLERP", _wrap_FixedLERP, METH_VARARGS, NULL}, + { (char *)"FixedScale", _wrap_FixedScale, METH_VARARGS, NULL}, + { (char *)"WVEC3_n_set", _wrap_WVEC3_n_set, METH_VARARGS, NULL}, + { (char *)"WVEC3_n_get", _wrap_WVEC3_n_get, METH_VARARGS, NULL}, + { (char *)"new_WVEC3", _wrap_new_WVEC3, METH_VARARGS, NULL}, + { (char *)"delete_WVEC3", _wrap_delete_WVEC3, METH_VARARGS, NULL}, + { (char *)"WVEC3_swigregister", WVEC3_swigregister, METH_VARARGS, NULL}, + { (char *)"WMAT3_v_set", _wrap_WMAT3_v_set, METH_VARARGS, NULL}, + { (char *)"WMAT3_v_get", _wrap_WMAT3_v_get, METH_VARARGS, NULL}, + { (char *)"new_WMAT3", _wrap_new_WMAT3, METH_VARARGS, NULL}, + { (char *)"delete_WMAT3", _wrap_delete_WMAT3, METH_VARARGS, NULL}, + { (char *)"WMAT3_swigregister", WMAT3_swigregister, METH_VARARGS, NULL}, + { (char *)"VEC3init", _wrap_VEC3init, METH_VARARGS, NULL}, + { (char *)"VEC3initF", _wrap_VEC3initF, METH_VARARGS, NULL}, + { (char *)"VEC3toFix", _wrap_VEC3toFix, METH_VARARGS, NULL}, + { (char *)"VEC3fromFix", _wrap_VEC3fromFix, METH_VARARGS, NULL}, + { (char *)"VEC3scaleFix", _wrap_VEC3scaleFix, METH_VARARGS, NULL}, + { (char *)"VEC3swap", _wrap_VEC3swap, METH_VARARGS, NULL}, + { (char *)"VEC3divK", _wrap_VEC3divK, METH_VARARGS, NULL}, + { (char *)"VEC3perK", _wrap_VEC3perK, METH_VARARGS, NULL}, + { (char *)"VEC3minus", _wrap_VEC3minus, METH_VARARGS, NULL}, + { (char *)"VEC3perComp", _wrap_VEC3perComp, METH_VARARGS, NULL}, + { (char *)"VEC3equal", _wrap_VEC3equal, METH_VARARGS, NULL}, + { (char *)"VEC3equalF", _wrap_VEC3equalF, METH_VARARGS, NULL}, + { (char *)"VEC3scaleAndCut", _wrap_VEC3scaleAndCut, METH_VARARGS, NULL}, + { (char *)"VEC3cross", _wrap_VEC3cross, METH_VARARGS, NULL}, + { (char *)"VEC3saturate", _wrap_VEC3saturate, METH_VARARGS, NULL}, + { (char *)"VEC3distance", _wrap_VEC3distance, METH_VARARGS, NULL}, + { (char *)"VEC3length", _wrap_VEC3length, METH_VARARGS, NULL}, + { (char *)"MAT3identity", _wrap_MAT3identity, METH_VARARGS, NULL}, + { (char *)"MAT3per", _wrap_MAT3per, METH_VARARGS, NULL}, + { (char *)"MAT3perK", _wrap_MAT3perK, METH_VARARGS, NULL}, + { (char *)"MAT3inverse", _wrap_MAT3inverse, METH_VARARGS, NULL}, + { (char *)"MAT3solve", _wrap_MAT3solve, METH_VARARGS, NULL}, + { (char *)"MAT3det", _wrap_MAT3det, METH_VARARGS, NULL}, + { (char *)"MAT3eval", _wrap_MAT3eval, METH_VARARGS, NULL}, + { (char *)"MAT3toFix", _wrap_MAT3toFix, METH_VARARGS, NULL}, + { (char *)"MAT3fromFix", _wrap_MAT3fromFix, METH_VARARGS, NULL}, + { (char *)"MAT3evalW", _wrap_MAT3evalW, METH_VARARGS, NULL}, + { (char *)"MAT3isIdentity", _wrap_MAT3isIdentity, METH_VARARGS, NULL}, + { (char *)"MAT3scaleAndCut", _wrap_MAT3scaleAndCut, METH_VARARGS, NULL}, + { (char *)"cmsIsLinear", _wrap_cmsIsLinear, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_X0_set", _wrap_L8PARAMS_X0_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_X0_get", _wrap_L8PARAMS_X0_get, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_Y0_set", _wrap_L8PARAMS_Y0_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_Y0_get", _wrap_L8PARAMS_Y0_get, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_Z0_set", _wrap_L8PARAMS_Z0_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_Z0_get", _wrap_L8PARAMS_Z0_get, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_rx_set", _wrap_L8PARAMS_rx_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_rx_get", _wrap_L8PARAMS_rx_get, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_ry_set", _wrap_L8PARAMS_ry_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_ry_get", _wrap_L8PARAMS_ry_get, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_rz_set", _wrap_L8PARAMS_rz_set, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_rz_get", _wrap_L8PARAMS_rz_get, METH_VARARGS, NULL}, + { (char *)"new_L8PARAMS", _wrap_new_L8PARAMS, METH_VARARGS, NULL}, + { (char *)"delete_L8PARAMS", _wrap_delete_L8PARAMS, METH_VARARGS, NULL}, + { (char *)"L8PARAMS_swigregister", L8PARAMS_swigregister, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nSamples_set", _wrap_L16PARAMS_nSamples_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nSamples_get", _wrap_L16PARAMS_nSamples_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nInputs_set", _wrap_L16PARAMS_nInputs_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nInputs_get", _wrap_L16PARAMS_nInputs_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nOutputs_set", _wrap_L16PARAMS_nOutputs_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_nOutputs_get", _wrap_L16PARAMS_nOutputs_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_Domain_set", _wrap_L16PARAMS_Domain_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_Domain_get", _wrap_L16PARAMS_Domain_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta1_set", _wrap_L16PARAMS_opta1_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta1_get", _wrap_L16PARAMS_opta1_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta2_set", _wrap_L16PARAMS_opta2_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta2_get", _wrap_L16PARAMS_opta2_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta3_set", _wrap_L16PARAMS_opta3_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta3_get", _wrap_L16PARAMS_opta3_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta4_set", _wrap_L16PARAMS_opta4_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta4_get", _wrap_L16PARAMS_opta4_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta5_set", _wrap_L16PARAMS_opta5_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta5_get", _wrap_L16PARAMS_opta5_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta6_set", _wrap_L16PARAMS_opta6_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta6_get", _wrap_L16PARAMS_opta6_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta7_set", _wrap_L16PARAMS_opta7_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta7_get", _wrap_L16PARAMS_opta7_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta8_set", _wrap_L16PARAMS_opta8_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_opta8_get", _wrap_L16PARAMS_opta8_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_Interp3D_set", _wrap_L16PARAMS_Interp3D_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_Interp3D_get", _wrap_L16PARAMS_Interp3D_get, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_p8_set", _wrap_L16PARAMS_p8_set, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_p8_get", _wrap_L16PARAMS_p8_get, METH_VARARGS, NULL}, + { (char *)"new_L16PARAMS", _wrap_new_L16PARAMS, METH_VARARGS, NULL}, + { (char *)"delete_L16PARAMS", _wrap_delete_L16PARAMS, METH_VARARGS, NULL}, + { (char *)"L16PARAMS_swigregister", L16PARAMS_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsCalcL16Params", _wrap_cmsCalcL16Params, METH_VARARGS, NULL}, + { (char *)"cmsCalcCLUT16Params", _wrap_cmsCalcCLUT16Params, METH_VARARGS, NULL}, + { (char *)"cmsCalcCLUT16ParamsEx", _wrap_cmsCalcCLUT16ParamsEx, METH_VARARGS, NULL}, + { (char *)"cmsLinearInterpLUT16", _wrap_cmsLinearInterpLUT16, METH_VARARGS, NULL}, + { (char *)"cmsLinearInterpFixed", _wrap_cmsLinearInterpFixed, METH_VARARGS, NULL}, + { (char *)"cmsReverseLinearInterpLUT16", _wrap_cmsReverseLinearInterpLUT16, METH_VARARGS, NULL}, + { (char *)"cmsTrilinearInterp16", _wrap_cmsTrilinearInterp16, METH_VARARGS, NULL}, + { (char *)"cmsTetrahedralInterp16", _wrap_cmsTetrahedralInterp16, METH_VARARGS, NULL}, + { (char *)"cmsTetrahedralInterp8", _wrap_cmsTetrahedralInterp8, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_wFlags_set", _wrap__lcms_LUT_struc_wFlags_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_wFlags_get", _wrap__lcms_LUT_struc_wFlags_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Matrix_set", _wrap__lcms_LUT_struc_Matrix_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Matrix_get", _wrap__lcms_LUT_struc_Matrix_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_InputChan_set", _wrap__lcms_LUT_struc_InputChan_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_InputChan_get", _wrap__lcms_LUT_struc_InputChan_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_OutputChan_set", _wrap__lcms_LUT_struc_OutputChan_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_OutputChan_get", _wrap__lcms_LUT_struc_OutputChan_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_InputEntries_set", _wrap__lcms_LUT_struc_InputEntries_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_InputEntries_get", _wrap__lcms_LUT_struc_InputEntries_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_OutputEntries_set", _wrap__lcms_LUT_struc_OutputEntries_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_OutputEntries_get", _wrap__lcms_LUT_struc_OutputEntries_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_cLutPoints_set", _wrap__lcms_LUT_struc_cLutPoints_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_cLutPoints_get", _wrap__lcms_LUT_struc_cLutPoints_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L1_set", _wrap__lcms_LUT_struc_L1_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L1_get", _wrap__lcms_LUT_struc_L1_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L2_set", _wrap__lcms_LUT_struc_L2_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L2_get", _wrap__lcms_LUT_struc_L2_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_T_set", _wrap__lcms_LUT_struc_T_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_T_get", _wrap__lcms_LUT_struc_T_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Tsize_set", _wrap__lcms_LUT_struc_Tsize_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Tsize_get", _wrap__lcms_LUT_struc_Tsize_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_In16params_set", _wrap__lcms_LUT_struc_In16params_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_In16params_get", _wrap__lcms_LUT_struc_In16params_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Out16params_set", _wrap__lcms_LUT_struc_Out16params_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Out16params_get", _wrap__lcms_LUT_struc_Out16params_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_CLut16params_set", _wrap__lcms_LUT_struc_CLut16params_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_CLut16params_get", _wrap__lcms_LUT_struc_CLut16params_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Intent_set", _wrap__lcms_LUT_struc_Intent_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Intent_get", _wrap__lcms_LUT_struc_Intent_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Mat3_set", _wrap__lcms_LUT_struc_Mat3_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Mat3_get", _wrap__lcms_LUT_struc_Mat3_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Ofs3_set", _wrap__lcms_LUT_struc_Ofs3_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Ofs3_get", _wrap__lcms_LUT_struc_Ofs3_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3_set", _wrap__lcms_LUT_struc_L3_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3_get", _wrap__lcms_LUT_struc_L3_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3params_set", _wrap__lcms_LUT_struc_L3params_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3params_get", _wrap__lcms_LUT_struc_L3params_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3Entries_set", _wrap__lcms_LUT_struc_L3Entries_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L3Entries_get", _wrap__lcms_LUT_struc_L3Entries_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Mat4_set", _wrap__lcms_LUT_struc_Mat4_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Mat4_get", _wrap__lcms_LUT_struc_Mat4_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Ofs4_set", _wrap__lcms_LUT_struc_Ofs4_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_Ofs4_get", _wrap__lcms_LUT_struc_Ofs4_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4_set", _wrap__lcms_LUT_struc_L4_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4_get", _wrap__lcms_LUT_struc_L4_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4params_set", _wrap__lcms_LUT_struc_L4params_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4params_get", _wrap__lcms_LUT_struc_L4params_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4Entries_set", _wrap__lcms_LUT_struc_L4Entries_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_L4Entries_get", _wrap__lcms_LUT_struc_L4Entries_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_FixGrayAxes_set", _wrap__lcms_LUT_struc_FixGrayAxes_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_FixGrayAxes_get", _wrap__lcms_LUT_struc_FixGrayAxes_get, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_LCurvesSeed_set", _wrap__lcms_LUT_struc_LCurvesSeed_set, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_LCurvesSeed_get", _wrap__lcms_LUT_struc_LCurvesSeed_get, METH_VARARGS, NULL}, + { (char *)"new__lcms_LUT_struc", _wrap_new__lcms_LUT_struc, METH_VARARGS, NULL}, + { (char *)"delete__lcms_LUT_struc", _wrap_delete__lcms_LUT_struc, METH_VARARGS, NULL}, + { (char *)"_lcms_LUT_struc_swigregister", _lcms_LUT_struc_swigregister, METH_VARARGS, NULL}, + { (char *)"_cmsSmoothEndpoints", _wrap__cmsSmoothEndpoints, METH_VARARGS, NULL}, + { (char *)"_cmsCrc32OfGammaTable", _wrap__cmsCrc32OfGammaTable, METH_VARARGS, NULL}, + { (char *)"cmsAllocSampledCurve", _wrap_cmsAllocSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsFreeSampledCurve", _wrap_cmsFreeSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsDupSampledCurve", _wrap_cmsDupSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsConvertGammaToSampledCurve", _wrap_cmsConvertGammaToSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsConvertSampledCurveToGamma", _wrap_cmsConvertSampledCurveToGamma, METH_VARARGS, NULL}, + { (char *)"cmsEndpointsOfSampledCurve", _wrap_cmsEndpointsOfSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsClampSampledCurve", _wrap_cmsClampSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsSmoothSampledCurve", _wrap_cmsSmoothSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsRescaleSampledCurve", _wrap_cmsRescaleSampledCurve, METH_VARARGS, NULL}, + { (char *)"cmsJoinSampledCurves", _wrap_cmsJoinSampledCurves, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_dwFlags_set", _wrap_MATSHAPER_dwFlags_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_dwFlags_get", _wrap_MATSHAPER_dwFlags_get, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_Matrix_set", _wrap_MATSHAPER_Matrix_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_Matrix_get", _wrap_MATSHAPER_Matrix_get, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_p16_set", _wrap_MATSHAPER_p16_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_p16_get", _wrap_MATSHAPER_p16_get, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_L_set", _wrap_MATSHAPER_L_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_L_get", _wrap_MATSHAPER_L_get, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_p2_16_set", _wrap_MATSHAPER_p2_16_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_p2_16_get", _wrap_MATSHAPER_p2_16_get, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_L2_set", _wrap_MATSHAPER_L2_set, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_L2_get", _wrap_MATSHAPER_L2_get, METH_VARARGS, NULL}, + { (char *)"new_MATSHAPER", _wrap_new_MATSHAPER, METH_VARARGS, NULL}, + { (char *)"delete_MATSHAPER", _wrap_delete_MATSHAPER, METH_VARARGS, NULL}, + { (char *)"MATSHAPER_swigregister", MATSHAPER_swigregister, METH_VARARGS, NULL}, + { (char *)"cmsAllocMatShaper", _wrap_cmsAllocMatShaper, METH_VARARGS, NULL}, + { (char *)"cmsAllocMatShaper2", _wrap_cmsAllocMatShaper2, METH_VARARGS, NULL}, + { (char *)"cmsFreeMatShaper", _wrap_cmsFreeMatShaper, METH_VARARGS, NULL}, + { (char *)"cmsEvalMatShaper", _wrap_cmsEvalMatShaper, METH_VARARGS, NULL}, + { (char *)"cmsReadICCMatrixRGB2XYZ", _wrap_cmsReadICCMatrixRGB2XYZ, METH_VARARGS, NULL}, + { (char *)"cmsBuildInputMatrixShaper", _wrap_cmsBuildInputMatrixShaper, METH_VARARGS, NULL}, + { (char *)"cmsBuildOutputMatrixShaper", _wrap_cmsBuildOutputMatrixShaper, METH_VARARGS, NULL}, + { (char *)"cmsAdaptationMatrix", _wrap_cmsAdaptationMatrix, METH_VARARGS, NULL}, + { (char *)"cmsAdaptMatrixToD50", _wrap_cmsAdaptMatrixToD50, METH_VARARGS, NULL}, + { (char *)"cmsAdaptMatrixFromD50", _wrap_cmsAdaptMatrixFromD50, METH_VARARGS, NULL}, + { (char *)"cmsReadChromaticAdaptationMatrix", _wrap_cmsReadChromaticAdaptationMatrix, METH_VARARGS, NULL}, + { (char *)"cmsXYZ2LabEncoded", _wrap_cmsXYZ2LabEncoded, METH_VARARGS, NULL}, + { (char *)"cmsLab2XYZEncoded", _wrap_cmsLab2XYZEncoded, METH_VARARGS, NULL}, + { (char *)"_cmsIdentifyWhitePoint", _wrap__cmsIdentifyWhitePoint, METH_VARARGS, NULL}, + { (char *)"_cmsQuantizeVal", _wrap__cmsQuantizeVal, METH_VARARGS, NULL}, + { (char *)"cmsAllocNamedColorList", _wrap_cmsAllocNamedColorList, METH_VARARGS, NULL}, + { (char *)"cmsReadICCnamedColorList", _wrap_cmsReadICCnamedColorList, METH_VARARGS, NULL}, + { (char *)"cmsFreeNamedColorList", _wrap_cmsFreeNamedColorList, METH_VARARGS, NULL}, + { (char *)"cmsAppendNamedColor", _wrap_cmsAppendNamedColor, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_stream_set", _wrap_LCMSICCPROFILE_stream_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_stream_get", _wrap_LCMSICCPROFILE_stream_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_DeviceClass_set", _wrap_LCMSICCPROFILE_DeviceClass_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_DeviceClass_get", _wrap_LCMSICCPROFILE_DeviceClass_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ColorSpace_set", _wrap_LCMSICCPROFILE_ColorSpace_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ColorSpace_get", _wrap_LCMSICCPROFILE_ColorSpace_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_PCS_set", _wrap_LCMSICCPROFILE_PCS_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_PCS_get", _wrap_LCMSICCPROFILE_PCS_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_RenderingIntent_set", _wrap_LCMSICCPROFILE_RenderingIntent_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_RenderingIntent_get", _wrap_LCMSICCPROFILE_RenderingIntent_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_flags_set", _wrap_LCMSICCPROFILE_flags_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_flags_get", _wrap_LCMSICCPROFILE_flags_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_attributes_set", _wrap_LCMSICCPROFILE_attributes_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_attributes_get", _wrap_LCMSICCPROFILE_attributes_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Illuminant_set", _wrap_LCMSICCPROFILE_Illuminant_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Illuminant_get", _wrap_LCMSICCPROFILE_Illuminant_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Version_set", _wrap_LCMSICCPROFILE_Version_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Version_get", _wrap_LCMSICCPROFILE_Version_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ChromaticAdaptation_set", _wrap_LCMSICCPROFILE_ChromaticAdaptation_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ChromaticAdaptation_get", _wrap_LCMSICCPROFILE_ChromaticAdaptation_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_MediaWhitePoint_set", _wrap_LCMSICCPROFILE_MediaWhitePoint_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_MediaWhitePoint_get", _wrap_LCMSICCPROFILE_MediaWhitePoint_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_MediaBlackPoint_set", _wrap_LCMSICCPROFILE_MediaBlackPoint_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_MediaBlackPoint_get", _wrap_LCMSICCPROFILE_MediaBlackPoint_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ProfileID_set", _wrap_LCMSICCPROFILE_ProfileID_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_ProfileID_get", _wrap_LCMSICCPROFILE_ProfileID_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagCount_set", _wrap_LCMSICCPROFILE_TagCount_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagCount_get", _wrap_LCMSICCPROFILE_TagCount_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagNames_set", _wrap_LCMSICCPROFILE_TagNames_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagNames_get", _wrap_LCMSICCPROFILE_TagNames_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagSizes_set", _wrap_LCMSICCPROFILE_TagSizes_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagSizes_get", _wrap_LCMSICCPROFILE_TagSizes_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagOffsets_set", _wrap_LCMSICCPROFILE_TagOffsets_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagOffsets_get", _wrap_LCMSICCPROFILE_TagOffsets_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagPtrs_set", _wrap_LCMSICCPROFILE_TagPtrs_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_TagPtrs_get", _wrap_LCMSICCPROFILE_TagPtrs_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_PhysicalFile_set", _wrap_LCMSICCPROFILE_PhysicalFile_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_PhysicalFile_get", _wrap_LCMSICCPROFILE_PhysicalFile_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_IsWrite_set", _wrap_LCMSICCPROFILE_IsWrite_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_IsWrite_get", _wrap_LCMSICCPROFILE_IsWrite_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_SaveAs8Bits_set", _wrap_LCMSICCPROFILE_SaveAs8Bits_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_SaveAs8Bits_get", _wrap_LCMSICCPROFILE_SaveAs8Bits_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Created_set", _wrap_LCMSICCPROFILE_Created_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Created_get", _wrap_LCMSICCPROFILE_Created_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Read_set", _wrap_LCMSICCPROFILE_Read_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Read_get", _wrap_LCMSICCPROFILE_Read_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Seek_set", _wrap_LCMSICCPROFILE_Seek_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Seek_get", _wrap_LCMSICCPROFILE_Seek_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Close_set", _wrap_LCMSICCPROFILE_Close_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Close_get", _wrap_LCMSICCPROFILE_Close_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Tell_set", _wrap_LCMSICCPROFILE_Tell_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Tell_get", _wrap_LCMSICCPROFILE_Tell_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Write_set", _wrap_LCMSICCPROFILE_Write_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_Write_get", _wrap_LCMSICCPROFILE_Write_get, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_UsedSpace_set", _wrap_LCMSICCPROFILE_UsedSpace_set, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_UsedSpace_get", _wrap_LCMSICCPROFILE_UsedSpace_get, METH_VARARGS, NULL}, + { (char *)"new_LCMSICCPROFILE", _wrap_new_LCMSICCPROFILE, METH_VARARGS, NULL}, + { (char *)"delete_LCMSICCPROFILE", _wrap_delete_LCMSICCPROFILE, METH_VARARGS, NULL}, + { (char *)"LCMSICCPROFILE_swigregister", LCMSICCPROFILE_swigregister, METH_VARARGS, NULL}, + { (char *)"_cmsCreateProfilePlaceholder", _wrap__cmsCreateProfilePlaceholder, METH_VARARGS, NULL}, + { (char *)"_cmsSearchTag", _wrap__cmsSearchTag, METH_VARARGS, NULL}, + { (char *)"_cmsInitTag", _wrap__cmsInitTag, METH_VARARGS, NULL}, + { (char *)"_cmsCreateProfileFromFilePlaceholder", _wrap__cmsCreateProfileFromFilePlaceholder, METH_VARARGS, NULL}, + { (char *)"_cmsCreateProfileFromMemPlaceholder", _wrap__cmsCreateProfileFromMemPlaceholder, METH_VARARGS, NULL}, + { (char *)"_cmsSetSaveToDisk", _wrap__cmsSetSaveToDisk, METH_VARARGS, NULL}, + { (char *)"_cmsSetSaveToMemory", _wrap__cmsSetSaveToMemory, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InputFormat_set", _wrap__cmsTRANSFORM_InputFormat_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InputFormat_get", _wrap__cmsTRANSFORM_InputFormat_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutputFormat_set", _wrap__cmsTRANSFORM_OutputFormat_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutputFormat_get", _wrap__cmsTRANSFORM_OutputFormat_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_StrideIn_set", _wrap__cmsTRANSFORM_StrideIn_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_StrideIn_get", _wrap__cmsTRANSFORM_StrideIn_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_StrideOut_set", _wrap__cmsTRANSFORM_StrideOut_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_StrideOut_get", _wrap__cmsTRANSFORM_StrideOut_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Intent_set", _wrap__cmsTRANSFORM_Intent_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Intent_get", _wrap__cmsTRANSFORM_Intent_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ProofIntent_set", _wrap__cmsTRANSFORM_ProofIntent_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ProofIntent_get", _wrap__cmsTRANSFORM_ProofIntent_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_DoGamutCheck_set", _wrap__cmsTRANSFORM_DoGamutCheck_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_DoGamutCheck_get", _wrap__cmsTRANSFORM_DoGamutCheck_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InputProfile_set", _wrap__cmsTRANSFORM_InputProfile_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InputProfile_get", _wrap__cmsTRANSFORM_InputProfile_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutputProfile_set", _wrap__cmsTRANSFORM_OutputProfile_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutputProfile_get", _wrap__cmsTRANSFORM_OutputProfile_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_PreviewProfile_set", _wrap__cmsTRANSFORM_PreviewProfile_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_PreviewProfile_get", _wrap__cmsTRANSFORM_PreviewProfile_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_EntryColorSpace_set", _wrap__cmsTRANSFORM_EntryColorSpace_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_EntryColorSpace_get", _wrap__cmsTRANSFORM_EntryColorSpace_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ExitColorSpace_set", _wrap__cmsTRANSFORM_ExitColorSpace_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ExitColorSpace_get", _wrap__cmsTRANSFORM_ExitColorSpace_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_dwOriginalFlags_set", _wrap__cmsTRANSFORM_dwOriginalFlags_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_dwOriginalFlags_get", _wrap__cmsTRANSFORM_dwOriginalFlags_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_m1_set", _wrap__cmsTRANSFORM_m1_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_m1_get", _wrap__cmsTRANSFORM_m1_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_m2_set", _wrap__cmsTRANSFORM_m2_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_m2_get", _wrap__cmsTRANSFORM_m2_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_of1_set", _wrap__cmsTRANSFORM_of1_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_of1_get", _wrap__cmsTRANSFORM_of1_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_of2_set", _wrap__cmsTRANSFORM_of2_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_of2_get", _wrap__cmsTRANSFORM_of2_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_xform_set", _wrap__cmsTRANSFORM_xform_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_xform_get", _wrap__cmsTRANSFORM_xform_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_FromInput_set", _wrap__cmsTRANSFORM_FromInput_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_FromInput_get", _wrap__cmsTRANSFORM_FromInput_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_FromDevice_set", _wrap__cmsTRANSFORM_FromDevice_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_FromDevice_get", _wrap__cmsTRANSFORM_FromDevice_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Stage1_set", _wrap__cmsTRANSFORM_Stage1_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Stage1_get", _wrap__cmsTRANSFORM_Stage1_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Stage2_set", _wrap__cmsTRANSFORM_Stage2_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Stage2_get", _wrap__cmsTRANSFORM_Stage2_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ToDevice_set", _wrap__cmsTRANSFORM_ToDevice_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ToDevice_get", _wrap__cmsTRANSFORM_ToDevice_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ToOutput_set", _wrap__cmsTRANSFORM_ToOutput_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_ToOutput_get", _wrap__cmsTRANSFORM_ToOutput_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Device2PCS_set", _wrap__cmsTRANSFORM_Device2PCS_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Device2PCS_get", _wrap__cmsTRANSFORM_Device2PCS_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_PCS2Device_set", _wrap__cmsTRANSFORM_PCS2Device_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_PCS2Device_get", _wrap__cmsTRANSFORM_PCS2Device_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Gamut_set", _wrap__cmsTRANSFORM_Gamut_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Gamut_get", _wrap__cmsTRANSFORM_Gamut_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Preview_set", _wrap__cmsTRANSFORM_Preview_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Preview_get", _wrap__cmsTRANSFORM_Preview_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_DeviceLink_set", _wrap__cmsTRANSFORM_DeviceLink_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_DeviceLink_get", _wrap__cmsTRANSFORM_DeviceLink_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_GamutCheck_set", _wrap__cmsTRANSFORM_GamutCheck_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_GamutCheck_get", _wrap__cmsTRANSFORM_GamutCheck_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InMatShaper_set", _wrap__cmsTRANSFORM_InMatShaper_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_InMatShaper_get", _wrap__cmsTRANSFORM_InMatShaper_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutMatShaper_set", _wrap__cmsTRANSFORM_OutMatShaper_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_OutMatShaper_get", _wrap__cmsTRANSFORM_OutMatShaper_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_SmeltMatShaper_set", _wrap__cmsTRANSFORM_SmeltMatShaper_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_SmeltMatShaper_get", _wrap__cmsTRANSFORM_SmeltMatShaper_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase1_set", _wrap__cmsTRANSFORM_Phase1_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase1_get", _wrap__cmsTRANSFORM_Phase1_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase2_set", _wrap__cmsTRANSFORM_Phase2_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase2_get", _wrap__cmsTRANSFORM_Phase2_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase3_set", _wrap__cmsTRANSFORM_Phase3_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_Phase3_get", _wrap__cmsTRANSFORM_Phase3_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_NamedColorList_set", _wrap__cmsTRANSFORM_NamedColorList_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_NamedColorList_get", _wrap__cmsTRANSFORM_NamedColorList_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_lInputV4Lab_set", _wrap__cmsTRANSFORM_lInputV4Lab_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_lInputV4Lab_get", _wrap__cmsTRANSFORM_lInputV4Lab_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_lOutputV4Lab_set", _wrap__cmsTRANSFORM_lOutputV4Lab_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_lOutputV4Lab_get", _wrap__cmsTRANSFORM_lOutputV4Lab_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_CacheIn_set", _wrap__cmsTRANSFORM_CacheIn_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_CacheIn_get", _wrap__cmsTRANSFORM_CacheIn_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_CacheOut_set", _wrap__cmsTRANSFORM_CacheOut_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_CacheOut_get", _wrap__cmsTRANSFORM_CacheOut_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_AdaptationState_set", _wrap__cmsTRANSFORM_AdaptationState_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_AdaptationState_get", _wrap__cmsTRANSFORM_AdaptationState_get, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_rwlock_set", _wrap__cmsTRANSFORM_rwlock_set, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_rwlock_get", _wrap__cmsTRANSFORM_rwlock_get, METH_VARARGS, NULL}, + { (char *)"new__cmsTRANSFORM", _wrap_new__cmsTRANSFORM, METH_VARARGS, NULL}, + { (char *)"delete__cmsTRANSFORM", _wrap_delete__cmsTRANSFORM, METH_VARARGS, NULL}, + { (char *)"_cmsTRANSFORM_swigregister", _cmsTRANSFORM_swigregister, METH_VARARGS, NULL}, + { (char *)"_cmsIdentifyInputFormat", _wrap__cmsIdentifyInputFormat, METH_VARARGS, NULL}, + { (char *)"_cmsIdentifyOutputFormat", _wrap__cmsIdentifyOutputFormat, METH_VARARGS, NULL}, + { (char *)"cmsChooseCnvrt", _wrap_cmsChooseCnvrt, METH_VARARGS, NULL}, + { (char *)"_cmsEndPointsBySpace", _wrap__cmsEndPointsBySpace, METH_VARARGS, NULL}, + { (char *)"_cmsWhiteBySpace", _wrap__cmsWhiteBySpace, METH_VARARGS, NULL}, + { (char *)"Clamp_L", _wrap_Clamp_L, METH_VARARGS, NULL}, + { (char *)"Clamp_ab", _wrap_Clamp_ab, METH_VARARGS, NULL}, + { (char *)"cmsDetectBlackPoint", _wrap_cmsDetectBlackPoint, METH_VARARGS, NULL}, + { (char *)"_cmsReasonableGridpointsByColorspace", _wrap__cmsReasonableGridpointsByColorspace, METH_VARARGS, NULL}, + { (char *)"_cmsPrecalculateDeviceLink", _wrap__cmsPrecalculateDeviceLink, METH_VARARGS, NULL}, + { (char *)"_cmsPrecalculateBlackPreservingDeviceLink", _wrap__cmsPrecalculateBlackPreservingDeviceLink, METH_VARARGS, NULL}, + { (char *)"_cmsPrecalculateGamutCheck", _wrap__cmsPrecalculateGamutCheck, METH_VARARGS, NULL}, + { (char *)"_cmsFixWhiteMisalignment", _wrap__cmsFixWhiteMisalignment, METH_VARARGS, NULL}, + { (char *)"_cmsBlessLUT8", _wrap__cmsBlessLUT8, METH_VARARGS, NULL}, + { (char *)"_cmsComputeGamutLUT", _wrap__cmsComputeGamutLUT, METH_VARARGS, NULL}, + { (char *)"_cmsComputeSoftProofLUT", _wrap__cmsComputeSoftProofLUT, METH_VARARGS, NULL}, + { (char *)"_cmsComputePrelinearizationTablesFromXFORM", _wrap__cmsComputePrelinearizationTablesFromXFORM, METH_VARARGS, NULL}, + { (char *)"_cmsBuildKToneCurve", _wrap__cmsBuildKToneCurve, METH_VARARGS, NULL}, + { (char *)"_cmsValidateLUT", _wrap__cmsValidateLUT, METH_VARARGS, NULL}, + { (char *)"new_icTagSignature", _wrap_new_icTagSignature, METH_VARARGS, NULL}, + { (char *)"delete_icTagSignature", _wrap_delete_icTagSignature, METH_VARARGS, NULL}, + { (char *)"icTagSignature_swigregister", icTagSignature_swigregister, METH_VARARGS, NULL}, + { (char *)"new_StrPointer", _wrap_new_StrPointer, METH_VARARGS, NULL}, + { (char *)"delete_StrPointer", _wrap_delete_StrPointer, METH_VARARGS, NULL}, + { (char *)"StrPointer_swigregister", StrPointer_swigregister, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_COLORB = {"_p_COLORB", "COLORB *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_COLORW = {"_p_COLORW", "COLORW *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_GAMMATABLE = {"_p_GAMMATABLE", "GAMMATABLE *|LPGAMMATABLE", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_IT8 = {"_p_IT8", "IT8 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LCMSGAMMAPARAMS = {"_p_LCMSGAMMAPARAMS", "LCMSGAMMAPARAMS *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LPMATSHAPER = {"_p_LPMATSHAPER", "LPMATSHAPER *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LPWMAT3 = {"_p_LPWMAT3", "LPWMAT3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LPWVEC3 = {"_p_LPWVEC3", "LPWVEC3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LPcmsNAMEDCOLORLIST = {"_p_LPcmsNAMEDCOLORLIST", "LPcmsNAMEDCOLORLIST *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_LPcmsSEQ = {"_p_LPcmsSEQ", "LPcmsSEQ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MAT3 = {"_p_MAT3", "LPMAT3|MAT3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MATSHAPER = {"_p_MATSHAPER", "MATSHAPER *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SAMPLEDCURVE = {"_p_SAMPLEDCURVE", "LPSAMPLEDCURVE|SAMPLEDCURVE *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_StrPointer = {"_p_StrPointer", "StrPointer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_VEC3 = {"_p_VEC3", "VEC3 *|LPVEC3", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_WMAT3 = {"_p_WMAT3", "WMAT3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_WVEC3 = {"_p_WVEC3", "WVEC3 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__cmsTestAlign16 = {"_p__cmsTestAlign16", "_cmsTestAlign16 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__cmsTestAlign8 = {"_p__cmsTestAlign8", "_cmsTestAlign8 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__cmstransform_struct = {"_p__cmstransform_struct", "_cmsTRANSFORM *|_LPcmsTRANSFORM|_cmstransform_struct *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__lcms_LUT_struc = {"_p__lcms_LUT_struc", "_lcms_LUT_struc *|LPLUT|LUT *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__lcms_iccprofile_struct = {"_p__lcms_iccprofile_struct", "LCMSICCPROFILE *|LPLCMSICCPROFILE|_lcms_iccprofile_struct *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__lcms_l16params_struc = {"_p__lcms_l16params_struc", "_lcms_l16params_struc *|L16PARAMS *|LPL16PARAMS", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p__lcms_l8opt_struc = {"_p__lcms_l8opt_struc", "_lcms_l8opt_struc *|L8PARAMS *|LPL8PARAMS", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_a_16__LCMSGAMMAPARAMS = {"_p_a_16__LCMSGAMMAPARAMS", "LCMSGAMMAPARAMS (*)[16]", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIELCh = {"_p_cmsCIELCh", "LPcmsCIELCh|cmsCIELCh *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIELab = {"_p_cmsCIELab", "cmsCIELab *|LPcmsCIELab", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIEXYZ = {"_p_cmsCIEXYZ", "LPcmsCIEXYZ|cmsCIEXYZ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIEXYZTRIPLE = {"_p_cmsCIEXYZTRIPLE", "cmsCIEXYZTRIPLE *|LPcmsCIEXYZTRIPLE", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIExyY = {"_p_cmsCIExyY", "cmsCIExyY *|LPcmsCIExyY", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsCIExyYTRIPLE = {"_p_cmsCIExyYTRIPLE", "cmsCIExyYTRIPLE *|LPcmsCIExyYTRIPLE", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsJCh = {"_p_cmsJCh", "LPcmsJCh|cmsJCh *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsNAMEDCOLOR = {"_p_cmsNAMEDCOLOR", "cmsNAMEDCOLOR *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsNAMEDCOLORLIST = {"_p_cmsNAMEDCOLORLIST", "cmsNAMEDCOLORLIST *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsPSEQDESC = {"_p_cmsPSEQDESC", "cmsPSEQDESC *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsSEQ = {"_p_cmsSEQ", "cmsSEQ *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_cmsViewingConditions = {"_p_cmsViewingConditions", "cmsViewingConditions *|LPcmsViewingConditions", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void = {"_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void", "void (*)(unsigned short [],unsigned short [],LPWMAT3,LPWVEC3)|_cmsADJFN", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void = {"_p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void", "_cms3DLERP|void (*)(unsigned short [],unsigned short [],unsigned short [],_lcms_l16params_struc *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_a___unsigned_short_a___unsigned_short_p_void__int = {"_p_f_a___unsigned_short_a___unsigned_short_p_void__int", "int (*)(unsigned short [],unsigned short [],void *)|_cmsSAMPLER", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_int_p_q_const__char__int = {"_p_f_int_p_q_const__char__int", "int (*)(int,char const *)|cmsErrorHandlerFunction", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void = {"_p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void", "_cmsTRANSFN|void (*)(_cmstransform_struct *,unsigned short [],unsigned short [])", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char", "_cmsFIXFN|unsigned char *(*)(_cmstransform_struct *,unsigned short [],unsigned char *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void = {"_p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void", "void (*)(_cmstransform_struct *,void *,void *,unsigned int)|_cmsCOLORCALLBACKFN", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct__int = {"_p_f_p__lcms_iccprofile_struct__int", "int (*)(_lcms_iccprofile_struct *)|LCMSBOOL (*)(_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct__size_t = {"_p_f_p__lcms_iccprofile_struct__size_t", "size_t (*)(_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct_size_t__int = {"_p_f_p__lcms_iccprofile_struct_size_t__int", "int (*)(_lcms_iccprofile_struct *,size_t)|LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p__lcms_iccprofile_struct_size_t_p_void__int = {"_p_f_p__lcms_iccprofile_struct_size_t_p_void__int", "LCMSBOOL (*)(_lcms_iccprofile_struct *,size_t,LPVOID)|int (*)(_lcms_iccprofile_struct *,size_t,void *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char", "unsigned char *(*)(void *,unsigned short [],unsigned char *)|cmsFORMATTER", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t = {"_p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t", "size_t (*)(void *,size_t,size_t,_lcms_iccprofile_struct *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icCLutStruct = {"_p_icCLutStruct", "icCLutStruct *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icColorSpaceSignature = {"_p_icColorSpaceSignature", "icColorSpaceSignature *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icInt32Number = {"_p_icInt32Number", "icInt32Number *|Fixed32 *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icLutAtoB = {"_p_icLutAtoB", "icLutAtoB *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icLutBtoA = {"_p_icLutBtoA", "icLutBtoA *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icProfileClassSignature = {"_p_icProfileClassSignature", "icProfileClassSignature *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icRenderingIntent = {"_p_icRenderingIntent", "icRenderingIntent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icS15Fixed16Number = {"_p_icS15Fixed16Number", "icS15Fixed16Number *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icSignature = {"_p_icSignature", "icSignature *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icTagSignature = {"_p_icTagSignature", "icTagSignature *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icTechnologySignature = {"_p_icTechnologySignature", "icTechnologySignature *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icUInt16Number = {"_p_icUInt16Number", "icUInt16Number *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icUInt32Number = {"_p_icUInt32Number", "icUInt32Number *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_icUInt8Number = {"_p_icUInt8Number", "icUInt8Number *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int = {"_p_int", "int *|LCMSBOOL *|LCMS_RWLOCK_T *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_GAMMATABLE = {"_p_p_GAMMATABLE", "GAMMATABLE **|LPGAMMATABLE *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void = {"_p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void", "void (**)(unsigned short [],unsigned short [],LPWMAT3,LPWVEC3)|_cmsADJFN *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char = {"_p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char", "cmsFORMATTER *|unsigned char *(**)(void *,unsigned short [],unsigned char *)", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_p_char = {"_p_p_p_char", "char ***", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_unsigned_short = {"_p_p_unsigned_short", "WORD **|LPWORD *|unsigned short **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_p_void = {"_p_p_void", "cmsHTRANSFORM *|cmsHPROFILE *|LPVOID *|void **", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tm = {"_p_tm", "tm *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|BYTE *|LPBYTE", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "LPDWORD|DWORD *|unsigned long *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "WORD *|unsigned short *|LPWORD", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_void = {"_p_void", "cmsHTRANSFORM|LCMSHANDLE|cmsHPROFILE|LPVOID|void *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_COLORB, + &_swigt__p_COLORW, + &_swigt__p_GAMMATABLE, + &_swigt__p_IT8, + &_swigt__p_LCMSGAMMAPARAMS, + &_swigt__p_LPMATSHAPER, + &_swigt__p_LPWMAT3, + &_swigt__p_LPWVEC3, + &_swigt__p_LPcmsNAMEDCOLORLIST, + &_swigt__p_LPcmsSEQ, + &_swigt__p_MAT3, + &_swigt__p_MATSHAPER, + &_swigt__p_SAMPLEDCURVE, + &_swigt__p_StrPointer, + &_swigt__p_VEC3, + &_swigt__p_WMAT3, + &_swigt__p_WVEC3, + &_swigt__p__cmsTestAlign16, + &_swigt__p__cmsTestAlign8, + &_swigt__p__cmstransform_struct, + &_swigt__p__lcms_LUT_struc, + &_swigt__p__lcms_iccprofile_struct, + &_swigt__p__lcms_l16params_struc, + &_swigt__p__lcms_l8opt_struc, + &_swigt__p_a_16__LCMSGAMMAPARAMS, + &_swigt__p_char, + &_swigt__p_cmsCIELCh, + &_swigt__p_cmsCIELab, + &_swigt__p_cmsCIEXYZ, + &_swigt__p_cmsCIEXYZTRIPLE, + &_swigt__p_cmsCIExyY, + &_swigt__p_cmsCIExyYTRIPLE, + &_swigt__p_cmsJCh, + &_swigt__p_cmsNAMEDCOLOR, + &_swigt__p_cmsNAMEDCOLORLIST, + &_swigt__p_cmsPSEQDESC, + &_swigt__p_cmsSEQ, + &_swigt__p_cmsViewingConditions, + &_swigt__p_double, + &_swigt__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, + &_swigt__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void, + &_swigt__p_f_a___unsigned_short_a___unsigned_short_p_void__int, + &_swigt__p_f_int_p_q_const__char__int, + &_swigt__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void, + &_swigt__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char, + &_swigt__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void, + &_swigt__p_f_p__lcms_iccprofile_struct__int, + &_swigt__p_f_p__lcms_iccprofile_struct__size_t, + &_swigt__p_f_p__lcms_iccprofile_struct_size_t__int, + &_swigt__p_f_p__lcms_iccprofile_struct_size_t_p_void__int, + &_swigt__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, + &_swigt__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t, + &_swigt__p_icCLutStruct, + &_swigt__p_icColorSpaceSignature, + &_swigt__p_icInt32Number, + &_swigt__p_icLutAtoB, + &_swigt__p_icLutBtoA, + &_swigt__p_icProfileClassSignature, + &_swigt__p_icRenderingIntent, + &_swigt__p_icS15Fixed16Number, + &_swigt__p_icSignature, + &_swigt__p_icTagSignature, + &_swigt__p_icTechnologySignature, + &_swigt__p_icUInt16Number, + &_swigt__p_icUInt32Number, + &_swigt__p_icUInt8Number, + &_swigt__p_int, + &_swigt__p_p_GAMMATABLE, + &_swigt__p_p_char, + &_swigt__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, + &_swigt__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, + &_swigt__p_p_p_char, + &_swigt__p_p_unsigned_short, + &_swigt__p_p_void, + &_swigt__p_size_t, + &_swigt__p_tm, + &_swigt__p_unsigned_char, + &_swigt__p_unsigned_int, + &_swigt__p_unsigned_long, + &_swigt__p_unsigned_short, + &_swigt__p_void, +}; + +static swig_cast_info _swigc__p_COLORB[] = { {&_swigt__p_COLORB, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_COLORW[] = { {&_swigt__p_COLORW, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_GAMMATABLE[] = { {&_swigt__p_GAMMATABLE, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_IT8[] = { {&_swigt__p_IT8, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LCMSGAMMAPARAMS[] = { {&_swigt__p_LCMSGAMMAPARAMS, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LPMATSHAPER[] = { {&_swigt__p_LPMATSHAPER, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LPWMAT3[] = { {&_swigt__p_LPWMAT3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LPWVEC3[] = { {&_swigt__p_LPWVEC3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LPcmsNAMEDCOLORLIST[] = { {&_swigt__p_LPcmsNAMEDCOLORLIST, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_LPcmsSEQ[] = { {&_swigt__p_LPcmsSEQ, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MAT3[] = { {&_swigt__p_MAT3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MATSHAPER[] = { {&_swigt__p_MATSHAPER, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SAMPLEDCURVE[] = { {&_swigt__p_SAMPLEDCURVE, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_StrPointer[] = { {&_swigt__p_StrPointer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_VEC3[] = { {&_swigt__p_VEC3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_WMAT3[] = { {&_swigt__p_WMAT3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_WVEC3[] = { {&_swigt__p_WVEC3, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__cmsTestAlign16[] = { {&_swigt__p__cmsTestAlign16, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__cmsTestAlign8[] = { {&_swigt__p__cmsTestAlign8, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__cmstransform_struct[] = { {&_swigt__p__cmstransform_struct, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__lcms_LUT_struc[] = { {&_swigt__p__lcms_LUT_struc, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__lcms_iccprofile_struct[] = { {&_swigt__p__lcms_iccprofile_struct, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__lcms_l16params_struc[] = { {&_swigt__p__lcms_l16params_struc, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p__lcms_l8opt_struc[] = { {&_swigt__p__lcms_l8opt_struc, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_a_16__LCMSGAMMAPARAMS[] = { {&_swigt__p_a_16__LCMSGAMMAPARAMS, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIELCh[] = { {&_swigt__p_cmsCIELCh, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIELab[] = { {&_swigt__p_cmsCIELab, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIEXYZ[] = { {&_swigt__p_cmsCIEXYZ, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIEXYZTRIPLE[] = { {&_swigt__p_cmsCIEXYZTRIPLE, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIExyY[] = { {&_swigt__p_cmsCIExyY, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsCIExyYTRIPLE[] = { {&_swigt__p_cmsCIExyYTRIPLE, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsJCh[] = { {&_swigt__p_cmsJCh, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsNAMEDCOLOR[] = { {&_swigt__p_cmsNAMEDCOLOR, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsNAMEDCOLORLIST[] = { {&_swigt__p_cmsNAMEDCOLORLIST, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsPSEQDESC[] = { {&_swigt__p_cmsPSEQDESC, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsSEQ[] = { {&_swigt__p_cmsSEQ, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_cmsViewingConditions[] = { {&_swigt__p_cmsViewingConditions, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void[] = { {&_swigt__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void[] = { {&_swigt__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_a___unsigned_short_a___unsigned_short_p_void__int[] = { {&_swigt__p_f_a___unsigned_short_a___unsigned_short_p_void__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_int_p_q_const__char__int[] = { {&_swigt__p_f_int_p_q_const__char__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void[] = { {&_swigt__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char[] = { {&_swigt__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void[] = { {&_swigt__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__lcms_iccprofile_struct__int[] = { {&_swigt__p_f_p__lcms_iccprofile_struct__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__lcms_iccprofile_struct__size_t[] = { {&_swigt__p_f_p__lcms_iccprofile_struct__size_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__lcms_iccprofile_struct_size_t__int[] = { {&_swigt__p_f_p__lcms_iccprofile_struct_size_t__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p__lcms_iccprofile_struct_size_t_p_void__int[] = { {&_swigt__p_f_p__lcms_iccprofile_struct_size_t_p_void__int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char[] = { {&_swigt__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t[] = { {&_swigt__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icCLutStruct[] = { {&_swigt__p_icCLutStruct, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icColorSpaceSignature[] = { {&_swigt__p_icColorSpaceSignature, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icInt32Number[] = { {&_swigt__p_icInt32Number, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icLutAtoB[] = { {&_swigt__p_icLutAtoB, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icLutBtoA[] = { {&_swigt__p_icLutBtoA, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icProfileClassSignature[] = { {&_swigt__p_icProfileClassSignature, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icRenderingIntent[] = { {&_swigt__p_icRenderingIntent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icS15Fixed16Number[] = { {&_swigt__p_icS15Fixed16Number, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icSignature[] = { {&_swigt__p_icSignature, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icTagSignature[] = { {&_swigt__p_icTagSignature, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icTechnologySignature[] = { {&_swigt__p_icTechnologySignature, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icUInt16Number[] = { {&_swigt__p_icUInt16Number, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icUInt32Number[] = { {&_swigt__p_icUInt32Number, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_icUInt8Number[] = { {&_swigt__p_icUInt8Number, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_GAMMATABLE[] = { {&_swigt__p_p_GAMMATABLE, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void[] = { {&_swigt__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char[] = { {&_swigt__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_p_char[] = { {&_swigt__p_p_p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_unsigned_short[] = { {&_swigt__p_p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tm[] = { {&_swigt__p_tm, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_COLORB, + _swigc__p_COLORW, + _swigc__p_GAMMATABLE, + _swigc__p_IT8, + _swigc__p_LCMSGAMMAPARAMS, + _swigc__p_LPMATSHAPER, + _swigc__p_LPWMAT3, + _swigc__p_LPWVEC3, + _swigc__p_LPcmsNAMEDCOLORLIST, + _swigc__p_LPcmsSEQ, + _swigc__p_MAT3, + _swigc__p_MATSHAPER, + _swigc__p_SAMPLEDCURVE, + _swigc__p_StrPointer, + _swigc__p_VEC3, + _swigc__p_WMAT3, + _swigc__p_WVEC3, + _swigc__p__cmsTestAlign16, + _swigc__p__cmsTestAlign8, + _swigc__p__cmstransform_struct, + _swigc__p__lcms_LUT_struc, + _swigc__p__lcms_iccprofile_struct, + _swigc__p__lcms_l16params_struc, + _swigc__p__lcms_l8opt_struc, + _swigc__p_a_16__LCMSGAMMAPARAMS, + _swigc__p_char, + _swigc__p_cmsCIELCh, + _swigc__p_cmsCIELab, + _swigc__p_cmsCIEXYZ, + _swigc__p_cmsCIEXYZTRIPLE, + _swigc__p_cmsCIExyY, + _swigc__p_cmsCIExyYTRIPLE, + _swigc__p_cmsJCh, + _swigc__p_cmsNAMEDCOLOR, + _swigc__p_cmsNAMEDCOLORLIST, + _swigc__p_cmsPSEQDESC, + _swigc__p_cmsSEQ, + _swigc__p_cmsViewingConditions, + _swigc__p_double, + _swigc__p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, + _swigc__p_f_a___unsigned_short_a___unsigned_short_a___unsigned_short_p__lcms_l16params_struc__void, + _swigc__p_f_a___unsigned_short_a___unsigned_short_p_void__int, + _swigc__p_f_int_p_q_const__char__int, + _swigc__p_f_p__cmstransform_struct_a___unsigned_short_a___unsigned_short__void, + _swigc__p_f_p__cmstransform_struct_a___unsigned_short_p_unsigned_char__p_unsigned_char, + _swigc__p_f_p__cmstransform_struct_p_void_p_void_unsigned_int__void, + _swigc__p_f_p__lcms_iccprofile_struct__int, + _swigc__p_f_p__lcms_iccprofile_struct__size_t, + _swigc__p_f_p__lcms_iccprofile_struct_size_t__int, + _swigc__p_f_p__lcms_iccprofile_struct_size_t_p_void__int, + _swigc__p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, + _swigc__p_f_p_void_size_t_size_t_p__lcms_iccprofile_struct__size_t, + _swigc__p_icCLutStruct, + _swigc__p_icColorSpaceSignature, + _swigc__p_icInt32Number, + _swigc__p_icLutAtoB, + _swigc__p_icLutBtoA, + _swigc__p_icProfileClassSignature, + _swigc__p_icRenderingIntent, + _swigc__p_icS15Fixed16Number, + _swigc__p_icSignature, + _swigc__p_icTagSignature, + _swigc__p_icTechnologySignature, + _swigc__p_icUInt16Number, + _swigc__p_icUInt32Number, + _swigc__p_icUInt8Number, + _swigc__p_int, + _swigc__p_p_GAMMATABLE, + _swigc__p_p_char, + _swigc__p_p_f_a___unsigned_short_a___unsigned_short_LPWMAT3_LPWVEC3__void, + _swigc__p_p_f_p_void_a___unsigned_short_p_unsigned_char__p_unsigned_char, + _swigc__p_p_p_char, + _swigc__p_p_unsigned_short, + _swigc__p_p_void, + _swigc__p_size_t, + _swigc__p_tm, + _swigc__p_unsigned_char, + _swigc__p_unsigned_int, + _swigc__p_unsigned_long, + _swigc__p_unsigned_short, + _swigc__p_void, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { + return PyString_FromString("<Swig global variables>"); + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", PyString_AsString(str)); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + PyObject_HEAD_INIT(NULL) + 0, /* Number of items in variable part (ob_size) */ + (char *)"swigvarlink", /* Type name (tp_name) */ + sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ + 0, /* Itemsize (tp_itemsize) */ + (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ + (printfunc) swig_varlink_print, /* Print (tp_print) */ + (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ + (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc)swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + varlink_type = tmp; + varlink_type.ob_type = &PyType_Type; + type_init = 1; + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (c && (c = strstr(c, "swig_ptr: "))) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIG_init(void) { + PyObject *m, *d; + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); + + m = Py_InitModule((char *) SWIG_name, SwigMethods); + d = PyModule_GetDict(m); + + SWIG_InitializeModule(0); + SWIG_InstallConstants(d,swig_const_table); + + + + + lcmsError = PyErr_NewException("lcms.error", NULL, NULL); + PyDict_SetItemString(d, "error", lcmsError); + cmsSetErrorHandler(MyErrorHandler); + + + SWIG_Python_SetConstant(d, "NON_WINDOWS",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "LCMS_VERSION",SWIG_From_int(static_cast< int >(118))); + SWIG_Python_SetConstant(d, "MAXCHANNELS",SWIG_From_int(static_cast< int >(16))); + SWIG_Python_SetConstant(d, "PT_ANY",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "PT_GRAY",SWIG_From_int(static_cast< int >(3))); + SWIG_Python_SetConstant(d, "PT_RGB",SWIG_From_int(static_cast< int >(4))); + SWIG_Python_SetConstant(d, "PT_CMY",SWIG_From_int(static_cast< int >(5))); + SWIG_Python_SetConstant(d, "PT_CMYK",SWIG_From_int(static_cast< int >(6))); + SWIG_Python_SetConstant(d, "PT_YCbCr",SWIG_From_int(static_cast< int >(7))); + SWIG_Python_SetConstant(d, "PT_YUV",SWIG_From_int(static_cast< int >(8))); + SWIG_Python_SetConstant(d, "PT_XYZ",SWIG_From_int(static_cast< int >(9))); + SWIG_Python_SetConstant(d, "PT_Lab",SWIG_From_int(static_cast< int >(10))); + SWIG_Python_SetConstant(d, "PT_YUVK",SWIG_From_int(static_cast< int >(11))); + SWIG_Python_SetConstant(d, "PT_HSV",SWIG_From_int(static_cast< int >(12))); + SWIG_Python_SetConstant(d, "PT_HLS",SWIG_From_int(static_cast< int >(13))); + SWIG_Python_SetConstant(d, "PT_Yxy",SWIG_From_int(static_cast< int >(14))); + SWIG_Python_SetConstant(d, "PT_HiFi",SWIG_From_int(static_cast< int >(15))); + SWIG_Python_SetConstant(d, "PT_HiFi7",SWIG_From_int(static_cast< int >(16))); + SWIG_Python_SetConstant(d, "PT_HiFi8",SWIG_From_int(static_cast< int >(17))); + SWIG_Python_SetConstant(d, "PT_HiFi9",SWIG_From_int(static_cast< int >(18))); + SWIG_Python_SetConstant(d, "PT_HiFi10",SWIG_From_int(static_cast< int >(19))); + SWIG_Python_SetConstant(d, "PT_HiFi11",SWIG_From_int(static_cast< int >(20))); + SWIG_Python_SetConstant(d, "PT_HiFi12",SWIG_From_int(static_cast< int >(21))); + SWIG_Python_SetConstant(d, "PT_HiFi13",SWIG_From_int(static_cast< int >(22))); + SWIG_Python_SetConstant(d, "PT_HiFi14",SWIG_From_int(static_cast< int >(23))); + SWIG_Python_SetConstant(d, "PT_HiFi15",SWIG_From_int(static_cast< int >(24))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_8",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_8_REV",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(1)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_16",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_16_REV",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(2)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_16_SE",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_GRAYA_8",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 7)|((1) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_GRAYA_16",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 7)|((1) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_GRAYA_16_SE",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 7)|((1) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_GRAYA_8_PLANAR",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 7)|((1) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_GRAYA_16_PLANAR",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 7)|((1) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_8",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_8_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_BGR_8",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_BGR_8_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(1)|((1) << 10)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_16",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_16_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_16_SE",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_BGR_16",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_BGR_16_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2)|((1) << 10)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_BGR_16_SE",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_RGBA_8",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_RGBA_8_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_RGBA_16",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_RGBA_16_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_RGBA_16_SE",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_ARGB_8",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(1)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_ARGB_16",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_ABGR_8",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_ABGR_16",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_ABGR_16_PLANAR",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 10)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_ABGR_16_SE",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_BGRA_8",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(1)|((1) << 10)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_BGRA_16",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 10)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_BGRA_16_SE",SWIG_From_int(static_cast< int >((((4) << 16)|((1) << 7)|((3) << 3)|(2)|((1) << 11)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_CMY_8",SWIG_From_int(static_cast< int >((((5) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMY_8_PLANAR",SWIG_From_int(static_cast< int >((((5) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMY_16",SWIG_From_int(static_cast< int >((((5) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMY_16_PLANAR",SWIG_From_int(static_cast< int >((((5) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMY_16_SE",SWIG_From_int(static_cast< int >((((5) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_8",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKA_8",SWIG_From_int(static_cast< int >((((6) << 16)|((1) << 7)|((4) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_8_REV",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_YUVK_8",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_8_PLANAR",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_16",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_16_REV",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_YUVK_16",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 13))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_16_PLANAR",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_16_SE",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC_8",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC_16",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC_16_SE",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KCMY_8",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_KCMY_8_REV",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(1)|((1) << 13)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_KCMY_16",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_KCMY_16_REV",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 13)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_KCMY_16_SE",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(2)|((1) << 11)|((1) << 14))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK5_8",SWIG_From_int(static_cast< int >((((5) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK5_16",SWIG_From_int(static_cast< int >((((5) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK5_16_SE",SWIG_From_int(static_cast< int >((((5) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC5_8",SWIG_From_int(static_cast< int >((((5) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC5_16",SWIG_From_int(static_cast< int >((((5) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC5_16_SE",SWIG_From_int(static_cast< int >((((5) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKcm_8",SWIG_From_int(static_cast< int >((((6) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKcm_8_PLANAR",SWIG_From_int(static_cast< int >((((6) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKcm_16",SWIG_From_int(static_cast< int >((((6) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKcm_16_PLANAR",SWIG_From_int(static_cast< int >((((6) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_CMYKcm_16_SE",SWIG_From_int(static_cast< int >((((6) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK7_8",SWIG_From_int(static_cast< int >((((7) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK7_16",SWIG_From_int(static_cast< int >((((7) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK7_16_SE",SWIG_From_int(static_cast< int >((((7) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC7_8",SWIG_From_int(static_cast< int >((((7) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC7_16",SWIG_From_int(static_cast< int >((((7) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC7_16_SE",SWIG_From_int(static_cast< int >((((7) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK8_8",SWIG_From_int(static_cast< int >((((8) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK8_16",SWIG_From_int(static_cast< int >((((8) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK8_16_SE",SWIG_From_int(static_cast< int >((((8) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC8_8",SWIG_From_int(static_cast< int >((((8) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC8_16",SWIG_From_int(static_cast< int >((((8) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC8_16_SE",SWIG_From_int(static_cast< int >((((8) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK9_8",SWIG_From_int(static_cast< int >((((9) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK9_16",SWIG_From_int(static_cast< int >((((9) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK9_16_SE",SWIG_From_int(static_cast< int >((((9) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC9_8",SWIG_From_int(static_cast< int >((((9) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC9_16",SWIG_From_int(static_cast< int >((((9) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC9_16_SE",SWIG_From_int(static_cast< int >((((9) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK10_8",SWIG_From_int(static_cast< int >((((10) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK10_16",SWIG_From_int(static_cast< int >((((10) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK10_16_SE",SWIG_From_int(static_cast< int >((((10) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC10_8",SWIG_From_int(static_cast< int >((((10) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC10_16",SWIG_From_int(static_cast< int >((((10) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC10_16_SE",SWIG_From_int(static_cast< int >((((10) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK11_8",SWIG_From_int(static_cast< int >((((11) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK11_16",SWIG_From_int(static_cast< int >((((11) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK11_16_SE",SWIG_From_int(static_cast< int >((((11) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC11_8",SWIG_From_int(static_cast< int >((((11) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC11_16",SWIG_From_int(static_cast< int >((((11) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC11_16_SE",SWIG_From_int(static_cast< int >((((11) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK12_8",SWIG_From_int(static_cast< int >((((12) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK12_16",SWIG_From_int(static_cast< int >((((12) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK12_16_SE",SWIG_From_int(static_cast< int >((((12) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC12_8",SWIG_From_int(static_cast< int >((((12) << 3)|(1)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC12_16",SWIG_From_int(static_cast< int >((((12) << 3)|(2)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_KYMC12_16_SE",SWIG_From_int(static_cast< int >((((12) << 3)|(2)|((1) << 10)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_XYZ_16",SWIG_From_int(static_cast< int >((((9) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_Lab_8",SWIG_From_int(static_cast< int >((((10) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_ALab_8",SWIG_From_int(static_cast< int >((((10) << 16)|((3) << 3)|(1)|((1) << 7)|((1) << 10))))); + SWIG_Python_SetConstant(d, "TYPE_Lab_16",SWIG_From_int(static_cast< int >((((10) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_Yxy_16",SWIG_From_int(static_cast< int >((((14) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_YCbCr_8",SWIG_From_int(static_cast< int >((((7) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_YCbCr_8_PLANAR",SWIG_From_int(static_cast< int >((((7) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_YCbCr_16",SWIG_From_int(static_cast< int >((((7) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_YCbCr_16_PLANAR",SWIG_From_int(static_cast< int >((((7) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_YCbCr_16_SE",SWIG_From_int(static_cast< int >((((7) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_YUV_8",SWIG_From_int(static_cast< int >((((8) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_YUV_8_PLANAR",SWIG_From_int(static_cast< int >((((8) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_YUV_16",SWIG_From_int(static_cast< int >((((8) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_YUV_16_PLANAR",SWIG_From_int(static_cast< int >((((8) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_YUV_16_SE",SWIG_From_int(static_cast< int >((((8) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_HLS_8",SWIG_From_int(static_cast< int >((((13) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_HLS_8_PLANAR",SWIG_From_int(static_cast< int >((((13) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_HLS_16",SWIG_From_int(static_cast< int >((((13) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_HLS_16_PLANAR",SWIG_From_int(static_cast< int >((((13) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_HLS_16_SE",SWIG_From_int(static_cast< int >((((13) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_HSV_8",SWIG_From_int(static_cast< int >((((12) << 16)|((3) << 3)|(1))))); + SWIG_Python_SetConstant(d, "TYPE_HSV_8_PLANAR",SWIG_From_int(static_cast< int >((((12) << 16)|((3) << 3)|(1)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_HSV_16",SWIG_From_int(static_cast< int >((((12) << 16)|((3) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_HSV_16_PLANAR",SWIG_From_int(static_cast< int >((((12) << 16)|((3) << 3)|(2)|((1) << 12))))); + SWIG_Python_SetConstant(d, "TYPE_HSV_16_SE",SWIG_From_int(static_cast< int >((((12) << 16)|((3) << 3)|(2)|((1) << 11))))); + SWIG_Python_SetConstant(d, "TYPE_NAMED_COLOR_INDEX",SWIG_From_int(static_cast< int >((((1) << 3)|(2))))); + SWIG_Python_SetConstant(d, "TYPE_XYZ_DBL",SWIG_From_int(static_cast< int >((((9) << 16)|((3) << 3)|(0))))); + SWIG_Python_SetConstant(d, "TYPE_Lab_DBL",SWIG_From_int(static_cast< int >((((10) << 16)|((3) << 3)|(0))))); + SWIG_Python_SetConstant(d, "TYPE_GRAY_DBL",SWIG_From_int(static_cast< int >((((3) << 16)|((1) << 3)|(0))))); + SWIG_Python_SetConstant(d, "TYPE_RGB_DBL",SWIG_From_int(static_cast< int >((((4) << 16)|((3) << 3)|(0))))); + SWIG_Python_SetConstant(d, "TYPE_CMYK_DBL",SWIG_From_int(static_cast< int >((((6) << 16)|((4) << 3)|(0))))); + SWIG_Python_SetConstant(d, "D50X",SWIG_From_double(static_cast< double >((0.9642)))); + SWIG_Python_SetConstant(d, "D50Y",SWIG_From_double(static_cast< double >((1.0)))); + SWIG_Python_SetConstant(d, "D50Z",SWIG_From_double(static_cast< double >((0.8249)))); + SWIG_Python_SetConstant(d, "PERCEPTUAL_BLACK_X",SWIG_From_double(static_cast< double >((0.00336)))); + SWIG_Python_SetConstant(d, "PERCEPTUAL_BLACK_Y",SWIG_From_double(static_cast< double >((0.0034731)))); + SWIG_Python_SetConstant(d, "PERCEPTUAL_BLACK_Z",SWIG_From_double(static_cast< double >((0.00287)))); + SWIG_Python_SetConstant(d, "AVG_SURROUND_4",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "AVG_SURROUND",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "DIM_SURROUND",SWIG_From_int(static_cast< int >(2))); + SWIG_Python_SetConstant(d, "DARK_SURROUND",SWIG_From_int(static_cast< int >(3))); + SWIG_Python_SetConstant(d, "CUTSHEET_SURROUND",SWIG_From_int(static_cast< int >(4))); + SWIG_Python_SetConstant(d, "D_CALCULATE",SWIG_From_int(static_cast< int >((-1)))); + SWIG_Python_SetConstant(d, "D_CALCULATE_DISCOUNT",SWIG_From_int(static_cast< int >((-2)))); + SWIG_Python_SetConstant(d, "LCMS_DESC_MAX",SWIG_From_int(static_cast< int >(512))); + SWIG_Python_SetConstant(d, "LCMS_USED_AS_INPUT",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "LCMS_USED_AS_OUTPUT",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "LCMS_USED_AS_PROOF",SWIG_From_int(static_cast< int >(2))); + SWIG_Python_SetConstant(d, "INTENT_PERCEPTUAL",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "INTENT_RELATIVE_COLORIMETRIC",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "INTENT_SATURATION",SWIG_From_int(static_cast< int >(2))); + SWIG_Python_SetConstant(d, "INTENT_ABSOLUTE_COLORIMETRIC",SWIG_From_int(static_cast< int >(3))); + SWIG_Python_SetConstant(d, "cmsFLAGS_MATRIXINPUT",SWIG_From_int(static_cast< int >(0x0001))); + SWIG_Python_SetConstant(d, "cmsFLAGS_MATRIXOUTPUT",SWIG_From_int(static_cast< int >(0x0002))); + SWIG_Python_SetConstant(d, "cmsFLAGS_MATRIXONLY",SWIG_From_int(static_cast< int >((0x0001|0x0002)))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NOWHITEONWHITEFIXUP",SWIG_From_int(static_cast< int >(0x0004))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NOPRELINEARIZATION",SWIG_From_int(static_cast< int >(0x0010))); + SWIG_Python_SetConstant(d, "cmsFLAGS_GUESSDEVICECLASS",SWIG_From_int(static_cast< int >(0x0020))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NOTCACHE",SWIG_From_int(static_cast< int >(0x0040))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NOTPRECALC",SWIG_From_int(static_cast< int >(0x0100))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NULLTRANSFORM",SWIG_From_int(static_cast< int >(0x0200))); + SWIG_Python_SetConstant(d, "cmsFLAGS_HIGHRESPRECALC",SWIG_From_int(static_cast< int >(0x0400))); + SWIG_Python_SetConstant(d, "cmsFLAGS_LOWRESPRECALC",SWIG_From_int(static_cast< int >(0x0800))); + SWIG_Python_SetConstant(d, "cmsFLAGS_WHITEBLACKCOMPENSATION",SWIG_From_int(static_cast< int >(0x2000))); + SWIG_Python_SetConstant(d, "cmsFLAGS_BLACKPOINTCOMPENSATION",SWIG_From_int(static_cast< int >(0x2000))); + SWIG_Python_SetConstant(d, "cmsFLAGS_GAMUTCHECK",SWIG_From_int(static_cast< int >(0x1000))); + SWIG_Python_SetConstant(d, "cmsFLAGS_SOFTPROOFING",SWIG_From_int(static_cast< int >(0x4000))); + SWIG_Python_SetConstant(d, "cmsFLAGS_PRESERVEBLACK",SWIG_From_int(static_cast< int >(0x8000))); + SWIG_Python_SetConstant(d, "cmsFLAGS_NODEFAULTRESOURCEDEF",SWIG_From_int(static_cast< int >(0x01000000))); + SWIG_Python_SetConstant(d, "LCMS_PRESERVE_PURE_K",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "LCMS_PRESERVE_K_PLANE",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "LCMS_ERROR_ABORT",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "LCMS_ERROR_SHOW",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "LCMS_ERROR_IGNORE",SWIG_From_int(static_cast< int >(2))); + SWIG_Python_SetConstant(d, "LCMS_ERRC_WARNING",SWIG_From_int(static_cast< int >(0x1000))); + SWIG_Python_SetConstant(d, "LCMS_ERRC_RECOVERABLE",SWIG_From_int(static_cast< int >(0x2000))); + SWIG_Python_SetConstant(d, "LCMS_ERRC_ABORTED",SWIG_From_int(static_cast< int >(0x3000))); + SWIG_Python_SetConstant(d, "SAMPLER_INSPECT",SWIG_From_int(static_cast< int >(0x01000000))); + SWIG_Python_SetConstant(d, "VX",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "VY",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "VZ",SWIG_From_int(static_cast< int >(2))); + SWIG_Python_SetConstant(d, "LUT_HASMATRIX",SWIG_From_int(static_cast< int >(0x0001))); + SWIG_Python_SetConstant(d, "LUT_HASTL1",SWIG_From_int(static_cast< int >(0x0002))); + SWIG_Python_SetConstant(d, "LUT_HASTL2",SWIG_From_int(static_cast< int >(0x0008))); + SWIG_Python_SetConstant(d, "LUT_HAS3DGRID",SWIG_From_int(static_cast< int >(0x0010))); + SWIG_Python_SetConstant(d, "LUT_HASMATRIX3",SWIG_From_int(static_cast< int >(0x0020))); + SWIG_Python_SetConstant(d, "LUT_HASMATRIX4",SWIG_From_int(static_cast< int >(0x0040))); + SWIG_Python_SetConstant(d, "LUT_HASTL3",SWIG_From_int(static_cast< int >(0x0100))); + SWIG_Python_SetConstant(d, "LUT_HASTL4",SWIG_From_int(static_cast< int >(0x0200))); + SWIG_Python_SetConstant(d, "LUT_V4_OUTPUT_EMULATE_V2",SWIG_From_int(static_cast< int >(0x10000))); + SWIG_Python_SetConstant(d, "LUT_V4_INPUT_EMULATE_V2",SWIG_From_int(static_cast< int >(0x20000))); + SWIG_Python_SetConstant(d, "LUT_V2_OUTPUT_EMULATE_V4",SWIG_From_int(static_cast< int >(0x40000))); + SWIG_Python_SetConstant(d, "LUT_V2_INPUT_EMULATE_V4",SWIG_From_int(static_cast< int >(0x80000))); + SWIG_Python_SetConstant(d, "MATSHAPER_HASMATRIX",SWIG_From_int(static_cast< int >(0x0001))); + SWIG_Python_SetConstant(d, "MATSHAPER_HASSHAPER",SWIG_From_int(static_cast< int >(0x0002))); + SWIG_Python_SetConstant(d, "MATSHAPER_INPUT",SWIG_From_int(static_cast< int >(0x0004))); + SWIG_Python_SetConstant(d, "MATSHAPER_OUTPUT",SWIG_From_int(static_cast< int >(0x0008))); + SWIG_Python_SetConstant(d, "MATSHAPER_HASINPSHAPER",SWIG_From_int(static_cast< int >(0x0010))); + SWIG_Python_SetConstant(d, "MATSHAPER_ALLSMELTED",SWIG_From_int(static_cast< int >((0x0004|0x0008)))); + SWIG_Python_SetConstant(d, "MAX_TABLE_TAG",SWIG_From_int(static_cast< int >(100))); + SWIG_Python_SetConstant(d, "XYZRel",SWIG_From_int(static_cast< int >(0))); + SWIG_Python_SetConstant(d, "LabRel",SWIG_From_int(static_cast< int >(1))); + SWIG_Python_SetConstant(d, "LCMS_BPFLAGS_D50_ADAPTED",SWIG_From_int(static_cast< int >(0x0001))); +} + |