github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/swig/pycv/pycv_wrap.cxx (about)

     1  /* ----------------------------------------------------------------------------
     2   * This file was automatically generated by SWIG (https://www.swig.org).
     3   * Version 4.1.1
     4   *
     5   * Do not make changes to this file unless you know what you are doing - modify
     6   * the SWIG interface file instead.
     7   * ----------------------------------------------------------------------------- */
     8  
     9  // source: pycv.swigcxx
    10  
    11  
    12  extern
    13  #ifdef __cplusplus
    14    "C"
    15  #endif
    16    void cgo_panic__pycv_ffa8ea6aa3be9035(const char*);
    17  static void _swig_gopanic(const char *p) {
    18    cgo_panic__pycv_ffa8ea6aa3be9035(p);
    19  }
    20  
    21  
    22  
    23  #define SWIG_VERSION 0x040101
    24  #define SWIGGO
    25  #define SWIGMODULE pycv
    26  #define SWIG_DIRECTORS
    27  /* -----------------------------------------------------------------------------
    28   *  This section contains generic SWIG labels for method/variable
    29   *  declarations/attributes, and other compiler dependent labels.
    30   * ----------------------------------------------------------------------------- */
    31  
    32  /* template workaround for compilers that cannot correctly implement the C++ standard */
    33  #ifndef SWIGTEMPLATEDISAMBIGUATOR
    34  # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
    35  #  define SWIGTEMPLATEDISAMBIGUATOR template
    36  # elif defined(__HP_aCC)
    37  /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
    38  /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
    39  #  define SWIGTEMPLATEDISAMBIGUATOR template
    40  # else
    41  #  define SWIGTEMPLATEDISAMBIGUATOR
    42  # endif
    43  #endif
    44  
    45  /* inline attribute */
    46  #ifndef SWIGINLINE
    47  # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
    48  #   define SWIGINLINE inline
    49  # else
    50  #   define SWIGINLINE
    51  # endif
    52  #endif
    53  
    54  /* attribute recognised by some compilers to avoid 'unused' warnings */
    55  #ifndef SWIGUNUSED
    56  # if defined(__GNUC__)
    57  #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
    58  #     define SWIGUNUSED __attribute__ ((__unused__))
    59  #   else
    60  #     define SWIGUNUSED
    61  #   endif
    62  # elif defined(__ICC)
    63  #   define SWIGUNUSED __attribute__ ((__unused__))
    64  # else
    65  #   define SWIGUNUSED
    66  # endif
    67  #endif
    68  
    69  #ifndef SWIG_MSC_UNSUPPRESS_4505
    70  # if defined(_MSC_VER)
    71  #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
    72  # endif
    73  #endif
    74  
    75  #ifndef SWIGUNUSEDPARM
    76  # ifdef __cplusplus
    77  #   define SWIGUNUSEDPARM(p)
    78  # else
    79  #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
    80  # endif
    81  #endif
    82  
    83  /* internal SWIG method */
    84  #ifndef SWIGINTERN
    85  # define SWIGINTERN static SWIGUNUSED
    86  #endif
    87  
    88  /* internal inline SWIG method */
    89  #ifndef SWIGINTERNINLINE
    90  # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
    91  #endif
    92  
    93  /* exporting methods */
    94  #if defined(__GNUC__)
    95  #  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
    96  #    ifndef GCC_HASCLASSVISIBILITY
    97  #      define GCC_HASCLASSVISIBILITY
    98  #    endif
    99  #  endif
   100  #endif
   101  
   102  #ifndef SWIGEXPORT
   103  # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
   104  #   if defined(STATIC_LINKED)
   105  #     define SWIGEXPORT
   106  #   else
   107  #     define SWIGEXPORT __declspec(dllexport)
   108  #   endif
   109  # else
   110  #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
   111  #     define SWIGEXPORT __attribute__ ((visibility("default")))
   112  #   else
   113  #     define SWIGEXPORT
   114  #   endif
   115  # endif
   116  #endif
   117  
   118  /* calling conventions for Windows */
   119  #ifndef SWIGSTDCALL
   120  # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
   121  #   define SWIGSTDCALL __stdcall
   122  # else
   123  #   define SWIGSTDCALL
   124  # endif
   125  #endif
   126  
   127  /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
   128  #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
   129  # define _CRT_SECURE_NO_DEPRECATE
   130  #endif
   131  
   132  /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
   133  #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
   134  # define _SCL_SECURE_NO_DEPRECATE
   135  #endif
   136  
   137  /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
   138  #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
   139  # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
   140  #endif
   141  
   142  /* Intel's compiler complains if a variable which was never initialised is
   143   * cast to void, which is a common idiom which we use to indicate that we
   144   * are aware a variable isn't used.  So we just silence that warning.
   145   * See: https://github.com/swig/swig/issues/192 for more discussion.
   146   */
   147  #ifdef __INTEL_COMPILER
   148  # pragma warning disable 592
   149  #endif
   150  
   151  
   152  #include <stddef.h>
   153  #include <stdio.h>
   154  #include <stdlib.h>
   155  #include <string.h>
   156  #include <sys/types.h>
   157  
   158  
   159  
   160  typedef long long intgo;
   161  typedef unsigned long long uintgo;
   162  
   163  
   164  # if !defined(__clang__) && (defined(__i386__) || defined(__x86_64__))
   165  #   define SWIGSTRUCTPACKED __attribute__((__packed__, __gcc_struct__))
   166  # else
   167  #   define SWIGSTRUCTPACKED __attribute__((__packed__))
   168  # endif
   169  
   170  
   171  
   172  typedef struct { char *p; intgo n; } _gostring_;
   173  typedef struct { void* array; intgo len; intgo cap; } _goslice_;
   174  
   175  
   176  
   177  #define SWIG_exception(code, msg) _swig_gopanic(msg)
   178  
   179  
   180  static _gostring_ Swig_AllocateString(const char *p, size_t l) {
   181    _gostring_ ret;
   182    ret.p = (char*)malloc(l);
   183    memcpy(ret.p, p, l);
   184    ret.n = l;
   185    return ret;
   186  }
   187  
   188  /* -----------------------------------------------------------------------------
   189   * director_common.swg
   190   *
   191   * This file contains support for director classes which is common between
   192   * languages.
   193   * ----------------------------------------------------------------------------- */
   194  
   195  /*
   196    Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
   197    'Swig' namespace. This could be useful for multi-modules projects.
   198  */
   199  #ifdef SWIG_DIRECTOR_STATIC
   200  /* Force anonymous (static) namespace */
   201  #define Swig
   202  #endif
   203  /* -----------------------------------------------------------------------------
   204   * director.swg
   205   *
   206   * This file contains support for director classes so that Go proxy
   207   * methods can be called from C++.
   208   * ----------------------------------------------------------------------------- */
   209  
   210  #include <exception>
   211  #include <map>
   212  
   213  namespace Swig {
   214  
   215    class DirectorException : public std::exception {
   216    };
   217  }
   218  
   219  /* Handle memory management for directors.  */
   220  
   221  namespace {
   222    struct GCItem {
   223      virtual ~GCItem() {}
   224    };
   225  
   226    struct GCItem_var {
   227      GCItem_var(GCItem *item = 0) : _item(item) {
   228      }
   229  
   230      GCItem_var& operator=(GCItem *item) {
   231        GCItem *tmp = _item;
   232        _item = item;
   233        delete tmp;
   234        return *this;
   235      }
   236  
   237      ~GCItem_var() {
   238        delete _item;
   239      }
   240  
   241      GCItem* operator->() {
   242        return _item;
   243      }
   244  
   245      private:
   246        GCItem *_item;
   247    };
   248  
   249    template <typename Type>
   250    struct GCItem_T : GCItem {
   251      GCItem_T(Type *ptr) : _ptr(ptr) {
   252      }
   253  
   254      virtual ~GCItem_T() {
   255        delete _ptr;
   256      }
   257  
   258    private:
   259      Type *_ptr;
   260    };
   261  }
   262  
   263  class Swig_memory {
   264  public:
   265    template <typename Type>
   266    void swig_acquire_pointer(Type* vptr) {
   267      if (vptr) {
   268        swig_owner[vptr] = new GCItem_T<Type>(vptr);
   269      }
   270    }
   271  private:
   272    typedef std::map<void *, GCItem_var> swig_ownership_map;
   273    swig_ownership_map swig_owner;
   274  };
   275  
   276  template <typename Type>
   277  static void swig_acquire_pointer(Swig_memory** pmem, Type* ptr) {
   278    if (!pmem) {
   279      *pmem = new Swig_memory;
   280    }
   281    (*pmem)->swig_acquire_pointer(ptr);
   282  }
   283  
   284  #ifdef __cplusplus
   285  #include <utility>
   286  /* SwigValueWrapper is described in swig.swg */
   287  template<typename T> class SwigValueWrapper {
   288    struct SwigSmartPointer {
   289      T *ptr;
   290      SwigSmartPointer(T *p) : ptr(p) { }
   291      ~SwigSmartPointer() { delete ptr; }
   292      SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
   293      void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
   294    } pointer;
   295    SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
   296    SwigValueWrapper(const SwigValueWrapper<T>& rhs);
   297  public:
   298    SwigValueWrapper() : pointer(0) { }
   299    SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
   300  #if __cplusplus >=201103L
   301    SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
   302    operator T&&() const { return std::move(*pointer.ptr); }
   303  #else
   304    operator T&() const { return *pointer.ptr; }
   305  #endif
   306    T *operator&() const { return pointer.ptr; }
   307    static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
   308  };
   309  
   310  /*
   311   * SwigValueInit() is a generic initialisation solution as the following approach:
   312   * 
   313   *       T c_result = T();
   314   * 
   315   * doesn't compile for all types for example:
   316   * 
   317   *       unsigned int c_result = unsigned int();
   318   */
   319  template <typename T> T SwigValueInit() {
   320    return T();
   321  }
   322  
   323  #if __cplusplus >=201103L
   324  # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
   325  #else
   326  # define SWIG_STD_MOVE(OBJ) OBJ
   327  #endif
   328  
   329  #endif
   330  
   331  
   332  static void Swig_free(void* p) {
   333    free(p);
   334  }
   335  
   336  static void* Swig_malloc(int c) {
   337    return malloc(c);
   338  }
   339  
   340  
   341  #include <typeinfo>
   342  #include <stdexcept>
   343  
   344  
   345  #include <map>
   346  #include <algorithm>
   347  #include <stdexcept>
   348  
   349  
   350  #include <string>
   351  
   352  
   353  #include <vector>
   354  #include <stdexcept>
   355  
   356  
   357  #include "pycv.h"
   358  
   359  
   360  
   361  
   362  
   363  // C++ director class methods.
   364  #include "pycv_wrap.h"
   365  
   366  #ifdef __cplusplus
   367  extern "C" {
   368  #endif
   369  
   370  void _wrap_Swig_free_pycv_ffa8ea6aa3be9035(void *_swig_go_0) {
   371    void *arg1 = (void *) 0 ;
   372    
   373    arg1 = *(void **)&_swig_go_0; 
   374    
   375    Swig_free(arg1);
   376    
   377  }
   378  
   379  
   380  void *_wrap_Swig_malloc_pycv_ffa8ea6aa3be9035(intgo _swig_go_0) {
   381    int arg1 ;
   382    void *result = 0 ;
   383    void *_swig_go_result;
   384    
   385    arg1 = (int)_swig_go_0; 
   386    
   387    result = (void *)Swig_malloc(arg1);
   388    *(void **)&_swig_go_result = (void *)result; 
   389    return _swig_go_result;
   390  }
   391  
   392  
   393  void _wrap_LocalInitRequest_gpu_id_set_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0, intgo _swig_go_1) {
   394    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   395    int arg2 ;
   396    
   397    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   398    arg2 = (int)_swig_go_1; 
   399    
   400    if (arg1) (arg1)->gpu_id = arg2;
   401    
   402  }
   403  
   404  
   405  intgo _wrap_LocalInitRequest_gpu_id_get_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0) {
   406    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   407    int result;
   408    intgo _swig_go_result;
   409    
   410    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   411    
   412    result = (int) ((arg1)->gpu_id);
   413    _swig_go_result = result; 
   414    return _swig_go_result;
   415  }
   416  
   417  
   418  void _wrap_LocalInitRequest_sdk_dir_set_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0, _gostring_ _swig_go_1) {
   419    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   420    std::string *arg2 = 0 ;
   421    
   422    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   423    
   424    std::string arg2_str(_swig_go_1.p, _swig_go_1.n);
   425    arg2 = &arg2_str;
   426    
   427    
   428    if (arg1) (arg1)->sdk_dir = *arg2;
   429    
   430  }
   431  
   432  
   433  _gostring_ _wrap_LocalInitRequest_sdk_dir_get_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0) {
   434    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   435    std::string *result = 0 ;
   436    _gostring_ _swig_go_result;
   437    
   438    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   439    
   440    result = (std::string *) & ((arg1)->sdk_dir);
   441    _swig_go_result = Swig_AllocateString((*result).data(), (*result).length()); 
   442    return _swig_go_result;
   443  }
   444  
   445  
   446  void _wrap_LocalInitRequest_model_dir_set_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0, _gostring_ _swig_go_1) {
   447    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   448    std::string *arg2 = 0 ;
   449    
   450    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   451    
   452    std::string arg2_str(_swig_go_1.p, _swig_go_1.n);
   453    arg2 = &arg2_str;
   454    
   455    
   456    if (arg1) (arg1)->model_dir = *arg2;
   457    
   458  }
   459  
   460  
   461  _gostring_ _wrap_LocalInitRequest_model_dir_get_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0) {
   462    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   463    std::string *result = 0 ;
   464    _gostring_ _swig_go_result;
   465    
   466    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   467    
   468    result = (std::string *) & ((arg1)->model_dir);
   469    _swig_go_result = Swig_AllocateString((*result).data(), (*result).length()); 
   470    return _swig_go_result;
   471  }
   472  
   473  
   474  pycv::LocalInitRequest *_wrap_new_LocalInitRequest_pycv_ffa8ea6aa3be9035() {
   475    pycv::LocalInitRequest *result = 0 ;
   476    pycv::LocalInitRequest *_swig_go_result;
   477    
   478    
   479    {
   480      try {
   481        result = (pycv::LocalInitRequest *)new pycv::LocalInitRequest();;
   482      } catch (const std::exception& e) {
   483        _swig_gopanic(e.what());
   484      }
   485    }
   486    *(pycv::LocalInitRequest **)&_swig_go_result = (pycv::LocalInitRequest *)result; 
   487    return _swig_go_result;
   488  }
   489  
   490  
   491  void _wrap_delete_LocalInitRequest_pycv_ffa8ea6aa3be9035(pycv::LocalInitRequest *_swig_go_0) {
   492    pycv::LocalInitRequest *arg1 = (pycv::LocalInitRequest *) 0 ;
   493    
   494    arg1 = *(pycv::LocalInitRequest **)&_swig_go_0; 
   495    
   496    {
   497      try {
   498        delete arg1;;
   499      } catch (const std::exception& e) {
   500        _swig_gopanic(e.what());
   501      }
   502    }
   503    
   504  }
   505  
   506  
   507  pycv::LocalInitResponse *_wrap_new_LocalInitResponse_pycv_ffa8ea6aa3be9035() {
   508    pycv::LocalInitResponse *result = 0 ;
   509    pycv::LocalInitResponse *_swig_go_result;
   510    
   511    
   512    {
   513      try {
   514        result = (pycv::LocalInitResponse *)new pycv::LocalInitResponse();;
   515      } catch (const std::exception& e) {
   516        _swig_gopanic(e.what());
   517      }
   518    }
   519    *(pycv::LocalInitResponse **)&_swig_go_result = (pycv::LocalInitResponse *)result; 
   520    return _swig_go_result;
   521  }
   522  
   523  
   524  void _wrap_delete_LocalInitResponse_pycv_ffa8ea6aa3be9035(pycv::LocalInitResponse *_swig_go_0) {
   525    pycv::LocalInitResponse *arg1 = (pycv::LocalInitResponse *) 0 ;
   526    
   527    arg1 = *(pycv::LocalInitResponse **)&_swig_go_0; 
   528    
   529    {
   530      try {
   531        delete arg1;;
   532      } catch (const std::exception& e) {
   533        _swig_gopanic(e.what());
   534      }
   535    }
   536    
   537  }
   538  
   539  
   540  void _wrap_DoRequest_arg1_set_pycv_ffa8ea6aa3be9035(pycv::DoRequest *_swig_go_0, _gostring_ _swig_go_1) {
   541    pycv::DoRequest *arg1 = (pycv::DoRequest *) 0 ;
   542    std::string *arg2 = 0 ;
   543    
   544    arg1 = *(pycv::DoRequest **)&_swig_go_0; 
   545    
   546    std::string arg2_str(_swig_go_1.p, _swig_go_1.n);
   547    arg2 = &arg2_str;
   548    
   549    
   550    if (arg1) (arg1)->arg1 = *arg2;
   551    
   552  }
   553  
   554  
   555  _gostring_ _wrap_DoRequest_arg1_get_pycv_ffa8ea6aa3be9035(pycv::DoRequest *_swig_go_0) {
   556    pycv::DoRequest *arg1 = (pycv::DoRequest *) 0 ;
   557    std::string *result = 0 ;
   558    _gostring_ _swig_go_result;
   559    
   560    arg1 = *(pycv::DoRequest **)&_swig_go_0; 
   561    
   562    result = (std::string *) & ((arg1)->arg1);
   563    _swig_go_result = Swig_AllocateString((*result).data(), (*result).length()); 
   564    return _swig_go_result;
   565  }
   566  
   567  
   568  void _wrap_DoRequest_arg2_set_pycv_ffa8ea6aa3be9035(pycv::DoRequest *_swig_go_0, _gostring_ _swig_go_1) {
   569    pycv::DoRequest *arg1 = (pycv::DoRequest *) 0 ;
   570    std::string *arg2 = 0 ;
   571    
   572    arg1 = *(pycv::DoRequest **)&_swig_go_0; 
   573    
   574    std::string arg2_str(_swig_go_1.p, _swig_go_1.n);
   575    arg2 = &arg2_str;
   576    
   577    
   578    if (arg1) (arg1)->arg2 = *arg2;
   579    
   580  }
   581  
   582  
   583  _gostring_ _wrap_DoRequest_arg2_get_pycv_ffa8ea6aa3be9035(pycv::DoRequest *_swig_go_0) {
   584    pycv::DoRequest *arg1 = (pycv::DoRequest *) 0 ;
   585    std::string *result = 0 ;
   586    _gostring_ _swig_go_result;
   587    
   588    arg1 = *(pycv::DoRequest **)&_swig_go_0; 
   589    
   590    result = (std::string *) & ((arg1)->arg2);
   591    _swig_go_result = Swig_AllocateString((*result).data(), (*result).length()); 
   592    return _swig_go_result;
   593  }
   594  
   595  
   596  pycv::DoRequest *_wrap_new_DoRequest_pycv_ffa8ea6aa3be9035() {
   597    pycv::DoRequest *result = 0 ;
   598    pycv::DoRequest *_swig_go_result;
   599    
   600    
   601    {
   602      try {
   603        result = (pycv::DoRequest *)new pycv::DoRequest();;
   604      } catch (const std::exception& e) {
   605        _swig_gopanic(e.what());
   606      }
   607    }
   608    *(pycv::DoRequest **)&_swig_go_result = (pycv::DoRequest *)result; 
   609    return _swig_go_result;
   610  }
   611  
   612  
   613  void _wrap_delete_DoRequest_pycv_ffa8ea6aa3be9035(pycv::DoRequest *_swig_go_0) {
   614    pycv::DoRequest *arg1 = (pycv::DoRequest *) 0 ;
   615    
   616    arg1 = *(pycv::DoRequest **)&_swig_go_0; 
   617    
   618    {
   619      try {
   620        delete arg1;;
   621      } catch (const std::exception& e) {
   622        _swig_gopanic(e.what());
   623      }
   624    }
   625    
   626  }
   627  
   628  
   629  pycv::DoResponse *_wrap_new_DoResponse_pycv_ffa8ea6aa3be9035() {
   630    pycv::DoResponse *result = 0 ;
   631    pycv::DoResponse *_swig_go_result;
   632    
   633    
   634    {
   635      try {
   636        result = (pycv::DoResponse *)new pycv::DoResponse();;
   637      } catch (const std::exception& e) {
   638        _swig_gopanic(e.what());
   639      }
   640    }
   641    *(pycv::DoResponse **)&_swig_go_result = (pycv::DoResponse *)result; 
   642    return _swig_go_result;
   643  }
   644  
   645  
   646  void _wrap_delete_DoResponse_pycv_ffa8ea6aa3be9035(pycv::DoResponse *_swig_go_0) {
   647    pycv::DoResponse *arg1 = (pycv::DoResponse *) 0 ;
   648    
   649    arg1 = *(pycv::DoResponse **)&_swig_go_0; 
   650    
   651    {
   652      try {
   653        delete arg1;;
   654      } catch (const std::exception& e) {
   655        _swig_gopanic(e.what());
   656      }
   657    }
   658    
   659  }
   660  
   661  
   662  pycv::PyImage *_wrap_new_Wrapped_PyImage_pycv_ffa8ea6aa3be9035() {
   663    pycv::PyImage *result = 0 ;
   664    pycv::PyImage *_swig_go_result;
   665    
   666    
   667    {
   668      try {
   669        result = (pycv::PyImage *)new pycv::PyImage();;
   670      } catch (const std::exception& e) {
   671        _swig_gopanic(e.what());
   672      }
   673    }
   674    *(pycv::PyImage **)&_swig_go_result = (pycv::PyImage *)result; 
   675    return _swig_go_result;
   676  }
   677  
   678  
   679  void _wrap_delete_Wrapped_PyImage_pycv_ffa8ea6aa3be9035(pycv::PyImage *_swig_go_0) {
   680    pycv::PyImage *arg1 = (pycv::PyImage *) 0 ;
   681    
   682    arg1 = *(pycv::PyImage **)&_swig_go_0; 
   683    
   684    {
   685      try {
   686        delete arg1;;
   687      } catch (const std::exception& e) {
   688        _swig_gopanic(e.what());
   689      }
   690    }
   691    
   692  }
   693  
   694  
   695  void _wrap_Wrapped_PyImage_GlobalInit_pycv_ffa8ea6aa3be9035(_gostring_ _swig_go_0, intgo _swig_go_1) {
   696    std::string *arg1 = 0 ;
   697    int arg2 ;
   698    
   699    
   700    std::string arg1_str(_swig_go_0.p, _swig_go_0.n);
   701    arg1 = &arg1_str;
   702    
   703    arg2 = (int)_swig_go_1; 
   704    
   705    {
   706      try {
   707        pycv::PyImage::GlobalInit((std::string const &)*arg1,arg2);;
   708      } catch (const std::exception& e) {
   709        _swig_gopanic(e.what());
   710      }
   711    }
   712    
   713  }
   714  
   715  
   716  void _wrap_Wrapped_PyImage_GlobalRelease_pycv_ffa8ea6aa3be9035() {
   717    {
   718      try {
   719        pycv::PyImage::GlobalRelease();;
   720      } catch (const std::exception& e) {
   721        _swig_gopanic(e.what());
   722      }
   723    }
   724    
   725  }
   726  
   727  
   728  void _wrap_Wrapped_PyImage_Wrapped_PyImage_LocalInit_pycv_ffa8ea6aa3be9035(pycv::PyImage *_swig_go_0, pycv::LocalInitRequest *_swig_go_1, pycv::LocalInitResponse *_swig_go_2) {
   729    pycv::PyImage *arg1 = (pycv::PyImage *) 0 ;
   730    pycv::LocalInitRequest *arg2 = 0 ;
   731    pycv::LocalInitResponse *arg3 = 0 ;
   732    
   733    arg1 = *(pycv::PyImage **)&_swig_go_0; 
   734    arg2 = *(pycv::LocalInitRequest **)&_swig_go_1; 
   735    arg3 = *(pycv::LocalInitResponse **)&_swig_go_2; 
   736    
   737    {
   738      try {
   739        (arg1)->LocalInit((pycv::LocalInitRequest const &)*arg2,*arg3);;
   740      } catch (const std::exception& e) {
   741        _swig_gopanic(e.what());
   742      }
   743    }
   744    
   745  }
   746  
   747  
   748  void _wrap_Wrapped_PyImage_Wrapped_PyImage_Do_pycv_ffa8ea6aa3be9035(pycv::PyImage *_swig_go_0, pycv::DoRequest *_swig_go_1, pycv::DoResponse *_swig_go_2) {
   749    pycv::PyImage *arg1 = (pycv::PyImage *) 0 ;
   750    pycv::DoRequest *arg2 = 0 ;
   751    pycv::DoResponse *arg3 = 0 ;
   752    
   753    arg1 = *(pycv::PyImage **)&_swig_go_0; 
   754    arg2 = *(pycv::DoRequest **)&_swig_go_1; 
   755    arg3 = *(pycv::DoResponse **)&_swig_go_2; 
   756    
   757    {
   758      try {
   759        (arg1)->Do((pycv::DoRequest const &)*arg2,*arg3);;
   760      } catch (const std::exception& e) {
   761        _swig_gopanic(e.what());
   762      }
   763    }
   764    
   765  }
   766  
   767  
   768  #ifdef __cplusplus
   769  }
   770  #endif
   771