/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.28 * * 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 SWIGRUBY #ifdef __cplusplus template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } SwigValueWrapper(const SwigValueWrapper& 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& rhs); }; #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) # if (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif # 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 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 for Windows DLLs */ #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # define SWIGEXPORT # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #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) # if (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif # 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 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 for Windows DLLs */ #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # define SWIGEXPORT # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /*********************************************************************** * 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 "2" /* 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 /* 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 () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; 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 #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store inforomation 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" == "Class", 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 (int)(*f1 - *f2); } return (l1 - f1) - (l2 - f2); } /* Check type equivalence in a name list like ||... 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 ||... 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) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* 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 #include /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) #endif #ifndef LL2NUM #define LL2NUM(x) INT2NUM((long) (x)) #endif #ifndef ULL2NUM #define ULL2NUM(x) UINT2NUM((unsigned long) (x)) #endif /* Ruby 1.7 doesn't (yet) define NUM2ULL() */ #ifndef NUM2ULL #ifdef HAVE_LONG_LONG #define NUM2ULL(x) rb_num2ull((x)) #else #define NUM2ULL(x) NUM2ULONG(x) #endif #endif /* * Need to be very careful about how these macros are defined, especially * when compiling C++ code or C code with an ANSI C compiler. * * VALUEFUNC(f) is a macro used to typecast a C function that implements * a Ruby method so that it can be passed as an argument to API functions * like rb_define_method() and rb_define_singleton_method(). * * VOIDFUNC(f) is a macro used to typecast a C function that implements * either the "mark" or "free" stuff for a Ruby Data object, so that it * can be passed as an argument to API functions like Data_Wrap_Struct() * and Data_Make_Struct(). */ #ifdef __cplusplus # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((void (*)()) f) # else # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # else /* These definitions should work for Ruby 1.7+ */ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # endif # endif #else # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) #endif /* Don't use for expressions have side effect */ #ifndef RB_STRING_VALUE #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) #endif #ifndef StringValue #define StringValue(s) RB_STRING_VALUE(s) #endif #ifndef StringValuePtr #define StringValuePtr(s) RSTRING(RB_STRING_VALUE(s))->ptr #endif #ifndef StringValueLen #define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len #endif #ifndef SafeStringValue #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_str(v);\ } while (0) #endif #ifndef HAVE_RB_DEFINE_ALLOC_FUNC #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ /* Define some additional error types */ #define SWIG_ObjectPreviouslyDeletedError -100 /* Define custom exceptions for errors that do not map to existing Ruby exceptions. Note this only works for C++ since a global cannot be initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/ SWIGINTERN VALUE getNullReferenceError(void) { static int init = 0; static VALUE rb_eNullReferenceError ; if (!init) { init = 1; rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); } return rb_eNullReferenceError; } SWIGINTERN VALUE getObjectPreviouslyDeletedError(void) { static int init = 0; static VALUE rb_eObjectPreviouslyDeleted ; if (!init) { init = 1; rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); } return rb_eObjectPreviouslyDeleted; } SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code) { VALUE type; switch (SWIG_code) { case SWIG_MemoryError: type = rb_eNoMemError; break; case SWIG_IOError: type = rb_eIOError; break; case SWIG_RuntimeError: type = rb_eRuntimeError; break; case SWIG_IndexError: type = rb_eIndexError; break; case SWIG_TypeError: type = rb_eTypeError; break; case SWIG_DivisionByZero: type = rb_eZeroDivError; break; case SWIG_OverflowError: type = rb_eRangeError; break; case SWIG_SyntaxError: type = rb_eSyntaxError; break; case SWIG_ValueError: type = rb_eArgError; break; case SWIG_SystemError: type = rb_eFatal; break; case SWIG_AttributeError: type = rb_eRuntimeError; break; case SWIG_NullReferenceError: type = getNullReferenceError(); break; case SWIG_ObjectPreviouslyDeletedError: type = getObjectPreviouslyDeletedError(); break; case SWIG_UnknownError: type = rb_eRuntimeError; break; default: type = rb_eRuntimeError; } return type; } /*********************************************************************** * rubytracking.swg * * This file contains support for tracking mappings from * Ruby objects to C++ objects. This functionality is needed * to implement mark functions for Ruby's mark and sweep * garbage collector. ************************************************************************/ #ifdef __cplusplus extern "C" { #endif /* Global Ruby hash table to store Trackings from C/C++ structs to Ruby Objects. */ static VALUE swig_ruby_trackings; /* Global variable that stores a reference to the ruby hash table delete function. */ static ID swig_ruby_hash_delete = 0; /* Setup a Ruby hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a ruby hash table to store Trackings from C++ objects to Ruby objects. Also make sure to tell the garabage collector about the hash table. */ swig_ruby_trackings = rb_hash_new(); rb_gc_register_address(&swig_ruby_trackings); /* Now store a reference to the hash table delete function so that we only have to look it up once.*/ swig_ruby_hash_delete = rb_intern("delete"); } /* Get a Ruby number to reference a pointer */ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { /* We cast the pointer to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the pointer to a Ruby number */ unsigned long value = (unsigned long) ptr; return LONG2NUM(value); } /* Get a Ruby number to reference an object */ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { /* We cast the object to an unsigned long and then store a reference to it using a Ruby number object. */ /* Convert the Object to a Ruby number */ unsigned long value = (unsigned long) object; return LONG2NUM(value); } /* Get a Ruby object from a previously stored reference */ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { /* The provided Ruby number object is a reference to the Ruby object we want.*/ /* First convert the Ruby number to a C number */ unsigned long value = NUM2LONG(reference); return (VALUE) value; } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* In a Ruby hash table we store the pointer and the associated Ruby object. The trick here is that we cannot store the Ruby object directly - if we do then it cannot be garbage collected. So instead we typecast it as a unsigned long and convert it to a Ruby number object.*/ /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Get a reference to the Ruby object as a Ruby number */ VALUE value = SWIG_RubyObjectToReference(object); /* Store the mapping to the global hash table. */ rb_hash_aset(swig_ruby_trackings, key, value); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Now lookup the value stored in the global hash table */ VALUE value = rb_hash_aref(swig_ruby_trackings, key); if (value == Qnil) { /* No object exists - return nil. */ return Qnil; } else { /* Convert this value to Ruby object */ return SWIG_RubyReferenceToObject(value); } } /* Remove a Tracking from a C/C++ struct to a Ruby object. It is very important to remove objects once they are destroyed since the same memory address may be reused later to create a new object. */ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { /* Get a reference to the pointer as a Ruby number */ VALUE key = SWIG_RubyPtrToReference(ptr); /* Delete the object from the hash table by calling Ruby's do this we need to call the Hash.delete method.*/ rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); } /* This is a helper method that unlinks a Ruby object from its underlying C++ object. This is needed if the lifetime of the Ruby object is longer than the C++ object */ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { VALUE object = SWIG_RubyInstanceFor(ptr); if (object != Qnil) { DATA_PTR(object) = 0; } } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Ruby API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { if (NIL_P(target)) { target = o; } else { if (TYPE(target) != T_ARRAY) { VALUE o2 = target; target = rb_ary_new(); rb_ary_push(target, o2); } rb_ary_push(target, o); } return target; } #ifdef __cplusplus } #endif /*********************************************************************** * rubyrun.swg * * This file contains the runtime support for Ruby modules * and includes code for managing global variables and pointer * type checking. * ************************************************************************/ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 /* for raw pointers */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) #define swig_owntype ruby_owntype /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_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_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg) #define SWIG_fail goto fail /* Ruby-specific SWIG API */ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* cc-mode */ #endif #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; static VALUE _mSWIG = Qnil; static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; static VALUE rubyExceptionClass ; if (!init) { init = 1; rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); } return rubyExceptionClass; } /* This code checks to see if the Ruby object being raised as part of an exception inherits from the Ruby class Exception. If so, the object is simply returned. If not, then a new Ruby exception object is created and that will be returned to Ruby.*/ SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { VALUE exceptionClass = getExceptionClass(); if (rb_obj_is_kind_of(obj, exceptionClass)) { return obj; } else { return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); } } /* Initialize Ruby runtime support */ SWIGRUNTIME void SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); } } /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { VALUE klass; char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; char *klass_name; swig_class *sklass; VALUE klass; VALUE obj; if (!ptr) return Qnil; if (type->clientdata) { sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ if (sklass->trackObjects) { obj = SWIG_RubyInstanceFor(ptr); if (obj != Qnil) { return obj; } } /* Create a new Ruby object */ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr); /* If tracking is on for this class then track this object. */ if (sklass->trackObjects) { SWIG_RubyAddTracking(ptr, obj); } } else { klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(klass_name)); free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name)); return obj; } /* Create a new class instance (always owned) */ SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) { VALUE obj; swig_class *sklass = (swig_class *) type->clientdata; obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name)); return obj; } /* Get type mangle from class name */ SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { VALUE stype = rb_iv_get(obj, "__swigtype__"); return StringValuePtr(stype); } /* Acquire a pointer value */ typedef void (*ruby_owntype)(void*); SWIGRUNTIME ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { if (obj) { ruby_owntype oldown = RDATA(obj)->dfree; RDATA(obj)->dfree = own; return oldown; } else { return 0; } } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) *own = RDATA(obj)->dfree; /* Check to see if the input object is giving up ownership of the underlying C struct or C++ object. If so then we need to reset the destructor since the Ruby object no longer owns the underlying C++ object.*/ if (flags & SWIG_POINTER_DISOWN) { /* Is tracking on for this class? */ int track = 0; if (ty && ty->clientdata) { swig_class *sklass = (swig_class *) ty->clientdata; track = sklass->trackObjects; } if (track) { /* We are tracking objects for this class. Thus we change the destructor * to SWIG_RubyRemoveTracking. This allows us to * remove the mapping from the C++ to Ruby object * when the Ruby object is garbage collected. If we don't * do this, then it is possible we will return a reference * to a Ruby object that no longer exists thereby crashing Ruby. */ RDATA(obj)->dfree = SWIG_RubyRemoveTracking; } else { RDATA(obj)->dfree = 0; } } /* Do type-checking if type info was provided */ if (ty) { if (ty->clientdata) { if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { if (vptr == 0) { /* The object has already been deleted */ return SWIG_ObjectPreviouslyDeletedError; } *ptr = vptr; return SWIG_OK; } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } *ptr = SWIG_TypeCast(tc, vptr); } else { *ptr = vptr; } return SWIG_OK; } /* Check convert */ SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) { char *c = SWIG_MangleStr(obj); if (!c) return 0; return SWIG_TypeCheck(c,ty) != 0; } SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; *(r++) = '_'; r = SWIG_PackData(r, ptr, sz); strcpy(r, type->name); return rb_str_new2(result); } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c; if (TYPE(obj) != T_STRING) goto type_error; c = StringValuePtr(obj); /* Pointer values must start with leading underscore */ if (*c != '_') goto type_error; c++; c = SWIG_UnpackData(c, ptr, sz); if (ty) { tc = SWIG_TypeCheck(c, ty); if (!tc) goto type_error; } return SWIG_OK; type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ rb_gv_set("VERBOSE", Qfalse); /* first check if pointer already created */ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); if (pointer != Qnil) { Data_Get_Struct(pointer, swig_module_info, ret); } /* reinstate warnings */ rb_gv_set("VERBOSE", verbose); return ret; } SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer) { /* register a new class */ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); /* create and store the structure pointer to a global variable */ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } #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_CamBasin swig_types[0] #define SWIGTYPE_p_CamBitmapFont swig_types[1] #define SWIGTYPE_p_CamBlobInfo swig_types[2] #define SWIGTYPE_p_CamBlobs swig_types[3] #define SWIGTYPE_p_CamImage swig_types[4] #define SWIGTYPE_p_CamLinearFilterKernel swig_types[5] #define SWIGTYPE_p_CamMeasuresResults swig_types[6] #define SWIGTYPE_p_CamMorphoMathsKernel swig_types[7] #define SWIGTYPE_p_CamPoint swig_types[8] #define SWIGTYPE_p_CamRLEImage swig_types[9] #define SWIGTYPE_p_CamROI swig_types[10] #define SWIGTYPE_p_CamRun swig_types[11] #define SWIGTYPE_p_CamSepFilterKernel swig_types[12] #define SWIGTYPE_p_CamTable swig_types[13] #define SWIGTYPE_p_CamTableOfBasins swig_types[14] #define SWIGTYPE_p_char swig_types[15] #define SWIGTYPE_p_int swig_types[16] #define SWIGTYPE_p_p_char swig_types[17] #define SWIGTYPE_p_unsigned_char swig_types[18] #define SWIGTYPE_p_void swig_types[19] static swig_type_info *swig_types[21]; static swig_module_info swig_module = {swig_types, 20, 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) -------- */ #define SWIG_init Init_camellia #define SWIG_name "Camellia" static VALUE mCamellia; #define SWIGVERSION 0x010328 #define SWIG_as_voidptr(a) const_cast(static_cast(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast(a)) #include #include "../inc/camellia.h" #ifdef __cplusplus extern "C" { #endif #include "rubyio.h" #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif #ifdef HAVE_SYS_TIME_H # include struct timeval rb_time_timeval(VALUE); #endif #ifdef __cplusplus } #endif SWIGINTERN swig_type_info* SWIG_pchar_descriptor() { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > LONG_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj(const_cast(carray), pchar_descriptor, 0) : Qnil; } else { return rb_str_new(carray, static_cast(size)); } } else { return Qnil; } } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } #include #ifndef LLONG_MIN # define LLONG_MIN LONG_LONG_MIN #endif #ifndef LLONG_MAX # define LLONG_MAX LONG_LONG_MAX #endif #ifndef ULLONG_MAX # define ULLONG_MAX ULONG_LONG_MAX #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long (VALUE obj, long* val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int (VALUE 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(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_bool (bool value) { return value ? Qtrue : Qfalse; } SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { char *cstr = rb_string_value_ptr(&(obj)); size_t size = RSTRING(obj)->len + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = reinterpret_cast(memcpy((new char[size]), cstr, sizeof(char)*(size))); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { char* vptr = 0; if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = vptr; if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } #define SWIG_From_double rb_float_new SWIGINTERNINLINE VALUE SWIG_From_float (float value) { return SWIG_From_double (value); } /*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_unsigned_SS_short (VALUE 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(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_short (unsigned short value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN int CamTable___getitem__(CamTable *self,int n){ if ((n>=0)&&(nsize)&&(nt[n]; else camError("CamTable","Index out of range"); return self->t[0]; } SWIGINTERN void CamTable___setitem__(CamTable *self,int n,int val){ if ((n>=0)&&(nsize)&&(nt[n]=val; else camError("CamTable","Index out of range"); } SWIGINTERN void CamTable_each(CamTable *self){ for (int i=0;isize;i++) { VALUE obj = INT2FIX(self->t[i]); if (obj != Qnil) { rb_yield(obj); } } } SWIGINTERN CamBlobInfo CamBlobs___getitem__(CamBlobs *self,int n){ if ((n>=0)&&(nnbBlobs)) return self->blobInfo[n]; else camError("CamBlobs","Index out of range"); return self->blobInfo[0]; } SWIGINTERN void CamBlobs_each(CamBlobs *self){ for (int i=0;inbBlobs;i++) { VALUE obj = SWIG_NewPointerObj((new CamBlobInfo(self->blobInfo[i])), SWIGTYPE_p_CamBlobInfo, SWIG_POINTER_OWN); if (obj != Qnil) { rb_yield(obj); } } } SWIGINTERN CamBasin CamTableOfBasins___getitem__(CamTableOfBasins *self,int n){ if ((n>=0)&&(nnbBasins)) return self->tab[n]; else camError("CamTableOfBasins","Index out of range"); return self->tab[0]; } SWIGINTERN void CamTableOfBasins_each(CamTableOfBasins *self){ for (int i=0;inbBasins;i++) { VALUE obj = SWIG_NewPointerObj(&self->tab[i], SWIGTYPE_p_CamBasin, 0 ); if (obj != Qnil) { rb_yield(obj); } } } static void mark_CamImage(void *ptr) { CamImage *image=(CamImage*)ptr; if (image->roi) { VALUE object = SWIG_RubyInstanceFor(image->roi); if (object != Qnil) { rb_gc_mark(object); } } if (image->mask) { VALUE object = SWIG_RubyInstanceFor(image->mask); if (object != Qnil) { rb_gc_mark(object); } } } void camErrorRuby(char *module, char *error) { rb_raise(rb_eRuntimeError,"Error in %s : %s",module,error); } swig_class cCamROI; SWIGINTERN VALUE _wrap_CamROI_coi_set(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coi" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coi" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->coi = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_coi_get(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coi" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->coi); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_xOffset_set(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xOffset" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xOffset" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->xOffset = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_xOffset_get(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xOffset" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->xOffset); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_yOffset_set(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "yOffset" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "yOffset" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->yOffset = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_yOffset_get(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "yOffset" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->yOffset); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_width_set(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "width" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "width" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->width = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_width_get(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "width" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->width); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_height_set(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "height" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->height = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_height_get(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->height); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamROI__SWIG_0(int argc, VALUE *argv, VALUE self) { CamROI *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamROI *)new CamROI(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamROI__SWIG_1(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; CamROI *result = 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamROI" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CamROI" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CamROI" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CamROI" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CamROI" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (CamROI *)new CamROI(arg1,arg2,arg3,arg4,arg5); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamROI__SWIG_2(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = 0 ; int arg2 ; CamROI *result = 0 ; void *argp1 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CamROI" "', argument " "1"" of type '" "CamImage const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CamROI" "', argument " "1"" of type '" "CamImage const &""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CamROI" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (CamROI *)new CamROI((CamImage const &)*arg1,arg2); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamROI_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamROI_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamROI); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamROI__SWIG_3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = 0 ; CamROI *result = 0 ; void *argp1 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CamROI" "', argument " "1"" of type '" "CamImage const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CamROI" "', argument " "1"" of type '" "CamImage const &""'"); } arg1 = reinterpret_cast(argp1); result = (CamROI *)new CamROI((CamImage const &)*arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamROI(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs; if (argc > 5) SWIG_fail; for (ii = 0; (ii < argc); ii++) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_CamROI__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CamROI__SWIG_3(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CamROI__SWIG_2(nargs, args, self); } } } if (argc == 5) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CamROI__SWIG_1(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'new_CamROI'"); return Qnil; } SWIGINTERN void free_CamROI(CamROI *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } SWIGINTERN VALUE _wrap_CamROI_intersect(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; CamROI *arg2 = 0 ; CamROI result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intersect" "', argument " "1"" of type '" "CamROI const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamROI, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "intersect" "', argument " "2"" of type '" "CamROI const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "intersect" "', argument " "2"" of type '" "CamROI const &""'"); } arg2 = reinterpret_cast(argp2); result = ((CamROI const *)arg1)->intersect((CamROI const &)*arg2); vresult = SWIG_NewPointerObj((new CamROI(static_cast(result))), SWIGTYPE_p_CamROI, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_clip(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clip" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "clip" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "clip" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->clip(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_reduce(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "reduce" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "reduce" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->reduce(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamROI_enlarge(int argc, VALUE *argv, VALUE self) { CamROI *arg1 = (CamROI *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamROI, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "enlarge" "', argument " "1"" of type '" "CamROI *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "enlarge" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->enlarge(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } swig_class cCamImage; SWIGINTERN VALUE _wrap_CamImage_nSize_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nSize" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nSize); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_id_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "id" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->id); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_nChannels_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nChannels" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nChannels); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alphaChannel_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alphaChannel" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->alphaChannel); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_depth_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "depth" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->depth); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_colorModel_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorModel" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (char *)(char *) ((arg1)->colorModel); { size_t size = 4; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_channelSeq_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "channelSeq" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (char *)(char *) ((arg1)->channelSeq); { size_t size = 4; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dataOrder_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dataOrder" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->dataOrder); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_origin_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "origin" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->origin); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_align_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "align" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->align); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_width_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "width" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->width); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_height_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->height); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_roi_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamROI *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "roi" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (CamROI *) ((arg1)->roi); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamROI, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_mask_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mask" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (void *) ((arg1)->mask); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_imageId_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageId" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (void *) ((arg1)->imageId); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_misc_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "misc" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (void *) ((arg1)->misc); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_imageSize_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageSize" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->imageSize); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_imageData_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; unsigned char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageData" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned char *) ((arg1)->imageData); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_widthStep_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "widthStep" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->widthStep); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_borderMode_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "borderMode" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int *)(int *) ((arg1)->borderMode); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_borderConst_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "borderConst" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int *)(int *) ((arg1)->borderConst); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_imageDataOrigin_get(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; unsigned char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageDataOrigin" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned char *) ((arg1)->imageDataOrigin); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamImage__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamImage *)new CamImage(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamImage__SWIG_1(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; int arg3 ; int arg4 ; CamImage *result = 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamImage" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CamImage" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CamImage" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CamImage" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (CamImage *)new CamImage(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamImage__SWIG_2(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; int arg3 ; CamImage *result = 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamImage" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CamImage" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CamImage" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (CamImage *)new CamImage(arg1,arg2,arg3); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamImage__SWIG_3(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; CamImage *result = 0 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamImage" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CamImage" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (CamImage *)new CamImage(arg1,arg2); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamImage_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamImage_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamImage); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamImage__SWIG_4(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = 0 ; CamImage *result = 0 ; void *argp1 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CamImage" "', argument " "1"" of type '" "CamImage const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CamImage" "', argument " "1"" of type '" "CamImage const &""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *)new CamImage((CamImage const &)*arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamImage(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ii++) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_CamImage__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CamImage__SWIG_4(nargs, args, self); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_int(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_CamImage__SWIG_3(nargs, args, self); } } } if (argc == 3) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _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_new_CamImage__SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CamImage__SWIG_1(nargs, args, self); } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'new_CamImage'"); return Qnil; } SWIGINTERN void free_CamImage(CamImage *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } SWIGINTERN VALUE _wrap_CamImage_clone(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clone" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *)((CamImage const *)arg1)->clone(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_copy__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "copy" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *)((CamImage const *)arg1)->copy(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_copy__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "copy" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "copy" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "copy" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->copy(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_copy(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_copy__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_copy__SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_copy'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_allocatedq___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "allocated" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)((CamImage const *)arg1)->allocated(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "alloc" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "alloc" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (bool)(arg1)->alloc(arg2,arg3,arg4,arg5); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "alloc" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (bool)(arg1)->alloc(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc__SWIG_2(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->alloc(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 6) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_CamImage_alloc__SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_alloc__SWIG_1(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_alloc__SWIG_0(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_alloc'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_deallocN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dealloc" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->dealloc(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc_rgb(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc_rgb" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc_rgb" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc_rgb" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->alloc_rgb(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc_rgba(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc_rgba" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc_rgba" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc_rgba" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->alloc_rgba(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alloc_yuv(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc_yuv" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc_yuv" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "alloc_yuv" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->alloc_yuv(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_load_pgm(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "load_pgm" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "load_pgm" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; result = (bool)(arg1)->load_pgm((char const *)arg2); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_save_pgm(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "save_pgm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "save_pgm" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; result = (bool)((CamImage const *)arg1)->save_pgm((char const *)arg2); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_load_bmp(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "load_bmp" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "load_bmp" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; result = (bool)(arg1)->load_bmp((char const *)arg2); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_save_bmp(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "save_bmp" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "save_bmp" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; result = (bool)((CamImage const *)arg1)->save_bmp((char const *)arg2); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_set_roi(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamROI *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_roi" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamROI, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "set_roi" "', argument " "2"" of type '" "CamROI const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "set_roi" "', argument " "2"" of type '" "CamROI const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->set_roi((CamROI const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_get_pixels(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char **arg2 = (char **) 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *temp2 = 0 ; int tempn2 ; VALUE vresult = Qnil; arg2 = &temp2; arg3 = &tempn2; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_pixels" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ((CamImage const *)arg1)->get_pixels(arg2,arg3); if (*arg2) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3)); delete[](*arg2); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_set_pixels(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_pixels" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); { arg2=STR2CSTR(argv[0]); arg3=(int)RSTRING(argv[0])->len; } result = (bool)(arg1)->set_pixels((char const *)arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_inspect(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char **arg2 = (char **) 0 ; int *arg3 = (int *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *temp2 = 0 ; int tempn2 ; VALUE vresult = Qnil; arg2 = &temp2; arg3 = &tempn2; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inspect" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ((CamImage const *)arg1)->inspect(arg2,arg3); if (*arg2) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_FromCharPtrAndSize(*arg2,*arg3)); delete[](*arg2); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_view(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "view" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)((CamImage const *)arg1)->view(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_setN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->set(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_alpha_composite(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alpha_composite" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "alpha_composite" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "alpha_composite" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "alpha_composite" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "alpha_composite" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamImage const *)arg1)->alpha_composite((CamImage const &)*arg2,*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_square3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_square3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->erode_square3(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_square3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_square3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_square3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_square3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->erode_square3(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_circle5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_circle5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->erode_circle5(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_circle5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_circle5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_circle5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_circle5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->erode_circle5(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_circle7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_circle7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->erode_circle7(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_circle7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_circle7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_circle7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_circle7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->erode_circle7(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_square3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_square3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->dilate_square3(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_square3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_square3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_square3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_square3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->dilate_square3(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_circle5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_circle5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->dilate_circle5(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_circle5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_circle5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_circle5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_circle5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->dilate_circle5(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_circle7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_circle7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->dilate_circle7(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_circle7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_circle7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_circle7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_circle7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->dilate_circle7(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_square3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_square3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->morpho_gradient_square3(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_square3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_square3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "morpho_gradient_square3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_gradient_square3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->morpho_gradient_square3(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_circle5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_circle5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->morpho_gradient_circle5(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_circle5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_circle5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "morpho_gradient_circle5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_gradient_circle5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->morpho_gradient_circle5(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_circle7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_circle7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->morpho_gradient_circle7(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_gradient_circle7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_gradient_circle7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "morpho_gradient_circle7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_gradient_circle7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->morpho_gradient_circle7(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_mathsN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_maths" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "morpho_maths" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_maths" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->morpho_maths((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_morpho_maths(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "morpho_maths" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "morpho_maths" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_maths" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "morpho_maths" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "morpho_maths" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->morpho_maths(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_3x3" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_3x3" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->erode_3x3((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "erode_3x3" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_3x3" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->erode_3x3(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_3x3" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_3x3" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->dilate_3x3((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dilate_3x3" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_3x3" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->dilate_3x3(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_5x5" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_5x5" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->erode_5x5((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "erode_5x5" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_5x5" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->erode_5x5(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_5x5" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_5x5" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->dilate_5x5((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dilate_5x5" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_5x5" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->dilate_5x5(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_7x7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_7x7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_7x7" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_7x7" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->erode_7x7((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_erode_7x7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_7x7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_7x7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_7x7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "erode_7x7" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_7x7" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->erode_7x7(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_7x7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMorphoMathsKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_7x7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_7x7" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_7x7" "', argument " "2"" of type '" "CamMorphoMathsKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->dilate_7x7((CamMorphoMathsKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_dilate_7x7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamMorphoMathsKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dilate_7x7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dilate_7x7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_7x7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamMorphoMathsKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "dilate_7x7" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "dilate_7x7" "', argument " "3"" of type '" "CamMorphoMathsKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->dilate_7x7(*arg2,(CamMorphoMathsKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamLinearFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_3x3" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_3x3" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->linear_filter_3x3((CamLinearFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamLinearFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "linear_filter_3x3" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_3x3" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->linear_filter_3x3(*arg2,(CamLinearFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamLinearFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_5x5" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_5x5" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->linear_filter_5x5((CamLinearFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamLinearFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "linear_filter_5x5" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_5x5" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->linear_filter_5x5(*arg2,(CamLinearFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_abs_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamLinearFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_abs_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_abs_3x3" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_3x3" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->linear_filter_abs_3x3((CamLinearFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_abs_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamLinearFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_abs_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_abs_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "linear_filter_abs_3x3" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_3x3" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->linear_filter_abs_3x3(*arg2,(CamLinearFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_abs_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamLinearFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_abs_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_abs_5x5" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_5x5" "', argument " "2"" of type '" "CamLinearFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->linear_filter_abs_5x5((CamLinearFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_linear_filter_abs_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamLinearFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "linear_filter_abs_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "linear_filter_abs_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamLinearFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "linear_filter_abs_5x5" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "linear_filter_abs_5x5" "', argument " "3"" of type '" "CamLinearFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->linear_filter_abs_5x5(*arg2,(CamLinearFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_vN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_v" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->sobel_v(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_hN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_h" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->sobel_h(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_v_absN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_v_abs" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->sobel_v_abs(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_h_absN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_h_abs" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->sobel_h_abs(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_v(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_v" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sobel_v" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sobel_v" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sobel_v(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_h(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_h" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sobel_h" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sobel_h" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sobel_h(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_v_abs(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_v_abs" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sobel_v_abs" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sobel_v_abs" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sobel_v_abs(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sobel_h_abs(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sobel_h_abs" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sobel_h_abs" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sobel_h_abs" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sobel_h_abs(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_3x3" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_3x3" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_3x3((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_3x3" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_3x3" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_3x3(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_5x5" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_5x5" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_5x5((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_5x5" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_5x5" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_5x5(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_7x7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_7x7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_7x7" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_7x7" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_7x7((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_7x7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_7x7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_7x7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_7x7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_7x7" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_7x7" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_7x7(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_3x3N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_3x3" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_3x3" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_3x3" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_abs_3x3((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_3x3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_3x3" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_3x3" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_3x3" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_abs_3x3" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_3x3" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_abs_3x3(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_5x5N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_5x5" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_5x5" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_5x5" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_abs_5x5((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_5x5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_5x5" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_5x5" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_5x5" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_abs_5x5" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_5x5" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_abs_5x5(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_7x7N___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamSepFilterKernel *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_7x7" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_7x7" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_7x7" "', argument " "2"" of type '" "CamSepFilterKernel const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->sep_filter_abs_7x7((CamSepFilterKernel const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sep_filter_abs_7x7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamSepFilterKernel *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sep_filter_abs_7x7" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sep_filter_abs_7x7" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_7x7" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamSepFilterKernel, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sep_filter_abs_7x7" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sep_filter_abs_7x7" "', argument " "3"" of type '" "CamSepFilterKernel const &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->sep_filter_abs_7x7(*arg2,(CamSepFilterKernel const &)*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_fixed_filter(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fixed_filter" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fixed_filter" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "fixed_filter" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fixed_filter" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)((CamImage const *)arg1)->fixed_filter(*arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_fixed_filterN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fixed_filter" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fixed_filter" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->fixed_filter(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_line(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_line" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "draw_line" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_line" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_line" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "draw_line" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "draw_line" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (bool)(arg1)->draw_line(arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_accumulate_line(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "accumulate_line" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "accumulate_line" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "accumulate_line" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "accumulate_line" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "accumulate_line" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "accumulate_line" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (bool)(arg1)->accumulate_line(arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_rectangle(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_rectangle" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "draw_rectangle" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_rectangle" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_rectangle" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "draw_rectangle" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "draw_rectangle" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (bool)(arg1)->draw_rectangle(arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_text_16s(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; int arg7 ; int arg8 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; VALUE vresult = Qnil; if ((argc < 7) || (argc > 7)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_text_16s" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "draw_text_16s" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_text_16s" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_text_16s" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "draw_text_16s" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "draw_text_16s" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); ecode7 = SWIG_AsVal_int(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "draw_text_16s" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast(val7); ecode8 = SWIG_AsVal_int(argv[6], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "draw_text_16s" "', argument " "8"" of type '" "int""'"); } arg8 = static_cast(val8); result = (bool)(arg1)->draw_text_16s((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_text_bitmap(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; int arg4 ; CamBitmapFont *arg5 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 ; int res5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_text_bitmap" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "draw_text_bitmap" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_text_bitmap" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_text_bitmap" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_CamBitmapFont, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "draw_text_bitmap" "', argument " "5"" of type '" "CamBitmapFont const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "draw_text_bitmap" "', argument " "5"" of type '" "CamBitmapFont const &""'"); } arg5 = reinterpret_cast(argp5); result = (bool)(arg1)->draw_text_bitmap((char const *)arg2,arg3,arg4,(CamBitmapFont const &)*arg5); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_circle(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_circle" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "draw_circle" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_circle" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_circle" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "draw_circle" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (bool)(arg1)->draw_circle(arg2,arg3,arg4,arg5); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_draw_ellipse(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "draw_ellipse" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "draw_ellipse" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "draw_ellipse" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "draw_ellipse" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "draw_ellipse" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "draw_ellipse" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (bool)(arg1)->draw_ellipse(arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_plot__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "plot" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (bool)(arg1)->plot(arg2,arg3,arg4,arg5); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_plot__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "plot" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "plot" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "plot" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "plot" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (bool)(arg1)->plot(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_plot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 6) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_plot__SWIG_1(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_plot__SWIG_0(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_plot'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_fill_color__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fill_color" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fill_color" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fill_color" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fill_color" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "fill_color" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (int)(arg1)->fill_color(arg2,arg3,arg4,arg5); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_fill_color__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fill_color" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fill_color" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "fill_color" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "fill_color" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)(arg1)->fill_color(arg2,arg3,arg4); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_fill_color(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 6) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_fill_color__SWIG_1(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_fill_color__SWIG_0(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_fill_color'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_scale(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scale" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scale" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "scale" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->scale(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_set_mask__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_mask" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "set_mask" "', argument " "2"" of type '" "CamRLEImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "set_mask" "', argument " "2"" of type '" "CamRLEImage const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->set_mask((CamRLEImage const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_set_mask__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_mask" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "set_mask" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "set_mask" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->set_mask((CamImage const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_set_mask(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_set_mask__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_set_mask__SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_set_mask'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_apply_lutN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "apply_lut" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "apply_lut" "', argument " "2"" of type '" "CamTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "2"" of type '" "CamTable const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->apply_lut((CamTable const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_apply_lut(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "apply_lut" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "apply_lut" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "apply_lut" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamImage const *)arg1)->apply_lut(*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_yuv__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "to_yuv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *)((CamImage const *)arg1)->to_yuv(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_yuv__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "to_yuv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "to_yuv" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "to_yuv" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->to_yuv(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_yuv(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_to_yuv__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_to_yuv__SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_to_yuv'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_rgb__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "to_rgb" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *)((CamImage const *)arg1)->to_rgb(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_rgb__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "to_rgb" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "to_rgb" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "to_rgb" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->to_rgb(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_to_rgb(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_to_rgb__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_to_rgb__SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_to_rgb'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)((CamImage const *)arg1)->encode(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_lut__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_lut" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_lut" "', argument " "2"" of type '" "CamTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_lut" "', argument " "2"" of type '" "CamTable const &""'"); } arg2 = reinterpret_cast(argp2); result = (CamRLEImage *)((CamImage const *)arg1)->encode_lut((CamTable const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encode_threshold" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (CamRLEImage *)((CamImage const *)arg1)->encode_threshold(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold_inv__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold_inv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "encode_threshold_inv" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (CamRLEImage *)((CamImage const *)arg1)->encode_threshold_inv(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_color(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_color" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_color" "', argument " "2"" of type '" "CamTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_color" "', argument " "2"" of type '" "CamTable const &""'"); } arg2 = reinterpret_cast(argp2); result = (CamRLEImage *)((CamImage const *)arg1)->encode_color((CamTable const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->encode(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_encode__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_encode__SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_encode'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_lut__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_lut" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_lut" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_lut" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "encode_lut" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_lut" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamImage const *)arg1)->encode_lut(*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_lut(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_encode_lut__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_encode_lut__SWIG_1(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_encode_lut'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *arg2 = 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_threshold" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_threshold" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "encode_threshold" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)((CamImage const *)arg1)->encode_threshold(*arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_encode_threshold__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_encode_threshold__SWIG_1(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_encode_threshold'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold_inv__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamRLEImage *arg2 = 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold_inv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_threshold_inv" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_threshold_inv" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "encode_threshold_inv" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)((CamImage const *)arg1)->encode_threshold_inv(*arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_encode_threshold_inv(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_encode_threshold_inv__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_encode_threshold_inv__SWIG_1(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_encode_threshold_inv'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threshold" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "threshold" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "threshold" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "threshold" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)((CamImage const *)arg1)->threshold(*arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold_inv__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threshold_inv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "threshold_inv" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "threshold_inv" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "threshold_inv" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)((CamImage const *)arg1)->threshold_inv(*arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_abs(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "abs" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "abs" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "abs" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (int)((CamImage const *)arg1)->abs(*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threshold" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "threshold" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)(arg1)->threshold(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_threshold__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_threshold__SWIG_0(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_threshold'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold_inv__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threshold_inv" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "threshold_inv" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)(arg1)->threshold_inv(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_threshold_inv(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_threshold_inv__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_threshold_inv__SWIG_0(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_threshold_inv'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_absN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "abs" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int)(arg1)->abs(); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithmN_____SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int arg5 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "arithm" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (int)(arg1)->arithm(arg2,arg3,arg4,arg5); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithmN_____SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "arithm" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)(arg1)->arithm(arg2,arg3,arg4); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithmN_____SWIG_2(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "arithm" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)(arg1)->arithm(arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithmN_____SWIG_3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "arithm" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)(arg1)->arithm(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithmN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 6) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithmN_____SWIG_3(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_CamImage_arithmN_____SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithmN_____SWIG_1(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithmN_____SWIG_0(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_arithm!'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int arg6 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "arithm" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (int)((CamImage const *)arg1)->arithm(*arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int arg4 ; int arg5 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (int)((CamImage const *)arg1)->arithm(*arg2,arg3,arg4,arg5); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_2(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int arg4 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)((CamImage const *)arg1)->arithm(*arg2,arg3,arg4); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_3(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "arithm" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)((CamImage const *)arg1)->arithm(*arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_4(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; int arg4 ; int arg5 ; int arg6 ; int arg7 ; int arg8 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; VALUE vresult = Qnil; if ((argc < 7) || (argc > 7)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "arithm" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); ecode7 = SWIG_AsVal_int(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "arithm" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast(val7); ecode8 = SWIG_AsVal_int(argv[6], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "arithm" "', argument " "8"" of type '" "int""'"); } arg8 = static_cast(val8); result = (int)((CamImage const *)arg1)->arithm((CamImage const &)*arg2,*arg3,arg4,arg5,arg6,arg7,arg8); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_5(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; int arg4 ; int arg5 ; int arg6 ; int arg7 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "arithm" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); ecode7 = SWIG_AsVal_int(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "arithm" "', argument " "7"" of type '" "int""'"); } arg7 = static_cast(val7); result = (int)((CamImage const *)arg1)->arithm((CamImage const &)*arg2,*arg3,arg4,arg5,arg6,arg7); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_6(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; int arg4 ; int arg5 ; int arg6 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); ecode6 = SWIG_AsVal_int(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "arithm" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast(val6); result = (int)((CamImage const *)arg1)->arithm((CamImage const &)*arg2,*arg3,arg4,arg5,arg6); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_7(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; int arg4 ; int arg5 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "arithm" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (int)((CamImage const *)arg1)->arithm((CamImage const &)*arg2,*arg3,arg4,arg5); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm__SWIG_8(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamImage *arg3 = 0 ; int arg4 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "arithm" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "arithm" "', argument " "3"" of type '" "CamImage &""'"); } arg3 = reinterpret_cast(argp3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "arithm" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)((CamImage const *)arg1)->arithm((CamImage const &)*arg2,*arg3,arg4); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_arithm(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[9]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 9) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_3(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_8(nargs, args, self); } } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_2(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_7(nargs, args, self); } } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_1(nargs, args, self); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_6(nargs, args, self); } } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_0(nargs, args, self); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_5(nargs, args, self); } } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_arithm__SWIG_4(nargs, args, self); } } } } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_arithm'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_measures(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamMeasuresResults result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "measures" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = ((CamImage const *)arg1)->measures(); vresult = SWIG_NewPointerObj((new CamMeasuresResults(static_cast(result))), SWIGTYPE_p_CamMeasuresResults, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_average_deviation__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; float result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_deviation" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "average_deviation" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (float)((CamImage const *)arg1)->average_deviation(arg2); vresult = SWIG_From_float(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_average_deviation__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; float result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_deviation" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (float)((CamImage const *)arg1)->average_deviation(); vresult = SWIG_From_float(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_average_deviation(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_average_deviation__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_average_deviation__SWIG_0(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_average_deviation'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sum_hv(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sum_hv" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sum_hv" "', argument " "2"" of type '" "CamTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sum_hv" "', argument " "2"" of type '" "CamTable &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sum_hv" "', argument " "3"" of type '" "CamTable &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sum_hv" "', argument " "3"" of type '" "CamTable &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamImage const *)arg1)->sum_hv(*arg2,*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sum_h(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sum_h" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sum_h" "', argument " "2"" of type '" "CamTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sum_h" "', argument " "2"" of type '" "CamTable &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sum_h(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_sum_v(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sum_v" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sum_v" "', argument " "2"" of type '" "CamTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sum_v" "', argument " "2"" of type '" "CamTable &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->sum_v(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_histogram(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTable *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "histogram" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "histogram" "', argument " "2"" of type '" "CamTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "histogram" "', argument " "2"" of type '" "CamTable &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamImage const *)arg1)->histogram(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_histogram_2_channels__SWIG_0(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; CamImage *arg4 = 0 ; int arg5 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int val5 ; int ecode5 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "histogram_2_channels" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "histogram_2_channels" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "histogram_2_channels" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "histogram_2_channels" "', argument " "4"" of type '" "CamImage &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "histogram_2_channels" "', argument " "4"" of type '" "CamImage &""'"); } arg4 = reinterpret_cast(argp4); ecode5 = SWIG_AsVal_int(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "histogram_2_channels" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast(val5); result = (bool)((CamImage const *)arg1)->histogram_2_channels(arg2,arg3,*arg4,arg5); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_histogram_2_channels__SWIG_1(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; CamImage *arg4 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "histogram_2_channels" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "histogram_2_channels" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "histogram_2_channels" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "histogram_2_channels" "', argument " "4"" of type '" "CamImage &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "histogram_2_channels" "', argument " "4"" of type '" "CamImage &""'"); } arg4 = reinterpret_cast(argp4); result = (bool)((CamImage const *)arg1)->histogram_2_channels(arg2,arg3,*arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_histogram_2_channels(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 6) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamImage_histogram_2_channels__SWIG_1(nargs, args, self); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamImage, 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) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CamImage_histogram_2_channels__SWIG_0(nargs, args, self); } } } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamImage_histogram_2_channels'"); return Qnil; } SWIGINTERN VALUE _wrap_CamImage_find_threshold(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "find_threshold" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "find_threshold" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)((CamImage const *)arg1)->find_threshold(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_hough_circle(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; int arg2 ; int arg3 ; int arg4 ; int *arg5 = 0 ; int *arg6 = 0 ; int *arg7 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int temp5 ; int res5 = SWIG_TMPOBJ ; int temp6 ; int res6 = SWIG_TMPOBJ ; int temp7 ; int res7 = SWIG_TMPOBJ ; VALUE vresult = Qnil; arg5 = &temp5; arg6 = &temp6; arg7 = &temp7; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hough_circle" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hough_circle" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "hough_circle" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "hough_circle" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)((CamImage const *)arg1)->hough_circle(arg2,arg3,arg4,*arg5,*arg6,*arg7); vresult = SWIG_From_int(static_cast(result)); if (SWIG_IsTmpObj(res5)) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg5))); } else { int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); } if (SWIG_IsTmpObj(res6)) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg6))); } else { int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); } if (SWIG_IsTmpObj(res7)) { vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_int((*arg7))); } else { int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ; vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_int, new_flags)); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_hierarchical_watershed(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamTableOfBasins *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hierarchical_watershed" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hierarchical_watershed" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "hierarchical_watershed" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTableOfBasins, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "hierarchical_watershed" "', argument " "3"" of type '" "CamTableOfBasins &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "hierarchical_watershed" "', argument " "3"" of type '" "CamTableOfBasins &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->hierarchical_watershed(*arg2,*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_hierarchical_watershed_contours(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamImage *arg2 = 0 ; CamTableOfBasins *arg3 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hierarchical_watershed_contours" "', argument " "1"" of type '" "CamImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hierarchical_watershed_contours" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "hierarchical_watershed_contours" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTableOfBasins, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "hierarchical_watershed_contours" "', argument " "3"" of type '" "CamTableOfBasins &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "hierarchical_watershed_contours" "', argument " "3"" of type '" "CamTableOfBasins &""'"); } arg3 = reinterpret_cast(argp3); result = (int)((CamImage const *)arg1)->hierarchical_watershed_contours(*arg2,*arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamImage_hierarchical_watershed_regionsN___(int argc, VALUE *argv, VALUE self) { CamImage *arg1 = (CamImage *) 0 ; CamTableOfBasins *arg2 = 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hierarchical_watershed_regions" "', argument " "1"" of type '" "CamImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTableOfBasins, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hierarchical_watershed_regions" "', argument " "2"" of type '" "CamTableOfBasins const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "hierarchical_watershed_regions" "', argument " "2"" of type '" "CamTableOfBasins const &""'"); } arg2 = reinterpret_cast(argp2); result = (int)(arg1)->hierarchical_watershed_regions((CamTableOfBasins const &)*arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } swig_class cCamPoint; SWIGINTERN VALUE _wrap_CamPoint_x_set(int argc, VALUE *argv, VALUE self) { CamPoint *arg1 = (CamPoint *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamPoint, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "x" "', argument " "1"" of type '" "CamPoint *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "x" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamPoint_x_get(int argc, VALUE *argv, VALUE self) { CamPoint *arg1 = (CamPoint *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamPoint, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "x" "', argument " "1"" of type '" "CamPoint *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->x); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamPoint_y_set(int argc, VALUE *argv, VALUE self) { CamPoint *arg1 = (CamPoint *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamPoint, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "y" "', argument " "1"" of type '" "CamPoint *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "y" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamPoint_y_get(int argc, VALUE *argv, VALUE self) { CamPoint *arg1 = (CamPoint *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamPoint, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "y" "', argument " "1"" of type '" "CamPoint *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->y); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamPoint_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamPoint_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamPoint); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamPoint(int argc, VALUE *argv, VALUE self) { CamPoint *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamPoint *)new CamPoint(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamPoint(CamPoint *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamMorphoMathsKernel; SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_source1_set(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "source1" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "source1" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->source1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_source1_get(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "source1" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->source1); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_source2_set(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "source2" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "source2" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->source2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_source2_get(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "source2" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->source2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_operation_set(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "operation" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "operation" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->operation = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_operation_get(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "operation" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->operation); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamMorphoMathsKernel); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamMorphoMathsKernel(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamMorphoMathsKernel *)new CamMorphoMathsKernel(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_set_dilate(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_dilate" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set_dilate" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "set_dilate" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "set_dilate" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (bool)(arg1)->set_dilate(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_get_dilate(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_dilate" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_dilate" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "get_dilate" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)(arg1)->get_dilate(arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_set_erode(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_erode" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set_erode" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "set_erode" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "set_erode" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (bool)(arg1)->set_erode(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMorphoMathsKernel_get_erode(int argc, VALUE *argv, VALUE self) { CamMorphoMathsKernel *arg1 = (CamMorphoMathsKernel *) 0 ; int arg2 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMorphoMathsKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_erode" "', argument " "1"" of type '" "CamMorphoMathsKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_erode" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "get_erode" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)(arg1)->get_erode(arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN void free_CamMorphoMathsKernel(CamMorphoMathsKernel *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamRun; SWIGINTERN VALUE _wrap_CamRun_value_set(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "value" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->value = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_value_get(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->value); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_length_set(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "length" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_length_get(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->length); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_blob_set(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blob" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "blob" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->blob = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_blob_get(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blob" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->blob); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_line_set(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "line" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "line" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->line = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRun_line_get(int argc, VALUE *argv, VALUE self) { CamRun *arg1 = (CamRun *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRun, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "line" "', argument " "1"" of type '" "CamRun *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->line); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamRun_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamRun_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamRun); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamRun(int argc, VALUE *argv, VALUE self) { CamRun *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamRun *)new CamRun(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamRun(CamRun *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamMeasuresResults; SWIGINTERN VALUE _wrap_CamMeasuresResults_min_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "min" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "min" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->min = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_min_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "min" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->min); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_xmin_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xmin" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xmin" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->xmin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_xmin_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xmin" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->xmin); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_ymin_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ymin" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ymin" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->ymin = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_ymin_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ymin" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->ymin); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_max_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "max" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "max" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->max = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_max_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "max" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->max); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_xmax_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xmax" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "xmax" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->xmax = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_xmax_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "xmax" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->xmax); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_ymax_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ymax" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ymax" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->ymax = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_ymax_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ymax" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->ymax); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_average_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "average" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->average = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_average_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->average); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_sum_set(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sum" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sum" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->sum = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamMeasuresResults_sum_get(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *arg1 = (CamMeasuresResults *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamMeasuresResults, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sum" "', argument " "1"" of type '" "CamMeasuresResults *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->sum); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamMeasuresResults_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamMeasuresResults_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamMeasuresResults); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamMeasuresResults(int argc, VALUE *argv, VALUE self) { CamMeasuresResults *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamMeasuresResults *)new CamMeasuresResults(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamMeasuresResults(CamMeasuresResults *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamLinearFilterKernel; SWIGINTERN VALUE _wrap_CamLinearFilterKernel_coeff1_set(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff1" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coeff1" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->coeff1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamLinearFilterKernel_coeff1_get(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff1" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->coeff1); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamLinearFilterKernel_coeff2_set(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff2" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coeff2" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->coeff2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamLinearFilterKernel_coeff2_get(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff2" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->coeff2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamLinearFilterKernel_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamLinearFilterKernel_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamLinearFilterKernel); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamLinearFilterKernel(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamLinearFilterKernel *)new CamLinearFilterKernel(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamLinearFilterKernel_set(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int arg2 ; int arg3 ; int arg4 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "set" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "set" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (bool)(arg1)->set(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamLinearFilterKernel_get(int argc, VALUE *argv, VALUE self) { CamLinearFilterKernel *arg1 = (CamLinearFilterKernel *) 0 ; int arg2 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamLinearFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get" "', argument " "1"" of type '" "CamLinearFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "get" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)(arg1)->get(arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN void free_CamLinearFilterKernel(CamLinearFilterKernel *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamSepFilterKernel; SWIGINTERN VALUE _wrap_CamSepFilterKernel_coeff1_set(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff1" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coeff1" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->coeff1 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_coeff1_get(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff1" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->coeff1); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_coeff2_set(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff2" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "coeff2" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); if (arg1) (arg1)->coeff2 = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_coeff2_get(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "coeff2" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->coeff2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamSepFilterKernel_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamSepFilterKernel_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamSepFilterKernel); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamSepFilterKernel(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamSepFilterKernel *)new CamSepFilterKernel(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_set_x(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_x" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set_x" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "set_x" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->set_x(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_set_y(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_y" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "set_y" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "set_y" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->set_y(arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_get_x(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_x" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_x" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)(arg1)->get_x(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamSepFilterKernel_get_y(int argc, VALUE *argv, VALUE self) { CamSepFilterKernel *arg1 = (CamSepFilterKernel *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamSepFilterKernel, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_y" "', argument " "1"" of type '" "CamSepFilterKernel *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "get_y" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)(arg1)->get_y(arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN void free_CamSepFilterKernel(CamSepFilterKernel *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamBasin; SWIGINTERN VALUE _wrap_CamBasin_dynamics_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dynamics" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->dynamics); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_minimum_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "minimum" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->minimum); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_flooded_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flooded" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->flooded); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_surface_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "surface" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->surface); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_accsurface_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "accsurface" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->accsurface); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_x_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "x" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->x); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBasin_y_get(int argc, VALUE *argv, VALUE self) { CamBasin *arg1 = (CamBasin *) 0 ; unsigned short result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBasin, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "y" "', argument " "1"" of type '" "CamBasin *""'"); } arg1 = reinterpret_cast(argp1); result = (unsigned short) ((arg1)->y); vresult = SWIG_From_unsigned_SS_short(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamBasin_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamBasin_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamBasin); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamBasin(int argc, VALUE *argv, VALUE self) { CamBasin *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamBasin *)new CamBasin(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamBasin(CamBasin *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } SWIGINTERN VALUE _wrap_cam_set_viewer(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int result; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "camSetImageViewer" "', argument " "1"" of type '" "char *""'"); } arg1 = buf1; result = (int)camSetImageViewer(arg1); vresult = SWIG_From_int(static_cast(result)); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return vresult; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } swig_class cCamBitmapFont; SWIGINTERN VALUE _wrap_CamBitmapFont_first_char_get(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "first_char" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->first_char); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBitmapFont_nb_chars_get(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nb_chars" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nb_chars); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBitmapFont_height_get(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->height); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBitmapFont_masks_get(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "masks" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *) ((arg1)->masks); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBitmapFont_letters_get(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; CamImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "letters" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); result = (CamImage *) ((arg1)->letters); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamBitmapFont__SWIG_0(int argc, VALUE *argv, VALUE self) { CamBitmapFont *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamBitmapFont *)new CamBitmapFont(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamBitmapFont_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamBitmapFont_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamBitmapFont); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamBitmapFont__SWIG_1(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; CamBitmapFont *result = 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CamBitmapFont" "', argument " "1"" of type '" "char const *""'"); } arg1 = buf1; result = (CamBitmapFont *)new CamBitmapFont((char const *)arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return self; fail: if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return Qnil; } SWIGINTERN VALUE _wrap_new_CamBitmapFont(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[1]; int ii; argc = nargs; if (argc > 1) SWIG_fail; for (ii = 0; (ii < argc); ii++) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_CamBitmapFont__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CamBitmapFont__SWIG_1(nargs, args, self); } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'new_CamBitmapFont'"); return Qnil; } SWIGINTERN void free_CamBitmapFont(CamBitmapFont *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } SWIGINTERN VALUE _wrap_CamBitmapFont_load(int argc, VALUE *argv, VALUE self) { CamBitmapFont *arg1 = (CamBitmapFont *) 0 ; char *arg2 = (char *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBitmapFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "load" "', argument " "1"" of type '" "CamBitmapFont *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "load" "', argument " "2"" of type '" "char const *""'"); } arg2 = buf2; result = (bool)(arg1)->load((char const *)arg2); vresult = SWIG_From_bool(static_cast(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return vresult; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } SWIGINTERN VALUE _wrap_cam_rgb(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; int arg3 ; int result; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "camRGB" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "camRGB" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "camRGB" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (int)camRGB(arg1,arg2,arg3); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_camRGBA(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; int arg3 ; int arg4 ; int result; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "camRGBA" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "camRGBA" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "camRGBA" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "camRGBA" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast(val4); result = (int)camRGBA(arg1,arg2,arg3,arg4); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } swig_class cCamTable; SWIGINTERN VALUE _wrap_CamTable_size_get(int argc, VALUE *argv, VALUE self) { CamTable *arg1 = (CamTable *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "size" "', argument " "1"" of type '" "CamTable *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->size); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamTable__SWIG_0(int argc, VALUE *argv, VALUE self) { int arg1 ; CamTable *result = 0 ; int val1 ; int ecode1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamTable" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); result = (CamTable *)new CamTable(arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamTable_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamTable_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamTable); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamTable__SWIG_1(int argc, VALUE *argv, VALUE self) { CamTable *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamTable *)new CamTable(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamTable(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[1]; int ii; argc = nargs; if (argc > 1) SWIG_fail; for (ii = 0; (ii < argc); ii++) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_CamTable__SWIG_1(nargs, args, self); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CamTable__SWIG_0(nargs, args, self); } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'new_CamTable'"); return Qnil; } SWIGINTERN VALUE _wrap_CamTable_set(int argc, VALUE *argv, VALUE self) { CamTable *arg1 = (CamTable *) 0 ; int *arg2 = (int *) (int *)0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set" "', argument " "1"" of type '" "CamTable *""'"); } arg1 = reinterpret_cast(argp1); { Check_Type(argv[0], T_ARRAY); arg3=RARRAY(argv[0])->len; if (arg3) { arg2=new int[arg3]; for (int i=0;i!=arg3;i++) { VALUE inst = rb_ary_entry(argv[0], i); arg2[i]=NUM2INT(inst); } } else { arg2=NULL; } } result = (bool)(arg1)->set((int const *)arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); { if (arg2) delete[] arg2; } return vresult; fail: { if (arg2) delete[] arg2; } return Qnil; } SWIGINTERN VALUE _wrap_CamTable___getitem__(int argc, VALUE *argv, VALUE self) { CamTable *arg1 = (CamTable *) 0 ; int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__getitem__" "', argument " "1"" of type '" "CamTable *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (int)CamTable___getitem__(arg1,arg2); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamTable___setitem__(int argc, VALUE *argv, VALUE self) { CamTable *arg1 = (CamTable *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__setitem__" "', argument " "1"" of type '" "CamTable *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__setitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__setitem__" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); CamTable___setitem__(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamTable_each(int argc, VALUE *argv, VALUE self) { CamTable *arg1 = (CamTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "each" "', argument " "1"" of type '" "CamTable *""'"); } arg1 = reinterpret_cast(argp1); CamTable_each(arg1); return Qnil; fail: return Qnil; } SWIGINTERN void free_CamTable(CamTable *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamRLEImage; SWIGINTERN VALUE _wrap_CamRLEImage_id_get(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "id" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->id); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_height_get(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->height); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_width_get(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "width" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->width); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_nb_runs_get(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nbRuns" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nbRuns); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_allocated_get(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "allocated" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->allocated); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamRLEImage__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamRLEImage *)new CamRLEImage(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamRLEImage__SWIG_1(int argc, VALUE *argv, VALUE self) { int arg1 ; CamRLEImage *result = 0 ; int val1 ; int ecode1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CamRLEImage" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast(val1); result = (CamRLEImage *)new CamRLEImage(arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamRLEImage_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamRLEImage_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamRLEImage); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamRLEImage__SWIG_2(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = 0 ; CamRLEImage *result = 0 ; void *argp1 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CamRLEImage" "', argument " "1"" of type '" "CamRLEImage const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CamRLEImage" "', argument " "1"" of type '" "CamRLEImage const &""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)new CamRLEImage((CamRLEImage const &)*arg1); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_CamRLEImage(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[1]; int ii; argc = nargs; if (argc > 1) SWIG_fail; for (ii = 0; (ii < argc); ii++) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_CamRLEImage__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CamRLEImage__SWIG_2(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CamRLEImage__SWIG_1(nargs, args, self); } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'new_CamRLEImage'"); return Qnil; } SWIGINTERN void free_CamRLEImage(CamRLEImage *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } SWIGINTERN VALUE _wrap_CamRLEImage_clone(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clone" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)((CamRLEImage const *)arg1)->clone(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_alloc(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "alloc" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->alloc(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_realloc(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; int arg2 ; bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "realloc" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "realloc" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = (bool)(arg1)->realloc(arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_encode(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->encode((CamImage const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_encode_lut(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_lut" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_lut" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_lut" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "encode_lut" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_lut" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)(arg1)->encode_lut((CamImage const &)*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_encode_threshold(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_threshold" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_threshold" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "encode_threshold" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->encode_threshold((CamImage const &)*arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_encode_threshold_inv(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; int arg3 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_threshold_inv" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_threshold_inv" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_threshold_inv" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "encode_threshold_inv" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast(val3); result = (bool)(arg1)->encode_threshold_inv((CamImage const &)*arg2,arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_encode_color(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_color" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "encode_color" "', argument " "2"" of type '" "CamImage const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_color" "', argument " "2"" of type '" "CamImage const &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "encode_color" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "encode_color" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)(arg1)->encode_color((CamImage const &)*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_labelingN_____SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamBlobs *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labeling" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (CamBlobs *)(arg1)->labeling(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamBlobs, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_labelingN_____SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamBlobs *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labeling" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamBlobs, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labeling" "', argument " "2"" of type '" "CamBlobs &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "labeling" "', argument " "2"" of type '" "CamBlobs &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->labeling(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_labelingN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_labelingN_____SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamBlobs, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_labelingN_____SWIG_1(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_labeling!'"); return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_blob_analysis(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamBlobs *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "blob_analysis" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamBlobs, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "blob_analysis" "', argument " "2"" of type '" "CamBlobs &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "blob_analysis" "', argument " "2"" of type '" "CamBlobs &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->blob_analysis(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_apply_lutN___(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamTable *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "apply_lut" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "apply_lut" "', argument " "2"" of type '" "CamTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "2"" of type '" "CamTable const &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)(arg1)->apply_lut((CamTable const &)*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_apply_lut(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "apply_lut" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "apply_lut" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "apply_lut" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "apply_lut" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamRLEImage const *)arg1)->apply_lut(*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decode" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "decode" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->decode(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode__SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decode" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "decode" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "decode" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamRLEImage const *)arg1)->decode(*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_decode__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_decode__SWIG_1(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_decode'"); return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode_blobs__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decode_blobs" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "decode_blobs" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode_blobs" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->decode_blobs(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode_blobs__SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamImage *arg2 = 0 ; CamTable *arg3 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decode_blobs" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "decode_blobs" "', argument " "2"" of type '" "CamImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode_blobs" "', argument " "2"" of type '" "CamImage &""'"); } arg2 = reinterpret_cast(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_CamTable, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "decode_blobs" "', argument " "3"" of type '" "CamTable const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "decode_blobs" "', argument " "3"" of type '" "CamTable const &""'"); } arg3 = reinterpret_cast(argp3); result = (bool)((CamRLEImage const *)arg1)->decode_blobs(*arg2,(CamTable const &)*arg3); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_decode_blobs(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_decode_blobs__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CamTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_decode_blobs__SWIG_1(nargs, args, self); } } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_decode_blobs'"); return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_inverseN___(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "inverse" "', argument " "1"" of type '" "CamRLEImage *""'"); } arg1 = reinterpret_cast(argp1); result = (bool)(arg1)->inverse(); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_cross__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_cross" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_cross" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_cross" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->erode_cross(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_cross__SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_cross" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)((CamRLEImage const *)arg1)->erode_cross(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_cross(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_cross__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_cross__SWIG_0(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_erode_cross'"); return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x3__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x3" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_3x3" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_3x3" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->erode_3x3(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x3__SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x3" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)((CamRLEImage const *)arg1)->erode_3x3(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x3(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_3x3__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_3x3__SWIG_0(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_erode_3x3'"); return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x2__SWIG_0(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *arg2 = 0 ; bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x2" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamRLEImage, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "erode_3x2" "', argument " "2"" of type '" "CamRLEImage &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "erode_3x2" "', argument " "2"" of type '" "CamRLEImage &""'"); } arg2 = reinterpret_cast(argp2); result = (bool)((CamRLEImage const *)arg1)->erode_3x2(*arg2); vresult = SWIG_From_bool(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x2__SWIG_1(int argc, VALUE *argv, VALUE self) { CamRLEImage *arg1 = (CamRLEImage *) 0 ; CamRLEImage *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamRLEImage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "erode_3x2" "', argument " "1"" of type '" "CamRLEImage const *""'"); } arg1 = reinterpret_cast(argp1); result = (CamRLEImage *)((CamRLEImage const *)arg1)->erode_3x2(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CamRLEImage, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamRLEImage_erode_3x2(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ii++) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_3x2__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CamRLEImage, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CamRLEImage_erode_3x2__SWIG_0(nargs, args, self); } } } fail: rb_raise(rb_eArgError, "No matching function for overloaded 'CamRLEImage_erode_3x2'"); return Qnil; } swig_class cCamBlobInfo; SWIGINTERN VALUE _wrap_CamBlobInfo_id_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "id" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->id); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_left_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "left" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->left); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_top_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "top" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->top); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_width_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "width" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->width); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_height_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "height" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->height); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_surface_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "surface" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->surface); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_cx_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cx" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->cx); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_cy_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cy" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->cy); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_value_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->value); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_min_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "min" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->min); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_max_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "max" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->max); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobInfo_misc_get(int argc, VALUE *argv, VALUE self) { CamBlobInfo *arg1 = (CamBlobInfo *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "misc" "', argument " "1"" of type '" "CamBlobInfo *""'"); } arg1 = reinterpret_cast(argp1); result = (void *) ((arg1)->misc); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamBlobInfo_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamBlobInfo_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamBlobInfo); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamBlobInfo(int argc, VALUE *argv, VALUE self) { CamBlobInfo *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamBlobInfo *)new CamBlobInfo(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamBlobInfo(CamBlobInfo *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamBlobs; SWIGINTERN VALUE _wrap_CamBlobs_nb_blobs_get(int argc, VALUE *argv, VALUE self) { CamBlobs *arg1 = (CamBlobs *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobs, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nbBlobs" "', argument " "1"" of type '" "CamBlobs *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nbBlobs); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamBlobs_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamBlobs_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamBlobs); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamBlobs(int argc, VALUE *argv, VALUE self) { CamBlobs *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamBlobs *)new CamBlobs(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobs___getitem__(int argc, VALUE *argv, VALUE self) { CamBlobs *arg1 = (CamBlobs *) 0 ; int arg2 ; CamBlobInfo result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobs, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__getitem__" "', argument " "1"" of type '" "CamBlobs *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = CamBlobs___getitem__(arg1,arg2); vresult = SWIG_NewPointerObj((new CamBlobInfo(static_cast(result))), SWIGTYPE_p_CamBlobInfo, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamBlobs_each(int argc, VALUE *argv, VALUE self) { CamBlobs *arg1 = (CamBlobs *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamBlobs, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "each" "', argument " "1"" of type '" "CamBlobs *""'"); } arg1 = reinterpret_cast(argp1); CamBlobs_each(arg1); return Qnil; fail: return Qnil; } SWIGINTERN void free_CamBlobs(CamBlobs *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } swig_class cCamTableOfBasins; SWIGINTERN VALUE _wrap_CamTableOfBasins_nbBasins_get(int argc, VALUE *argv, VALUE self) { CamTableOfBasins *arg1 = (CamTableOfBasins *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTableOfBasins, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "nbBasins" "', argument " "1"" of type '" "CamTableOfBasins *""'"); } arg1 = reinterpret_cast(argp1); result = (int) ((arg1)->nbBasins); vresult = SWIG_From_int(static_cast(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamTableOfBasins_get_rid_of(int argc, VALUE *argv, VALUE self) { CamTableOfBasins *arg1 = (CamTableOfBasins *) 0 ; CamBasin *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTableOfBasins, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_rid_of" "', argument " "1"" of type '" "CamTableOfBasins *""'"); } arg1 = reinterpret_cast(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_CamBasin, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_rid_of" "', argument " "2"" of type '" "CamBasin &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_rid_of" "', argument " "2"" of type '" "CamBasin &""'"); } arg2 = reinterpret_cast(argp2); (arg1)->get_rid_of(*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamTableOfBasins___getitem__(int argc, VALUE *argv, VALUE self) { CamTableOfBasins *arg1 = (CamTableOfBasins *) 0 ; int arg2 ; CamBasin result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTableOfBasins, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__getitem__" "', argument " "1"" of type '" "CamTableOfBasins *""'"); } arg1 = reinterpret_cast(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__getitem__" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast(val2); result = CamTableOfBasins___getitem__(arg1,arg2); vresult = SWIG_NewPointerObj((new CamBasin(static_cast(result))), SWIGTYPE_p_CamBasin, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_CamTableOfBasins_each(int argc, VALUE *argv, VALUE self) { CamTableOfBasins *arg1 = (CamTableOfBasins *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CamTableOfBasins, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "each" "', argument " "1"" of type '" "CamTableOfBasins *""'"); } arg1 = reinterpret_cast(argp1); CamTableOfBasins_each(arg1); return Qnil; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CamTableOfBasins_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_CamTableOfBasins_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CamTableOfBasins); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_CamTableOfBasins(int argc, VALUE *argv, VALUE self) { CamTableOfBasins *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CamTableOfBasins *)new CamTableOfBasins(); DATA_PTR(self) = result; SWIG_RubyAddTracking(result, self); return self; fail: return Qnil; } SWIGINTERN void free_CamTableOfBasins(CamTableOfBasins *arg1) { SWIG_RubyRemoveTracking(arg1); delete arg1; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_CamBasin = {"_p_CamBasin", "CamBasin *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamBitmapFont = {"_p_CamBitmapFont", "CamBitmapFont *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamBlobInfo = {"_p_CamBlobInfo", "CamBlobInfo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamBlobs = {"_p_CamBlobs", "CamBlobs *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamImage = {"_p_CamImage", "CamImage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamLinearFilterKernel = {"_p_CamLinearFilterKernel", "CamLinearFilterKernel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamMeasuresResults = {"_p_CamMeasuresResults", "CamMeasuresResults *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamMorphoMathsKernel = {"_p_CamMorphoMathsKernel", "CamMorphoMathsKernel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamPoint = {"_p_CamPoint", "CamPoint *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamRLEImage = {"_p_CamRLEImage", "CamRLEImage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamROI = {"_p_CamROI", "CamROI *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamRun = {"_p_CamRun", "CamRun *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamSepFilterKernel = {"_p_CamSepFilterKernel", "CamSepFilterKernel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamTable = {"_p_CamTable", "CamTable *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CamTableOfBasins = {"_p_CamTableOfBasins", "CamTableOfBasins *", 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_int = {"_p_int", "int *", 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_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_CamBasin, &_swigt__p_CamBitmapFont, &_swigt__p_CamBlobInfo, &_swigt__p_CamBlobs, &_swigt__p_CamImage, &_swigt__p_CamLinearFilterKernel, &_swigt__p_CamMeasuresResults, &_swigt__p_CamMorphoMathsKernel, &_swigt__p_CamPoint, &_swigt__p_CamRLEImage, &_swigt__p_CamROI, &_swigt__p_CamRun, &_swigt__p_CamSepFilterKernel, &_swigt__p_CamTable, &_swigt__p_CamTableOfBasins, &_swigt__p_char, &_swigt__p_int, &_swigt__p_p_char, &_swigt__p_unsigned_char, &_swigt__p_void, }; static swig_cast_info _swigc__p_CamBasin[] = { {&_swigt__p_CamBasin, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamBitmapFont[] = { {&_swigt__p_CamBitmapFont, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamBlobInfo[] = { {&_swigt__p_CamBlobInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamBlobs[] = { {&_swigt__p_CamBlobs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamImage[] = { {&_swigt__p_CamImage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamLinearFilterKernel[] = { {&_swigt__p_CamLinearFilterKernel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamMeasuresResults[] = { {&_swigt__p_CamMeasuresResults, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamMorphoMathsKernel[] = { {&_swigt__p_CamMorphoMathsKernel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamPoint[] = { {&_swigt__p_CamPoint, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamRLEImage[] = { {&_swigt__p_CamRLEImage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamROI[] = { {&_swigt__p_CamROI, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamRun[] = { {&_swigt__p_CamRun, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamSepFilterKernel[] = { {&_swigt__p_CamSepFilterKernel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamTable[] = { {&_swigt__p_CamTable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CamTableOfBasins[] = { {&_swigt__p_CamTableOfBasins, 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_int[] = { {&_swigt__p_int, 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_unsigned_char[] = { {&_swigt__p_unsigned_char, 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_CamBasin, _swigc__p_CamBitmapFont, _swigc__p_CamBlobInfo, _swigc__p_CamBlobs, _swigc__p_CamImage, _swigc__p_CamLinearFilterKernel, _swigc__p_CamMeasuresResults, _swigc__p_CamMorphoMathsKernel, _swigc__p_CamPoint, _swigc__p_CamRLEImage, _swigc__p_CamROI, _swigc__p_CamRun, _swigc__p_CamSepFilterKernel, _swigc__p_CamTable, _swigc__p_CamTableOfBasins, _swigc__p_char, _swigc__p_int, _swigc__p_p_char, _swigc__p_unsigned_char, _swigc__p_void, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /************************************************************************* * 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 though 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; static int init_run = 0; clientdata = clientdata; if (init_run) return; init_run = 1; /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; } else { /* This is the first module loaded */ swig_module.next = &swig_module; SWIG_SetModule(clientdata, &swig_module); } /* 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 SWIGEXPORT void Init_camellia(void) { size_t i; SWIG_InitRuntime(); mCamellia = rb_define_module("Camellia"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); rb_define_const(mCamellia, "CAM_VERSION", SWIG_FromCharPtr("2.5.10 : Luxembourg ($Rev: 90 $)")); rb_define_const(mCamellia, "CAM_MAX_SCANLINE", SWIG_From_int(static_cast(1280))); rb_define_const(mCamellia, "CAM_MAX_FRAME_HEIGHT", SWIG_From_int(static_cast(1024))); rb_define_const(mCamellia, "CAM_DEPTH_SIGN", SWIG_From_int(static_cast(0x80000000))); rb_define_const(mCamellia, "CAM_DEPTH_MASK", SWIG_From_int(static_cast(0x7FFFFFFF))); rb_define_const(mCamellia, "CAM_DEPTH_1U", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_DEPTH_8U", SWIG_From_int(static_cast(8))); rb_define_const(mCamellia, "CAM_DEPTH_10U", SWIG_From_int(static_cast(10))); rb_define_const(mCamellia, "CAM_DEPTH_12U", SWIG_From_int(static_cast(12))); rb_define_const(mCamellia, "CAM_DEPTH_16U", SWIG_From_int(static_cast(16))); rb_define_const(mCamellia, "CAM_DEPTH_8S", SWIG_From_int(static_cast((0x80000000|8)))); rb_define_const(mCamellia, "CAM_DEPTH_10S", SWIG_From_int(static_cast((0x80000000|10)))); rb_define_const(mCamellia, "CAM_DEPTH_12S", SWIG_From_int(static_cast((0x80000000|12)))); rb_define_const(mCamellia, "CAM_DEPTH_16S", SWIG_From_int(static_cast((0x80000000|16)))); rb_define_const(mCamellia, "CAM_DATA_ORDER_PIXEL", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_DATA_ORDER_PLANE", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_ORIGIN_TL", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_ALIGN_4BYTES", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_ALIGN_8BYTES", SWIG_From_int(static_cast(8))); rb_define_const(mCamellia, "CAM_ALIGN_16BYTES", SWIG_From_int(static_cast(16))); rb_define_const(mCamellia, "CAM_ALIGN_32BYTES", SWIG_From_int(static_cast(32))); rb_define_const(mCamellia, "CAM_ALIGN_DWORD", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_ALIGN_QWORD", SWIG_From_int(static_cast(8))); rb_define_const(mCamellia, "CAM_BORDER_CONSTANT", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_BORDER_REPLICATE", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_SIDE_TOP_INDEX", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_SIDE_BOTTOM_INDEX", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_SIDE_LEFT_INDEX", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_SIDE_RIGHT_INDEX", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_SIDE_TOP", SWIG_From_int(static_cast((1<<0)))); rb_define_const(mCamellia, "CAM_SIDE_BOTTOM", SWIG_From_int(static_cast((1<<1)))); rb_define_const(mCamellia, "CAM_SIDE_LEFT", SWIG_From_int(static_cast((1<<2)))); rb_define_const(mCamellia, "CAM_SIDE_RIGHT", SWIG_From_int(static_cast((1<<3)))); rb_define_const(mCamellia, "CAM_SIDE_ALL", SWIG_From_int(static_cast(((1<<3)|(1<<0)|(1<<2)|(1<<1))))); cCamROI.klass = rb_define_class_under(mCamellia, "CamROI", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamROI, (void *) &cCamROI); rb_define_alloc_func(cCamROI.klass, _wrap_CamROI_allocate); rb_define_method(cCamROI.klass, "initialize", VALUEFUNC(_wrap_new_CamROI), -1); rb_define_method(cCamROI.klass, "coi=", VALUEFUNC(_wrap_CamROI_coi_set), -1); rb_define_method(cCamROI.klass, "coi", VALUEFUNC(_wrap_CamROI_coi_get), -1); rb_define_method(cCamROI.klass, "xOffset=", VALUEFUNC(_wrap_CamROI_xOffset_set), -1); rb_define_method(cCamROI.klass, "xOffset", VALUEFUNC(_wrap_CamROI_xOffset_get), -1); rb_define_method(cCamROI.klass, "yOffset=", VALUEFUNC(_wrap_CamROI_yOffset_set), -1); rb_define_method(cCamROI.klass, "yOffset", VALUEFUNC(_wrap_CamROI_yOffset_get), -1); rb_define_method(cCamROI.klass, "width=", VALUEFUNC(_wrap_CamROI_width_set), -1); rb_define_method(cCamROI.klass, "width", VALUEFUNC(_wrap_CamROI_width_get), -1); rb_define_method(cCamROI.klass, "height=", VALUEFUNC(_wrap_CamROI_height_set), -1); rb_define_method(cCamROI.klass, "height", VALUEFUNC(_wrap_CamROI_height_get), -1); rb_define_method(cCamROI.klass, "intersect", VALUEFUNC(_wrap_CamROI_intersect), -1); rb_define_method(cCamROI.klass, "clip", VALUEFUNC(_wrap_CamROI_clip), -1); rb_define_method(cCamROI.klass, "reduce", VALUEFUNC(_wrap_CamROI_reduce), -1); rb_define_method(cCamROI.klass, "enlarge", VALUEFUNC(_wrap_CamROI_enlarge), -1); cCamROI.mark = 0; cCamROI.destroy = (void (*)(void *)) free_CamROI; cCamROI.trackObjects = 1; rb_define_const(mCamellia, "CAM_POINT", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_CROSS", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_CIRCLE", SWIG_From_int(static_cast(4))); cCamImage.klass = rb_define_class_under(mCamellia, "CamImage", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamImage, (void *) &cCamImage); rb_define_alloc_func(cCamImage.klass, _wrap_CamImage_allocate); rb_define_method(cCamImage.klass, "initialize", VALUEFUNC(_wrap_new_CamImage), -1); rb_define_method(cCamImage.klass, "nSize", VALUEFUNC(_wrap_CamImage_nSize_get), -1); rb_define_method(cCamImage.klass, "id", VALUEFUNC(_wrap_CamImage_id_get), -1); rb_define_method(cCamImage.klass, "nChannels", VALUEFUNC(_wrap_CamImage_nChannels_get), -1); rb_define_method(cCamImage.klass, "alphaChannel", VALUEFUNC(_wrap_CamImage_alphaChannel_get), -1); rb_define_method(cCamImage.klass, "depth", VALUEFUNC(_wrap_CamImage_depth_get), -1); rb_define_method(cCamImage.klass, "colorModel", VALUEFUNC(_wrap_CamImage_colorModel_get), -1); rb_define_method(cCamImage.klass, "channelSeq", VALUEFUNC(_wrap_CamImage_channelSeq_get), -1); rb_define_method(cCamImage.klass, "dataOrder", VALUEFUNC(_wrap_CamImage_dataOrder_get), -1); rb_define_method(cCamImage.klass, "origin", VALUEFUNC(_wrap_CamImage_origin_get), -1); rb_define_method(cCamImage.klass, "align", VALUEFUNC(_wrap_CamImage_align_get), -1); rb_define_method(cCamImage.klass, "width", VALUEFUNC(_wrap_CamImage_width_get), -1); rb_define_method(cCamImage.klass, "height", VALUEFUNC(_wrap_CamImage_height_get), -1); rb_define_method(cCamImage.klass, "roi", VALUEFUNC(_wrap_CamImage_roi_get), -1); rb_define_method(cCamImage.klass, "mask", VALUEFUNC(_wrap_CamImage_mask_get), -1); rb_define_method(cCamImage.klass, "imageId", VALUEFUNC(_wrap_CamImage_imageId_get), -1); rb_define_method(cCamImage.klass, "misc", VALUEFUNC(_wrap_CamImage_misc_get), -1); rb_define_method(cCamImage.klass, "imageSize", VALUEFUNC(_wrap_CamImage_imageSize_get), -1); rb_define_method(cCamImage.klass, "imageData", VALUEFUNC(_wrap_CamImage_imageData_get), -1); rb_define_method(cCamImage.klass, "widthStep", VALUEFUNC(_wrap_CamImage_widthStep_get), -1); rb_define_method(cCamImage.klass, "borderMode", VALUEFUNC(_wrap_CamImage_borderMode_get), -1); rb_define_method(cCamImage.klass, "borderConst", VALUEFUNC(_wrap_CamImage_borderConst_get), -1); rb_define_method(cCamImage.klass, "imageDataOrigin", VALUEFUNC(_wrap_CamImage_imageDataOrigin_get), -1); rb_define_method(cCamImage.klass, "clone", VALUEFUNC(_wrap_CamImage_clone), -1); rb_define_alias(cCamImage.klass, "dup", "clone"); rb_define_method(cCamImage.klass, "copy", VALUEFUNC(_wrap_CamImage_copy), -1); rb_define_method(cCamImage.klass, "allocated?", VALUEFUNC(_wrap_CamImage_allocatedq___), -1); rb_define_method(cCamImage.klass, "alloc", VALUEFUNC(_wrap_CamImage_alloc), -1); rb_define_method(cCamImage.klass, "dealloc!", VALUEFUNC(_wrap_CamImage_deallocN___), -1); rb_define_method(cCamImage.klass, "alloc_rgb", VALUEFUNC(_wrap_CamImage_alloc_rgb), -1); rb_define_method(cCamImage.klass, "alloc_rgba", VALUEFUNC(_wrap_CamImage_alloc_rgba), -1); rb_define_method(cCamImage.klass, "alloc_yuv", VALUEFUNC(_wrap_CamImage_alloc_yuv), -1); rb_define_method(cCamImage.klass, "load_pgm", VALUEFUNC(_wrap_CamImage_load_pgm), -1); rb_define_method(cCamImage.klass, "save_pgm", VALUEFUNC(_wrap_CamImage_save_pgm), -1); rb_define_method(cCamImage.klass, "load_bmp", VALUEFUNC(_wrap_CamImage_load_bmp), -1); rb_define_method(cCamImage.klass, "save_bmp", VALUEFUNC(_wrap_CamImage_save_bmp), -1); rb_define_method(cCamImage.klass, "set_roi", VALUEFUNC(_wrap_CamImage_set_roi), -1); rb_define_method(cCamImage.klass, "get_pixels", VALUEFUNC(_wrap_CamImage_get_pixels), -1); rb_define_alias(cCamImage.klass, "to_s", "get_pixels"); rb_define_method(cCamImage.klass, "set_pixels", VALUEFUNC(_wrap_CamImage_set_pixels), -1); rb_define_method(cCamImage.klass, "inspect", VALUEFUNC(_wrap_CamImage_inspect), -1); rb_define_method(cCamImage.klass, "view", VALUEFUNC(_wrap_CamImage_view), -1); rb_define_method(cCamImage.klass, "set!", VALUEFUNC(_wrap_CamImage_setN___), -1); rb_define_method(cCamImage.klass, "alpha_composite", VALUEFUNC(_wrap_CamImage_alpha_composite), -1); rb_define_method(cCamImage.klass, "erode_square3!", VALUEFUNC(_wrap_CamImage_erode_square3N___), -1); rb_define_method(cCamImage.klass, "erode_square3", VALUEFUNC(_wrap_CamImage_erode_square3), -1); rb_define_method(cCamImage.klass, "erode_circle5!", VALUEFUNC(_wrap_CamImage_erode_circle5N___), -1); rb_define_method(cCamImage.klass, "erode_circle5", VALUEFUNC(_wrap_CamImage_erode_circle5), -1); rb_define_method(cCamImage.klass, "erode_circle7!", VALUEFUNC(_wrap_CamImage_erode_circle7N___), -1); rb_define_method(cCamImage.klass, "erode_circle7", VALUEFUNC(_wrap_CamImage_erode_circle7), -1); rb_define_method(cCamImage.klass, "dilate_square3!", VALUEFUNC(_wrap_CamImage_dilate_square3N___), -1); rb_define_method(cCamImage.klass, "dilate_square3", VALUEFUNC(_wrap_CamImage_dilate_square3), -1); rb_define_method(cCamImage.klass, "dilate_circle5!", VALUEFUNC(_wrap_CamImage_dilate_circle5N___), -1); rb_define_method(cCamImage.klass, "dilate_circle5", VALUEFUNC(_wrap_CamImage_dilate_circle5), -1); rb_define_method(cCamImage.klass, "dilate_circle7!", VALUEFUNC(_wrap_CamImage_dilate_circle7N___), -1); rb_define_method(cCamImage.klass, "dilate_circle7", VALUEFUNC(_wrap_CamImage_dilate_circle7), -1); rb_define_method(cCamImage.klass, "morpho_gradient_square3!", VALUEFUNC(_wrap_CamImage_morpho_gradient_square3N___), -1); rb_define_method(cCamImage.klass, "morpho_gradient_square3", VALUEFUNC(_wrap_CamImage_morpho_gradient_square3), -1); rb_define_method(cCamImage.klass, "morpho_gradient_circle5!", VALUEFUNC(_wrap_CamImage_morpho_gradient_circle5N___), -1); rb_define_method(cCamImage.klass, "morpho_gradient_circle5", VALUEFUNC(_wrap_CamImage_morpho_gradient_circle5), -1); rb_define_method(cCamImage.klass, "morpho_gradient_circle7!", VALUEFUNC(_wrap_CamImage_morpho_gradient_circle7N___), -1); rb_define_method(cCamImage.klass, "morpho_gradient_circle7", VALUEFUNC(_wrap_CamImage_morpho_gradient_circle7), -1); rb_define_method(cCamImage.klass, "morpho_maths!", VALUEFUNC(_wrap_CamImage_morpho_mathsN___), -1); rb_define_method(cCamImage.klass, "morpho_maths", VALUEFUNC(_wrap_CamImage_morpho_maths), -1); rb_define_method(cCamImage.klass, "erode_3x3!", VALUEFUNC(_wrap_CamImage_erode_3x3N___), -1); rb_define_method(cCamImage.klass, "erode_3x3", VALUEFUNC(_wrap_CamImage_erode_3x3), -1); rb_define_method(cCamImage.klass, "dilate_3x3!", VALUEFUNC(_wrap_CamImage_dilate_3x3N___), -1); rb_define_method(cCamImage.klass, "dilate_3x3", VALUEFUNC(_wrap_CamImage_dilate_3x3), -1); rb_define_method(cCamImage.klass, "erode_5x5!", VALUEFUNC(_wrap_CamImage_erode_5x5N___), -1); rb_define_method(cCamImage.klass, "erode_5x5", VALUEFUNC(_wrap_CamImage_erode_5x5), -1); rb_define_method(cCamImage.klass, "dilate_5x5!", VALUEFUNC(_wrap_CamImage_dilate_5x5N___), -1); rb_define_method(cCamImage.klass, "dilate_5x5", VALUEFUNC(_wrap_CamImage_dilate_5x5), -1); rb_define_method(cCamImage.klass, "erode_7x7!", VALUEFUNC(_wrap_CamImage_erode_7x7N___), -1); rb_define_method(cCamImage.klass, "erode_7x7", VALUEFUNC(_wrap_CamImage_erode_7x7), -1); rb_define_method(cCamImage.klass, "dilate_7x7!", VALUEFUNC(_wrap_CamImage_dilate_7x7N___), -1); rb_define_method(cCamImage.klass, "dilate_7x7", VALUEFUNC(_wrap_CamImage_dilate_7x7), -1); rb_define_method(cCamImage.klass, "linear_filter_3x3!", VALUEFUNC(_wrap_CamImage_linear_filter_3x3N___), -1); rb_define_method(cCamImage.klass, "linear_filter_3x3", VALUEFUNC(_wrap_CamImage_linear_filter_3x3), -1); rb_define_method(cCamImage.klass, "linear_filter_5x5!", VALUEFUNC(_wrap_CamImage_linear_filter_5x5N___), -1); rb_define_method(cCamImage.klass, "linear_filter_5x5", VALUEFUNC(_wrap_CamImage_linear_filter_5x5), -1); rb_define_method(cCamImage.klass, "linear_filter_abs_3x3!", VALUEFUNC(_wrap_CamImage_linear_filter_abs_3x3N___), -1); rb_define_method(cCamImage.klass, "linear_filter_abs_3x3", VALUEFUNC(_wrap_CamImage_linear_filter_abs_3x3), -1); rb_define_method(cCamImage.klass, "linear_filter_abs_5x5!", VALUEFUNC(_wrap_CamImage_linear_filter_abs_5x5N___), -1); rb_define_method(cCamImage.klass, "linear_filter_abs_5x5", VALUEFUNC(_wrap_CamImage_linear_filter_abs_5x5), -1); rb_define_method(cCamImage.klass, "sobel_v!", VALUEFUNC(_wrap_CamImage_sobel_vN___), -1); rb_define_method(cCamImage.klass, "sobel_h!", VALUEFUNC(_wrap_CamImage_sobel_hN___), -1); rb_define_method(cCamImage.klass, "sobel_v_abs!", VALUEFUNC(_wrap_CamImage_sobel_v_absN___), -1); rb_define_method(cCamImage.klass, "sobel_h_abs!", VALUEFUNC(_wrap_CamImage_sobel_h_absN___), -1); rb_define_method(cCamImage.klass, "sobel_v", VALUEFUNC(_wrap_CamImage_sobel_v), -1); rb_define_method(cCamImage.klass, "sobel_h", VALUEFUNC(_wrap_CamImage_sobel_h), -1); rb_define_method(cCamImage.klass, "sobel_v_abs", VALUEFUNC(_wrap_CamImage_sobel_v_abs), -1); rb_define_method(cCamImage.klass, "sobel_h_abs", VALUEFUNC(_wrap_CamImage_sobel_h_abs), -1); rb_define_method(cCamImage.klass, "sep_filter_3x3!", VALUEFUNC(_wrap_CamImage_sep_filter_3x3N___), -1); rb_define_method(cCamImage.klass, "sep_filter_3x3", VALUEFUNC(_wrap_CamImage_sep_filter_3x3), -1); rb_define_method(cCamImage.klass, "sep_filter_5x5!", VALUEFUNC(_wrap_CamImage_sep_filter_5x5N___), -1); rb_define_method(cCamImage.klass, "sep_filter_5x5", VALUEFUNC(_wrap_CamImage_sep_filter_5x5), -1); rb_define_method(cCamImage.klass, "sep_filter_7x7!", VALUEFUNC(_wrap_CamImage_sep_filter_7x7N___), -1); rb_define_method(cCamImage.klass, "sep_filter_7x7", VALUEFUNC(_wrap_CamImage_sep_filter_7x7), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_3x3!", VALUEFUNC(_wrap_CamImage_sep_filter_abs_3x3N___), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_3x3", VALUEFUNC(_wrap_CamImage_sep_filter_abs_3x3), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_5x5!", VALUEFUNC(_wrap_CamImage_sep_filter_abs_5x5N___), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_5x5", VALUEFUNC(_wrap_CamImage_sep_filter_abs_5x5), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_7x7!", VALUEFUNC(_wrap_CamImage_sep_filter_abs_7x7N___), -1); rb_define_method(cCamImage.klass, "sep_filter_abs_7x7", VALUEFUNC(_wrap_CamImage_sep_filter_abs_7x7), -1); rb_define_method(cCamImage.klass, "fixed_filter", VALUEFUNC(_wrap_CamImage_fixed_filter), -1); rb_define_method(cCamImage.klass, "fixed_filter!", VALUEFUNC(_wrap_CamImage_fixed_filterN___), -1); rb_define_method(cCamImage.klass, "draw_line", VALUEFUNC(_wrap_CamImage_draw_line), -1); rb_define_method(cCamImage.klass, "accumulate_line", VALUEFUNC(_wrap_CamImage_accumulate_line), -1); rb_define_method(cCamImage.klass, "draw_rectangle", VALUEFUNC(_wrap_CamImage_draw_rectangle), -1); rb_define_method(cCamImage.klass, "draw_text_16s", VALUEFUNC(_wrap_CamImage_draw_text_16s), -1); rb_define_method(cCamImage.klass, "draw_text_bitmap", VALUEFUNC(_wrap_CamImage_draw_text_bitmap), -1); rb_define_method(cCamImage.klass, "draw_circle", VALUEFUNC(_wrap_CamImage_draw_circle), -1); rb_define_method(cCamImage.klass, "draw_ellipse", VALUEFUNC(_wrap_CamImage_draw_ellipse), -1); rb_define_method(cCamImage.klass, "plot", VALUEFUNC(_wrap_CamImage_plot), -1); rb_define_method(cCamImage.klass, "fill_color", VALUEFUNC(_wrap_CamImage_fill_color), -1); rb_define_method(cCamImage.klass, "scale", VALUEFUNC(_wrap_CamImage_scale), -1); rb_define_method(cCamImage.klass, "set_mask", VALUEFUNC(_wrap_CamImage_set_mask), -1); rb_define_alias(cCamImage.klass, "mask=", "set_mask"); rb_define_method(cCamImage.klass, "apply_lut!", VALUEFUNC(_wrap_CamImage_apply_lutN___), -1); rb_define_method(cCamImage.klass, "apply_lut", VALUEFUNC(_wrap_CamImage_apply_lut), -1); rb_define_method(cCamImage.klass, "to_yuv", VALUEFUNC(_wrap_CamImage_to_yuv), -1); rb_define_method(cCamImage.klass, "to_rgb", VALUEFUNC(_wrap_CamImage_to_rgb), -1); rb_define_method(cCamImage.klass, "encode_color", VALUEFUNC(_wrap_CamImage_encode_color), -1); rb_define_method(cCamImage.klass, "encode", VALUEFUNC(_wrap_CamImage_encode), -1); rb_define_method(cCamImage.klass, "encode_lut", VALUEFUNC(_wrap_CamImage_encode_lut), -1); rb_define_method(cCamImage.klass, "encode_threshold", VALUEFUNC(_wrap_CamImage_encode_threshold), -1); rb_define_method(cCamImage.klass, "encode_threshold_inv", VALUEFUNC(_wrap_CamImage_encode_threshold_inv), -1); rb_define_method(cCamImage.klass, "abs", VALUEFUNC(_wrap_CamImage_abs), -1); rb_define_method(cCamImage.klass, "threshold", VALUEFUNC(_wrap_CamImage_threshold), -1); rb_define_method(cCamImage.klass, "threshold_inv", VALUEFUNC(_wrap_CamImage_threshold_inv), -1); rb_define_method(cCamImage.klass, "abs!", VALUEFUNC(_wrap_CamImage_absN___), -1); rb_define_method(cCamImage.klass, "arithm!", VALUEFUNC(_wrap_CamImage_arithmN___), -1); rb_define_method(cCamImage.klass, "arithm", VALUEFUNC(_wrap_CamImage_arithm), -1); rb_define_method(cCamImage.klass, "measures", VALUEFUNC(_wrap_CamImage_measures), -1); rb_define_method(cCamImage.klass, "average_deviation", VALUEFUNC(_wrap_CamImage_average_deviation), -1); rb_define_method(cCamImage.klass, "sum_hv", VALUEFUNC(_wrap_CamImage_sum_hv), -1); rb_define_method(cCamImage.klass, "sum_h", VALUEFUNC(_wrap_CamImage_sum_h), -1); rb_define_method(cCamImage.klass, "sum_v", VALUEFUNC(_wrap_CamImage_sum_v), -1); rb_define_method(cCamImage.klass, "histogram", VALUEFUNC(_wrap_CamImage_histogram), -1); rb_define_method(cCamImage.klass, "histogram_2_channels", VALUEFUNC(_wrap_CamImage_histogram_2_channels), -1); rb_define_method(cCamImage.klass, "find_threshold", VALUEFUNC(_wrap_CamImage_find_threshold), -1); rb_define_method(cCamImage.klass, "hough_circle", VALUEFUNC(_wrap_CamImage_hough_circle), -1); rb_define_method(cCamImage.klass, "hierarchical_watershed", VALUEFUNC(_wrap_CamImage_hierarchical_watershed), -1); rb_define_method(cCamImage.klass, "hierarchical_watershed_contours", VALUEFUNC(_wrap_CamImage_hierarchical_watershed_contours), -1); rb_define_method(cCamImage.klass, "hierarchical_watershed_regions!", VALUEFUNC(_wrap_CamImage_hierarchical_watershed_regionsN___), -1); cCamImage.mark = (void (*)(void *)) mark_CamImage; cCamImage.destroy = (void (*)(void *)) free_CamImage; cCamImage.trackObjects = 1; cCamPoint.klass = rb_define_class_under(mCamellia, "CamPoint", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamPoint, (void *) &cCamPoint); rb_define_alloc_func(cCamPoint.klass, _wrap_CamPoint_allocate); rb_define_method(cCamPoint.klass, "initialize", VALUEFUNC(_wrap_new_CamPoint), -1); rb_define_method(cCamPoint.klass, "x=", VALUEFUNC(_wrap_CamPoint_x_set), -1); rb_define_method(cCamPoint.klass, "x", VALUEFUNC(_wrap_CamPoint_x_get), -1); rb_define_method(cCamPoint.klass, "y=", VALUEFUNC(_wrap_CamPoint_y_set), -1); rb_define_method(cCamPoint.klass, "y", VALUEFUNC(_wrap_CamPoint_y_get), -1); cCamPoint.mark = 0; cCamPoint.destroy = (void (*)(void *)) free_CamPoint; cCamPoint.trackObjects = 1; rb_define_const(mCamellia, "CAM_ARITHM_ABS", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_ARITHM_INVERSE", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_ARITHM_SELECT", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_ARITHM_THRESHOLD", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_ARITHM_DOUBLE_THRESHOLD", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_ARITHM_ADD", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_ARITHM_SUM", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_ARITHM_SUB", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_ARITHM_MUL", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_ARITHM_ABSDIFF", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_ARITHM_WEIGHTED_SUM", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_ARITHM_INF", SWIG_From_int(static_cast(5))); rb_define_const(mCamellia, "CAM_ARITHM_SUP", SWIG_From_int(static_cast(6))); rb_define_const(mCamellia, "CAM_ARITHM_COMP_INF", SWIG_From_int(static_cast(7))); rb_define_const(mCamellia, "CAM_ARITHM_COMP_EQUAL", SWIG_From_int(static_cast(8))); rb_define_const(mCamellia, "CAM_ARITHM_COMP_SUP", SWIG_From_int(static_cast(9))); rb_define_const(mCamellia, "CAM_ARITHM_AND", SWIG_From_int(static_cast(10))); rb_define_const(mCamellia, "CAM_ARITHM_OR", SWIG_From_int(static_cast(11))); rb_define_const(mCamellia, "CAM_ABS", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_INVERSE", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_SELECT", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_THRESHOLD", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_DOUBLE_THRESHOLD", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_ADD", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_SUM", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_SUB", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_ABSDIFF", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_WEIGHTED_SUM", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_INF", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_SUP", SWIG_From_int(static_cast(5))); rb_define_const(mCamellia, "CAM_COMP_INF", SWIG_From_int(static_cast(6))); rb_define_const(mCamellia, "CAM_COMP_EQUAL", SWIG_From_int(static_cast(7))); rb_define_const(mCamellia, "CAM_COMP_SUP", SWIG_From_int(static_cast(8))); rb_define_const(mCamellia, "CAM_AND", SWIG_From_int(static_cast(9))); rb_define_const(mCamellia, "CAM_OR", SWIG_From_int(static_cast(10))); rb_define_const(mCamellia, "CAM_MM_NEIGHB", SWIG_From_int(static_cast(7))); rb_define_const(mCamellia, "CAM_MM_DILATED", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_MM_ERODED", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_MM_ORIGINAL", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_MM_SUBSTRACTION", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_MM_MULTIPLEX", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_MM_THINNING", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_MM_THICKENING", SWIG_From_int(static_cast(3))); cCamMorphoMathsKernel.klass = rb_define_class_under(mCamellia, "CamMorphoMathsKernel", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamMorphoMathsKernel, (void *) &cCamMorphoMathsKernel); rb_define_alloc_func(cCamMorphoMathsKernel.klass, _wrap_CamMorphoMathsKernel_allocate); rb_define_method(cCamMorphoMathsKernel.klass, "initialize", VALUEFUNC(_wrap_new_CamMorphoMathsKernel), -1); rb_define_method(cCamMorphoMathsKernel.klass, "source1=", VALUEFUNC(_wrap_CamMorphoMathsKernel_source1_set), -1); rb_define_method(cCamMorphoMathsKernel.klass, "source1", VALUEFUNC(_wrap_CamMorphoMathsKernel_source1_get), -1); rb_define_method(cCamMorphoMathsKernel.klass, "source2=", VALUEFUNC(_wrap_CamMorphoMathsKernel_source2_set), -1); rb_define_method(cCamMorphoMathsKernel.klass, "source2", VALUEFUNC(_wrap_CamMorphoMathsKernel_source2_get), -1); rb_define_method(cCamMorphoMathsKernel.klass, "operation=", VALUEFUNC(_wrap_CamMorphoMathsKernel_operation_set), -1); rb_define_method(cCamMorphoMathsKernel.klass, "operation", VALUEFUNC(_wrap_CamMorphoMathsKernel_operation_get), -1); rb_define_method(cCamMorphoMathsKernel.klass, "set_dilate", VALUEFUNC(_wrap_CamMorphoMathsKernel_set_dilate), -1); rb_define_method(cCamMorphoMathsKernel.klass, "get_dilate", VALUEFUNC(_wrap_CamMorphoMathsKernel_get_dilate), -1); rb_define_method(cCamMorphoMathsKernel.klass, "set_erode", VALUEFUNC(_wrap_CamMorphoMathsKernel_set_erode), -1); rb_define_method(cCamMorphoMathsKernel.klass, "get_erode", VALUEFUNC(_wrap_CamMorphoMathsKernel_get_erode), -1); cCamMorphoMathsKernel.mark = 0; cCamMorphoMathsKernel.destroy = (void (*)(void *)) free_CamMorphoMathsKernel; cCamMorphoMathsKernel.trackObjects = 1; cCamRun.klass = rb_define_class_under(mCamellia, "CamRun", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamRun, (void *) &cCamRun); rb_define_alloc_func(cCamRun.klass, _wrap_CamRun_allocate); rb_define_method(cCamRun.klass, "initialize", VALUEFUNC(_wrap_new_CamRun), -1); rb_define_method(cCamRun.klass, "value=", VALUEFUNC(_wrap_CamRun_value_set), -1); rb_define_method(cCamRun.klass, "value", VALUEFUNC(_wrap_CamRun_value_get), -1); rb_define_method(cCamRun.klass, "length=", VALUEFUNC(_wrap_CamRun_length_set), -1); rb_define_method(cCamRun.klass, "length", VALUEFUNC(_wrap_CamRun_length_get), -1); rb_define_method(cCamRun.klass, "blob=", VALUEFUNC(_wrap_CamRun_blob_set), -1); rb_define_method(cCamRun.klass, "blob", VALUEFUNC(_wrap_CamRun_blob_get), -1); rb_define_method(cCamRun.klass, "line=", VALUEFUNC(_wrap_CamRun_line_set), -1); rb_define_method(cCamRun.klass, "line", VALUEFUNC(_wrap_CamRun_line_get), -1); cCamRun.mark = 0; cCamRun.destroy = (void (*)(void *)) free_CamRun; cCamRun.trackObjects = 1; cCamMeasuresResults.klass = rb_define_class_under(mCamellia, "CamMeasuresResults", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamMeasuresResults, (void *) &cCamMeasuresResults); rb_define_alloc_func(cCamMeasuresResults.klass, _wrap_CamMeasuresResults_allocate); rb_define_method(cCamMeasuresResults.klass, "initialize", VALUEFUNC(_wrap_new_CamMeasuresResults), -1); rb_define_method(cCamMeasuresResults.klass, "min=", VALUEFUNC(_wrap_CamMeasuresResults_min_set), -1); rb_define_method(cCamMeasuresResults.klass, "min", VALUEFUNC(_wrap_CamMeasuresResults_min_get), -1); rb_define_method(cCamMeasuresResults.klass, "xmin=", VALUEFUNC(_wrap_CamMeasuresResults_xmin_set), -1); rb_define_method(cCamMeasuresResults.klass, "xmin", VALUEFUNC(_wrap_CamMeasuresResults_xmin_get), -1); rb_define_method(cCamMeasuresResults.klass, "ymin=", VALUEFUNC(_wrap_CamMeasuresResults_ymin_set), -1); rb_define_method(cCamMeasuresResults.klass, "ymin", VALUEFUNC(_wrap_CamMeasuresResults_ymin_get), -1); rb_define_method(cCamMeasuresResults.klass, "max=", VALUEFUNC(_wrap_CamMeasuresResults_max_set), -1); rb_define_method(cCamMeasuresResults.klass, "max", VALUEFUNC(_wrap_CamMeasuresResults_max_get), -1); rb_define_method(cCamMeasuresResults.klass, "xmax=", VALUEFUNC(_wrap_CamMeasuresResults_xmax_set), -1); rb_define_method(cCamMeasuresResults.klass, "xmax", VALUEFUNC(_wrap_CamMeasuresResults_xmax_get), -1); rb_define_method(cCamMeasuresResults.klass, "ymax=", VALUEFUNC(_wrap_CamMeasuresResults_ymax_set), -1); rb_define_method(cCamMeasuresResults.klass, "ymax", VALUEFUNC(_wrap_CamMeasuresResults_ymax_get), -1); rb_define_method(cCamMeasuresResults.klass, "average=", VALUEFUNC(_wrap_CamMeasuresResults_average_set), -1); rb_define_method(cCamMeasuresResults.klass, "average", VALUEFUNC(_wrap_CamMeasuresResults_average_get), -1); rb_define_method(cCamMeasuresResults.klass, "sum=", VALUEFUNC(_wrap_CamMeasuresResults_sum_set), -1); rb_define_method(cCamMeasuresResults.klass, "sum", VALUEFUNC(_wrap_CamMeasuresResults_sum_get), -1); cCamMeasuresResults.mark = 0; cCamMeasuresResults.destroy = (void (*)(void *)) free_CamMeasuresResults; cCamMeasuresResults.trackObjects = 1; cCamLinearFilterKernel.klass = rb_define_class_under(mCamellia, "CamLinearFilterKernel", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamLinearFilterKernel, (void *) &cCamLinearFilterKernel); rb_define_alloc_func(cCamLinearFilterKernel.klass, _wrap_CamLinearFilterKernel_allocate); rb_define_method(cCamLinearFilterKernel.klass, "initialize", VALUEFUNC(_wrap_new_CamLinearFilterKernel), -1); rb_define_method(cCamLinearFilterKernel.klass, "coeff1=", VALUEFUNC(_wrap_CamLinearFilterKernel_coeff1_set), -1); rb_define_method(cCamLinearFilterKernel.klass, "coeff1", VALUEFUNC(_wrap_CamLinearFilterKernel_coeff1_get), -1); rb_define_method(cCamLinearFilterKernel.klass, "coeff2=", VALUEFUNC(_wrap_CamLinearFilterKernel_coeff2_set), -1); rb_define_method(cCamLinearFilterKernel.klass, "coeff2", VALUEFUNC(_wrap_CamLinearFilterKernel_coeff2_get), -1); rb_define_method(cCamLinearFilterKernel.klass, "set", VALUEFUNC(_wrap_CamLinearFilterKernel_set), -1); rb_define_method(cCamLinearFilterKernel.klass, "get", VALUEFUNC(_wrap_CamLinearFilterKernel_get), -1); cCamLinearFilterKernel.mark = 0; cCamLinearFilterKernel.destroy = (void (*)(void *)) free_CamLinearFilterKernel; cCamLinearFilterKernel.trackObjects = 1; cCamSepFilterKernel.klass = rb_define_class_under(mCamellia, "CamSepFilterKernel", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamSepFilterKernel, (void *) &cCamSepFilterKernel); rb_define_alloc_func(cCamSepFilterKernel.klass, _wrap_CamSepFilterKernel_allocate); rb_define_method(cCamSepFilterKernel.klass, "initialize", VALUEFUNC(_wrap_new_CamSepFilterKernel), -1); rb_define_method(cCamSepFilterKernel.klass, "coeff1=", VALUEFUNC(_wrap_CamSepFilterKernel_coeff1_set), -1); rb_define_method(cCamSepFilterKernel.klass, "coeff1", VALUEFUNC(_wrap_CamSepFilterKernel_coeff1_get), -1); rb_define_method(cCamSepFilterKernel.klass, "coeff2=", VALUEFUNC(_wrap_CamSepFilterKernel_coeff2_set), -1); rb_define_method(cCamSepFilterKernel.klass, "coeff2", VALUEFUNC(_wrap_CamSepFilterKernel_coeff2_get), -1); rb_define_method(cCamSepFilterKernel.klass, "set_x", VALUEFUNC(_wrap_CamSepFilterKernel_set_x), -1); rb_define_method(cCamSepFilterKernel.klass, "set_y", VALUEFUNC(_wrap_CamSepFilterKernel_set_y), -1); rb_define_method(cCamSepFilterKernel.klass, "get_x", VALUEFUNC(_wrap_CamSepFilterKernel_get_x), -1); rb_define_method(cCamSepFilterKernel.klass, "get_y", VALUEFUNC(_wrap_CamSepFilterKernel_get_y), -1); cCamSepFilterKernel.mark = 0; cCamSepFilterKernel.destroy = (void (*)(void *)) free_CamSepFilterKernel; cCamSepFilterKernel.trackObjects = 1; rb_define_const(mCamellia, "CAM_SOBEL_H", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_SOBEL_V", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_GAUSSIAN_3x3", SWIG_From_int(static_cast(3))); rb_define_const(mCamellia, "CAM_GAUSSIAN_5x5", SWIG_From_int(static_cast(4))); rb_define_const(mCamellia, "CAM_GAUSSIAN_7x7", SWIG_From_int(static_cast(5))); rb_define_const(mCamellia, "CAM_SCHARR_H", SWIG_From_int(static_cast(6))); rb_define_const(mCamellia, "CAM_SCHARR_V", SWIG_From_int(static_cast(7))); cCamBasin.klass = rb_define_class_under(mCamellia, "CamBasin", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamBasin, (void *) &cCamBasin); rb_define_alloc_func(cCamBasin.klass, _wrap_CamBasin_allocate); rb_define_method(cCamBasin.klass, "initialize", VALUEFUNC(_wrap_new_CamBasin), -1); rb_define_method(cCamBasin.klass, "dynamics", VALUEFUNC(_wrap_CamBasin_dynamics_get), -1); rb_define_method(cCamBasin.klass, "minimum", VALUEFUNC(_wrap_CamBasin_minimum_get), -1); rb_define_method(cCamBasin.klass, "flooded", VALUEFUNC(_wrap_CamBasin_flooded_get), -1); rb_define_method(cCamBasin.klass, "surface", VALUEFUNC(_wrap_CamBasin_surface_get), -1); rb_define_method(cCamBasin.klass, "accsurface", VALUEFUNC(_wrap_CamBasin_accsurface_get), -1); rb_define_method(cCamBasin.klass, "x", VALUEFUNC(_wrap_CamBasin_x_get), -1); rb_define_method(cCamBasin.klass, "y", VALUEFUNC(_wrap_CamBasin_y_get), -1); cCamBasin.mark = 0; cCamBasin.destroy = (void (*)(void *)) free_CamBasin; cCamBasin.trackObjects = 1; rb_define_const(mCamellia, "CAM_NOT_COMPUTED", SWIG_From_int(static_cast(65536))); rb_define_module_function(mCamellia, "cam_set_viewer", VALUEFUNC(_wrap_cam_set_viewer), -1); cCamBitmapFont.klass = rb_define_class_under(mCamellia, "CamBitmapFont", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamBitmapFont, (void *) &cCamBitmapFont); rb_define_alloc_func(cCamBitmapFont.klass, _wrap_CamBitmapFont_allocate); rb_define_method(cCamBitmapFont.klass, "initialize", VALUEFUNC(_wrap_new_CamBitmapFont), -1); rb_define_method(cCamBitmapFont.klass, "first_char", VALUEFUNC(_wrap_CamBitmapFont_first_char_get), -1); rb_define_method(cCamBitmapFont.klass, "nb_chars", VALUEFUNC(_wrap_CamBitmapFont_nb_chars_get), -1); rb_define_method(cCamBitmapFont.klass, "height", VALUEFUNC(_wrap_CamBitmapFont_height_get), -1); rb_define_method(cCamBitmapFont.klass, "masks", VALUEFUNC(_wrap_CamBitmapFont_masks_get), -1); rb_define_method(cCamBitmapFont.klass, "letters", VALUEFUNC(_wrap_CamBitmapFont_letters_get), -1); rb_define_method(cCamBitmapFont.klass, "load", VALUEFUNC(_wrap_CamBitmapFont_load), -1); cCamBitmapFont.mark = 0; cCamBitmapFont.destroy = (void (*)(void *)) free_CamBitmapFont; cCamBitmapFont.trackObjects = 1; rb_define_module_function(mCamellia, "cam_rgb", VALUEFUNC(_wrap_cam_rgb), -1); rb_define_module_function(mCamellia, "camRGBA", VALUEFUNC(_wrap_camRGBA), -1); rb_define_const(mCamellia, "CAM_COLORMODEL_GREY", SWIG_From_int(static_cast(0))); rb_define_const(mCamellia, "CAM_COLORMODEL_RGB", SWIG_From_int(static_cast(1))); rb_define_const(mCamellia, "CAM_COLORMODEL_RGBA", SWIG_From_int(static_cast(2))); rb_define_const(mCamellia, "CAM_COLORMODEL_YUV", SWIG_From_int(static_cast(3))); cCamTable.klass = rb_define_class_under(mCamellia, "CamTable", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamTable, (void *) &cCamTable); rb_include_module(cCamTable.klass, rb_eval_string("Enumerable")); rb_define_alloc_func(cCamTable.klass, _wrap_CamTable_allocate); rb_define_method(cCamTable.klass, "initialize", VALUEFUNC(_wrap_new_CamTable), -1); rb_define_method(cCamTable.klass, "size", VALUEFUNC(_wrap_CamTable_size_get), -1); rb_define_method(cCamTable.klass, "set", VALUEFUNC(_wrap_CamTable_set), -1); rb_define_method(cCamTable.klass, "[]", VALUEFUNC(_wrap_CamTable___getitem__), -1); rb_define_method(cCamTable.klass, "[]=", VALUEFUNC(_wrap_CamTable___setitem__), -1); rb_define_method(cCamTable.klass, "each", VALUEFUNC(_wrap_CamTable_each), -1); cCamTable.mark = 0; cCamTable.destroy = (void (*)(void *)) free_CamTable; cCamTable.trackObjects = 1; cCamRLEImage.klass = rb_define_class_under(mCamellia, "CamRLEImage", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamRLEImage, (void *) &cCamRLEImage); rb_define_alloc_func(cCamRLEImage.klass, _wrap_CamRLEImage_allocate); rb_define_method(cCamRLEImage.klass, "initialize", VALUEFUNC(_wrap_new_CamRLEImage), -1); rb_define_method(cCamRLEImage.klass, "id", VALUEFUNC(_wrap_CamRLEImage_id_get), -1); rb_define_method(cCamRLEImage.klass, "height", VALUEFUNC(_wrap_CamRLEImage_height_get), -1); rb_define_method(cCamRLEImage.klass, "width", VALUEFUNC(_wrap_CamRLEImage_width_get), -1); rb_define_method(cCamRLEImage.klass, "nb_runs", VALUEFUNC(_wrap_CamRLEImage_nb_runs_get), -1); rb_define_method(cCamRLEImage.klass, "allocated", VALUEFUNC(_wrap_CamRLEImage_allocated_get), -1); rb_define_method(cCamRLEImage.klass, "clone", VALUEFUNC(_wrap_CamRLEImage_clone), -1); rb_define_method(cCamRLEImage.klass, "alloc", VALUEFUNC(_wrap_CamRLEImage_alloc), -1); rb_define_method(cCamRLEImage.klass, "realloc", VALUEFUNC(_wrap_CamRLEImage_realloc), -1); rb_define_method(cCamRLEImage.klass, "encode", VALUEFUNC(_wrap_CamRLEImage_encode), -1); rb_define_method(cCamRLEImage.klass, "encode_lut", VALUEFUNC(_wrap_CamRLEImage_encode_lut), -1); rb_define_method(cCamRLEImage.klass, "encode_threshold", VALUEFUNC(_wrap_CamRLEImage_encode_threshold), -1); rb_define_method(cCamRLEImage.klass, "encode_threshold_inv", VALUEFUNC(_wrap_CamRLEImage_encode_threshold_inv), -1); rb_define_method(cCamRLEImage.klass, "encode_color", VALUEFUNC(_wrap_CamRLEImage_encode_color), -1); rb_define_method(cCamRLEImage.klass, "labeling!", VALUEFUNC(_wrap_CamRLEImage_labelingN___), -1); rb_define_alias(cCamRLEImage.klass, "labelling!", "labeling!"); rb_define_method(cCamRLEImage.klass, "blob_analysis", VALUEFUNC(_wrap_CamRLEImage_blob_analysis), -1); rb_define_method(cCamRLEImage.klass, "apply_lut!", VALUEFUNC(_wrap_CamRLEImage_apply_lutN___), -1); rb_define_method(cCamRLEImage.klass, "apply_lut", VALUEFUNC(_wrap_CamRLEImage_apply_lut), -1); rb_define_method(cCamRLEImage.klass, "decode", VALUEFUNC(_wrap_CamRLEImage_decode), -1); rb_define_method(cCamRLEImage.klass, "decode_blobs", VALUEFUNC(_wrap_CamRLEImage_decode_blobs), -1); rb_define_method(cCamRLEImage.klass, "inverse!", VALUEFUNC(_wrap_CamRLEImage_inverseN___), -1); rb_define_method(cCamRLEImage.klass, "erode_cross", VALUEFUNC(_wrap_CamRLEImage_erode_cross), -1); rb_define_method(cCamRLEImage.klass, "erode_3x3", VALUEFUNC(_wrap_CamRLEImage_erode_3x3), -1); rb_define_method(cCamRLEImage.klass, "erode_3x2", VALUEFUNC(_wrap_CamRLEImage_erode_3x2), -1); cCamRLEImage.mark = 0; cCamRLEImage.destroy = (void (*)(void *)) free_CamRLEImage; cCamRLEImage.trackObjects = 1; cCamBlobInfo.klass = rb_define_class_under(mCamellia, "CamBlobInfo", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamBlobInfo, (void *) &cCamBlobInfo); rb_define_alloc_func(cCamBlobInfo.klass, _wrap_CamBlobInfo_allocate); rb_define_method(cCamBlobInfo.klass, "initialize", VALUEFUNC(_wrap_new_CamBlobInfo), -1); rb_define_method(cCamBlobInfo.klass, "id", VALUEFUNC(_wrap_CamBlobInfo_id_get), -1); rb_define_method(cCamBlobInfo.klass, "left", VALUEFUNC(_wrap_CamBlobInfo_left_get), -1); rb_define_method(cCamBlobInfo.klass, "top", VALUEFUNC(_wrap_CamBlobInfo_top_get), -1); rb_define_method(cCamBlobInfo.klass, "width", VALUEFUNC(_wrap_CamBlobInfo_width_get), -1); rb_define_method(cCamBlobInfo.klass, "height", VALUEFUNC(_wrap_CamBlobInfo_height_get), -1); rb_define_method(cCamBlobInfo.klass, "surface", VALUEFUNC(_wrap_CamBlobInfo_surface_get), -1); rb_define_method(cCamBlobInfo.klass, "cx", VALUEFUNC(_wrap_CamBlobInfo_cx_get), -1); rb_define_method(cCamBlobInfo.klass, "cy", VALUEFUNC(_wrap_CamBlobInfo_cy_get), -1); rb_define_method(cCamBlobInfo.klass, "value", VALUEFUNC(_wrap_CamBlobInfo_value_get), -1); rb_define_method(cCamBlobInfo.klass, "min", VALUEFUNC(_wrap_CamBlobInfo_min_get), -1); rb_define_method(cCamBlobInfo.klass, "max", VALUEFUNC(_wrap_CamBlobInfo_max_get), -1); rb_define_method(cCamBlobInfo.klass, "misc", VALUEFUNC(_wrap_CamBlobInfo_misc_get), -1); cCamBlobInfo.mark = 0; cCamBlobInfo.destroy = (void (*)(void *)) free_CamBlobInfo; cCamBlobInfo.trackObjects = 1; cCamBlobs.klass = rb_define_class_under(mCamellia, "CamBlobs", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamBlobs, (void *) &cCamBlobs); rb_include_module(cCamBlobs.klass, rb_eval_string("Enumerable")); rb_define_alloc_func(cCamBlobs.klass, _wrap_CamBlobs_allocate); rb_define_method(cCamBlobs.klass, "initialize", VALUEFUNC(_wrap_new_CamBlobs), -1); rb_define_method(cCamBlobs.klass, "nb_blobs", VALUEFUNC(_wrap_CamBlobs_nb_blobs_get), -1); rb_define_method(cCamBlobs.klass, "[]", VALUEFUNC(_wrap_CamBlobs___getitem__), -1); rb_define_method(cCamBlobs.klass, "each", VALUEFUNC(_wrap_CamBlobs_each), -1); cCamBlobs.mark = 0; cCamBlobs.destroy = (void (*)(void *)) free_CamBlobs; cCamBlobs.trackObjects = 1; cCamTableOfBasins.klass = rb_define_class_under(mCamellia, "CamTableOfBasins", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_CamTableOfBasins, (void *) &cCamTableOfBasins); rb_include_module(cCamTableOfBasins.klass, rb_eval_string("Enumerable")); rb_define_alloc_func(cCamTableOfBasins.klass, _wrap_CamTableOfBasins_allocate); rb_define_method(cCamTableOfBasins.klass, "initialize", VALUEFUNC(_wrap_new_CamTableOfBasins), -1); rb_define_method(cCamTableOfBasins.klass, "nbBasins", VALUEFUNC(_wrap_CamTableOfBasins_nbBasins_get), -1); rb_define_method(cCamTableOfBasins.klass, "get_rid_of", VALUEFUNC(_wrap_CamTableOfBasins_get_rid_of), -1); rb_define_method(cCamTableOfBasins.klass, "[]", VALUEFUNC(_wrap_CamTableOfBasins___getitem__), -1); rb_define_method(cCamTableOfBasins.klass, "each", VALUEFUNC(_wrap_CamTableOfBasins_each), -1); cCamTableOfBasins.mark = 0; cCamTableOfBasins.destroy = (void (*)(void *)) free_CamTableOfBasins; cCamTableOfBasins.trackObjects = 1; camSetErrorFunct(camErrorRuby); }