Update the changelog
[opencv] / apps / Hawk / CVEiCL / wrappers / iplwrap.c
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //
3 //  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4 //
5 //  By downloading, copying, installing or using the software you agree to this license.
6 //  If you do not agree to this license, do not download, install,
7 //  copy or use the software.
8 //
9 //
10 //                        Intel License Agreement
11 //                For Open Source Computer Vision Library
12 //
13 // Copyright (C) 2000, Intel Corporation, all rights reserved.
14 // Third party copyrights are property of their respective owners.
15 //
16 // Redistribution and use in source and binary forms, with or without modification,
17 // are permitted provided that the following conditions are met:
18 //
19 //   * Redistribution's of source code must retain the above copyright notice,
20 //     this list of conditions and the following disclaimer.
21 //
22 //   * Redistribution's in binary form must reproduce the above copyright notice,
23 //     this list of conditions and the following disclaimer in the documentation
24 //     and/or other materials provided with the distribution.
25 //
26 //   * The name of Intel Corporation may not be used to endorse or promote products
27 //     derived from this software without specific prior written permission.
28 //
29 // This software is provided by the copyright holders and contributors "as is" and
30 // any express or implied warranties, including, but not limited to, the implied
31 // warranties of merchantability and fitness for a particular purpose are disclaimed.
32 // In no event shall the Intel Corporation or contributors be liable for any direct,
33 // indirect, incidental, special, exemplary, or consequential damages
34 // (including, but not limited to, procurement of substitute goods or services;
35 // loss of use, data, or profits; or business interruption) however caused
36 // and on any theory of liability, whether in contract, strict liability,
37 // or tort (including negligence or otherwise) arising in any way out of
38 // the use of this software, even if advised of the possibility of such damage.
39 //
40 //M*/#include <stdlib.h>
41 #include <varargs.h>
42 #include <limits.h>
43 #include "eic.h"
44 #include "ipl.h"
45 #include "eicdllwrap.h"
46
47 #pragma warning (disable:4700) /*warning C4700: local variable 'v' used without having been initialized*/
48
49 static val_t eic_iplGetAffineTransform(void)
50 {
51         val_t v;
52
53         iplGetAffineTransform(arg(0,getargs(),ptr_t).p,
54                 arg(1,getargs(),ptr_t).p,
55                 arg(2,getargs(),ptr_t).p);
56
57         return v;
58 }
59
60 static val_t eic_iplGetAffineQuad(void)
61 {
62         val_t v;
63
64         iplGetAffineQuad(arg(0,getargs(),ptr_t).p,
65                 arg(1,getargs(),ptr_t).p,
66                 arg(2,getargs(),ptr_t).p);
67
68         return v;
69 }
70
71 static val_t eic_iplNot(void)
72 {
73         val_t v;
74
75         iplNot(arg(0,getargs(),ptr_t).p,
76                 arg(1,getargs(),ptr_t).p);
77
78         return v;
79 }
80
81 static val_t eic_iplSet(void)
82 {
83         val_t v;
84
85         iplSet(arg(0,getargs(),ptr_t).p,
86                 arg(1,getargs(),int));
87
88         return v;
89 }
90
91 static val_t eic_iplDecimate(void)
92 {
93         val_t v;
94
95         iplDecimate(arg(0,getargs(),ptr_t).p,
96                 arg(1,getargs(),ptr_t).p,
97                 arg(2,getargs(),int),
98                 arg(3,getargs(),int),
99                 arg(4,getargs(),int),
100                 arg(5,getargs(),int),
101                 arg(6,getargs(),int));
102
103         return v;
104 }
105
106 static val_t eic_iplLUV2RGB(void)
107 {
108         val_t v;
109
110         iplLUV2RGB(arg(0,getargs(),ptr_t).p,
111                 arg(1,getargs(),ptr_t).p);
112
113         return v;
114 }
115
116 static val_t eic_iplBitonalToGray(void)
117 {
118         val_t v;
119
120         iplBitonalToGray(arg(0,getargs(),ptr_t).p,
121                 arg(1,getargs(),ptr_t).p,
122                 arg(2,getargs(),int),
123                 arg(3,getargs(),int));
124
125         return v;
126 }
127
128 static val_t eic_iplGetBilinearQuad(void)
129 {
130         val_t v;
131
132         iplGetBilinearQuad(arg(0,getargs(),ptr_t).p,
133                 arg(1,getargs(),ptr_t).p,
134                 arg(2,getargs(),ptr_t).p);
135
136         return v;
137 }
138
139 static val_t eic_iplGetPerspectiveBound(void)
140 {
141         val_t v;
142
143         iplGetPerspectiveBound(arg(0,getargs(),ptr_t).p,
144                 arg(1,getargs(),ptr_t).p,
145                 arg(2,getargs(),ptr_t).p);
146
147         return v;
148 }
149
150 static val_t eic_iplNorm(void)
151 {
152         val_t v;
153
154         v.dval = iplNorm(arg(0,getargs(),ptr_t).p,
155                 arg(1,getargs(),ptr_t).p,
156                 arg(2,getargs(),int));
157
158         return v;
159 }
160
161 static val_t eic_iplRGB2XYZ(void)
162 {
163         val_t v;
164
165         iplRGB2XYZ(arg(0,getargs(),ptr_t).p,
166                 arg(1,getargs(),ptr_t).p);
167
168         return v;
169 }
170
171 static val_t eic_iplAddS(void)
172 {
173         val_t v;
174
175         iplAddS(arg(0,getargs(),ptr_t).p,
176                 arg(1,getargs(),ptr_t).p,
177                 arg(2,getargs(),int));
178
179         return v;
180 }
181
182 static val_t eic_iplMoments(void)
183 {
184         val_t v;
185
186         iplMoments(arg(0,getargs(),ptr_t).p,
187                 arg(1,getargs(),ptr_t).p);
188
189         return v;
190 }
191
192 static val_t eic_iplThreshold(void)
193 {
194         val_t v;
195
196         iplThreshold(arg(0,getargs(),ptr_t).p,
197                 arg(1,getargs(),ptr_t).p,
198                 arg(2,getargs(),int));
199
200         return v;
201 }
202
203 static val_t eic_iplMultiplySScale(void)
204 {
205         val_t v;
206
207         iplMultiplySScale(arg(0,getargs(),ptr_t).p,
208                 arg(1,getargs(),ptr_t).p,
209                 arg(2,getargs(),int));
210
211         return v;
212 }
213
214 static val_t eic_iplCreateROI(void)
215 {
216         val_t v;
217
218         v.p.ep = v.p.sp = v.p.p = iplCreateROI(arg(0,getargs(),int),
219                 arg(1,getargs(),int),
220                 arg(2,getargs(),int),
221                 arg(3,getargs(),int),
222                 arg(4,getargs(),int));
223
224         return v;
225 }
226
227 static val_t eic_iplRealFft2D(void)
228 {
229         val_t v;
230
231         iplRealFft2D(arg(0,getargs(),ptr_t).p,
232                 arg(1,getargs(),ptr_t).p,
233                 arg(2,getargs(),int));
234
235         return v;
236 }
237
238 static val_t eic_iplFixedFilter(void)
239 {
240         val_t v;
241
242         v.ival = iplFixedFilter(arg(0,getargs(),ptr_t).p,
243                 arg(1,getargs(),ptr_t).p,
244                 arg(2,getargs(),int));
245
246         return v;
247 }
248
249 static val_t eic_iplRGB2HLS(void)
250 {
251         val_t v;
252
253         iplRGB2HLS(arg(0,getargs(),ptr_t).p,
254                 arg(1,getargs(),ptr_t).p);
255
256         return v;
257 }
258
259 static val_t eic_iplBlur(void)
260 {
261         val_t v;
262
263         iplBlur(arg(0,getargs(),ptr_t).p,
264                 arg(1,getargs(),ptr_t).p,
265                 arg(2,getargs(),int),
266                 arg(3,getargs(),int),
267                 arg(4,getargs(),int),
268                 arg(5,getargs(),int));
269
270         return v;
271 }
272
273 static val_t eic_iplSquare(void)
274 {
275         val_t v;
276
277         iplSquare(arg(0,getargs(),ptr_t).p,
278                 arg(1,getargs(),ptr_t).p);
279
280         return v;
281 }
282
283 static val_t eic_iplCloneImage(void)
284 {
285         val_t v;
286
287         v.p.ep = v.p.sp = v.p.p = iplCloneImage(arg(0,getargs(),ptr_t).p);
288
289         return v;
290 }
291
292 static val_t eic_iplWarpBilinear(void)
293 {
294         val_t v;
295
296         iplWarpBilinear(arg(0,getargs(),ptr_t).p,
297                 arg(1,getargs(),ptr_t).p,
298                 arg(2,getargs(),ptr_t).p,
299                 arg(3,getargs(),int),
300                 arg(4,getargs(),int));
301
302         return v;
303 }
304
305 static val_t eic_iplMedianFilter(void)
306 {
307         val_t v;
308
309         iplMedianFilter(arg(0,getargs(),ptr_t).p,
310                 arg(1,getargs(),ptr_t).p,
311                 arg(2,getargs(),int),
312                 arg(3,getargs(),int),
313                 arg(4,getargs(),int),
314                 arg(5,getargs(),int));
315
316         return v;
317 }
318
319 static val_t eic_iplScaleFP(void)
320 {
321         val_t v;
322
323         v.ival = iplScaleFP(arg(0,getargs(),ptr_t).p,
324                 arg(1,getargs(),ptr_t).p,
325                 arg(2,getargs(),float),
326                 arg(3,getargs(),float));
327
328         return v;
329 }
330
331 static val_t eic_iplClose(void)
332 {
333         val_t v;
334
335         iplClose(arg(0,getargs(),ptr_t).p,
336                 arg(1,getargs(),ptr_t).p,
337                 arg(2,getargs(),int));
338
339         return v;
340 }
341
342 static val_t eic_iplDeallocate(void)
343 {
344         val_t v;
345
346         iplDeallocate(arg(0,getargs(),ptr_t).p,
347                 arg(1,getargs(),int));
348
349         return v;
350 }
351
352 static val_t eic_iplGetNormalizedSpatialMoment(void)
353 {
354         val_t v;
355
356         v.dval = iplGetNormalizedSpatialMoment(arg(0,getargs(),ptr_t).p,
357                 arg(1,getargs(),int),
358                 arg(2,getargs(),int));
359
360         return v;
361 }
362
363 static val_t eic_iplGetConvKernelFP(void)
364 {
365         val_t v;
366
367         iplGetConvKernelFP(arg(0,getargs(),ptr_t).p,
368                 arg(1,getargs(),ptr_t).p,
369                 arg(2,getargs(),ptr_t).p,
370                 arg(3,getargs(),ptr_t).p,
371                 arg(4,getargs(),ptr_t).p,
372                 arg(5,getargs(),ptr_t).p);
373
374         return v;
375 }
376
377 static val_t eic_iplAdd(void)
378 {
379         val_t v;
380
381         iplAdd(arg(0,getargs(),ptr_t).p,
382                 arg(1,getargs(),ptr_t).p,
383                 arg(2,getargs(),ptr_t).p);
384
385         return v;
386 }
387
388 static val_t eic_iplConvolveSep2DFP(void)
389 {
390         val_t v;
391
392         iplConvolveSep2DFP(arg(0,getargs(),ptr_t).p,
393                 arg(1,getargs(),ptr_t).p,
394                 arg(2,getargs(),ptr_t).p,
395                 arg(3,getargs(),ptr_t).p);
396
397         return v;
398 }
399
400 static val_t eic_iplGetAffineBound(void)
401 {
402         val_t v;
403
404         iplGetAffineBound(arg(0,getargs(),ptr_t).p,
405                 arg(1,getargs(),ptr_t).p,
406                 arg(2,getargs(),ptr_t).p);
407
408         return v;
409 }
410
411 static val_t eic_iplDeleteConvKernel(void)
412 {
413         val_t v;
414
415         iplDeleteConvKernel(arg(0,getargs(),ptr_t).p);
416
417         return v;
418 }
419
420 static val_t eic_iplAllocateImageFP(void)
421 {
422         val_t v;
423
424         iplAllocateImageFP(arg(0,getargs(),ptr_t).p,
425                 arg(1,getargs(),int),
426                 arg(2,getargs(),float));
427
428         return v;
429 }
430
431 static val_t eic_iplHLS2RGB(void)
432 {
433         val_t v;
434
435         iplHLS2RGB(arg(0,getargs(),ptr_t).p,
436                 arg(1,getargs(),ptr_t).p);
437
438         return v;
439 }
440
441 static val_t eic_iplMinFilter(void)
442 {
443         val_t v;
444
445         iplMinFilter(arg(0,getargs(),ptr_t).p,
446                 arg(1,getargs(),ptr_t).p,
447                 arg(2,getargs(),int),
448                 arg(3,getargs(),int),
449                 arg(4,getargs(),int),
450                 arg(5,getargs(),int));
451
452         return v;
453 }
454
455 static val_t eic_iplAlphaComposite(void)
456 {
457         val_t v;
458
459         iplAlphaComposite(arg(0,getargs(),ptr_t).p,
460                 arg(1,getargs(),ptr_t).p,
461                 arg(2,getargs(),ptr_t).p,
462                 arg(3,getargs(),int),
463                 arg(4,getargs(),ptr_t).p,
464                 arg(5,getargs(),ptr_t).p,
465                 arg(6,getargs(),ptr_t).p,
466                 arg(7,getargs(),int),
467                 arg(8,getargs(),int));
468
469         return v;
470 }
471
472 static val_t eic_iplPutPixel(void)
473 {
474         val_t v;
475
476         iplPutPixel(arg(0,getargs(),ptr_t).p,
477                 arg(1,getargs(),int),
478                 arg(2,getargs(),int),
479                 arg(3,getargs(),ptr_t).p);
480
481         return v;
482 }
483
484 static val_t eic_iplGetBilinearBound(void)
485 {
486         val_t v;
487
488         iplGetBilinearBound(arg(0,getargs(),ptr_t).p,
489                 arg(1,getargs(),ptr_t).p,
490                 arg(2,getargs(),ptr_t).p);
491
492         return v;
493 }
494
495 static val_t eic_iplResize(void)
496 {
497         val_t v;
498
499         iplResize(arg(0,getargs(),ptr_t).p,
500                 arg(1,getargs(),ptr_t).p,
501                 arg(2,getargs(),int),
502                 arg(3,getargs(),int),
503                 arg(4,getargs(),int),
504                 arg(5,getargs(),int),
505                 arg(6,getargs(),int));
506
507         return v;
508 }
509
510 static val_t eic_iplSetFP(void)
511 {
512         val_t v;
513
514         iplSetFP(arg(0,getargs(),ptr_t).p,
515                 arg(1,getargs(),float));
516
517         return v;
518 }
519
520 static val_t eic_iplPreMultiplyAlpha(void)
521 {
522         val_t v;
523
524         iplPreMultiplyAlpha(arg(0,getargs(),ptr_t).p,
525                 arg(1,getargs(),int));
526
527         return v;
528 }
529
530 static val_t eic_iplMultiplySFP(void)
531 {
532         val_t v;
533
534         iplMultiplySFP(arg(0,getargs(),ptr_t).p,
535                 arg(1,getargs(),ptr_t).p,
536                 arg(2,getargs(),float));
537
538         return v;
539 }
540
541 static val_t eic_iplGetConvKernelChar(void)
542 {
543         val_t v;
544
545         iplGetConvKernelChar(arg(0,getargs(),ptr_t).p,
546                 arg(1,getargs(),ptr_t).p,
547                 arg(2,getargs(),ptr_t).p,
548                 arg(3,getargs(),ptr_t).p,
549                 arg(4,getargs(),ptr_t).p,
550                 arg(5,getargs(),ptr_t).p,
551                 arg(6,getargs(),ptr_t).p);
552
553         return v;
554 }
555
556 static val_t eic_iplAbs(void)
557 {
558         val_t v;
559
560         iplAbs(arg(0,getargs(),ptr_t).p,
561                 arg(1,getargs(),ptr_t).p);
562
563         return v;
564 }
565
566 static val_t eic_iplScale(void)
567 {
568         val_t v;
569
570         v.ival = iplScale(arg(0,getargs(),ptr_t).p,
571                 arg(1,getargs(),ptr_t).p);
572
573         return v;
574 }
575
576 static val_t eic_iplRShiftS(void)
577 {
578         val_t v;
579
580         iplRShiftS(arg(0,getargs(),ptr_t).p,
581                 arg(1,getargs(),ptr_t).p,
582                 arg(2,getargs(),unsigned));
583
584         return v;
585 }
586
587 static val_t eic_iplYUV2RGB(void)
588 {
589         val_t v;
590
591         iplYUV2RGB(arg(0,getargs(),ptr_t).p,
592                 arg(1,getargs(),ptr_t).p);
593
594         return v;
595 }
596
597 static val_t eic_iplRGB2HSV(void)
598 {
599         val_t v;
600
601         iplRGB2HSV(arg(0,getargs(),ptr_t).p,
602                 arg(1,getargs(),ptr_t).p);
603
604         return v;
605 }
606
607 static val_t eic_iplCopy(void)
608 {
609         val_t v;
610
611         iplCopy(arg(0,getargs(),ptr_t).p,
612                 arg(1,getargs(),ptr_t).p);
613
614         return v;
615 }
616
617 static val_t eic_iplDeallocateImage(void)
618 {
619         val_t v;
620
621         iplDeallocateImage(arg(0,getargs(),ptr_t).p);
622
623         return v;
624 }
625
626 static void * EiC_Cfunc_0 = NULL;
627 static void __stdcall MiddleOne_0(const IplImage *x0, int x1, int x2, int x3 )
628 {
629     setArg(0, EiC_Cfunc_0, const IplImage* ,x0);
630     setArg(1, EiC_Cfunc_0, int ,x1);
631     setArg(2, EiC_Cfunc_0, int ,x2);
632     setArg(3, EiC_Cfunc_0, int ,x3);
633
634     EiC_callBack(EiC_Cfunc_0);
635 }
636
637 static void * EiC_Cfunc_1 = NULL;
638 static void  __stdcall MiddleOne_1(const IplImage *x0,  int x1, int x2, int x3 )
639 {
640     setArg(0, EiC_Cfunc_1, const IplImage * ,x0);
641     setArg(1, EiC_Cfunc_1, int ,x1);
642     setArg(2, EiC_Cfunc_1, int ,x2);
643     setArg(3, EiC_Cfunc_1, int ,x3);
644
645     EiC_callBack(EiC_Cfunc_1);
646 }
647
648 static void * EiC_Cfunc_2 = NULL;
649 static void  __stdcall MiddleOne_2(const IplImage *x0,  int x1, int x2, int x3 )
650 {
651     setArg(0, EiC_Cfunc_2, const IplImage * ,x0);
652     setArg(1, EiC_Cfunc_2, int ,x1);
653     setArg(2, EiC_Cfunc_2, int ,x2);
654     setArg(3, EiC_Cfunc_2, int ,x3);
655
656     EiC_callBack(EiC_Cfunc_2);
657 }
658
659 static void * EiC_Cfunc_3 = NULL;
660 static void  __stdcall MiddleOne_3(const IplImage *x0,  int x1, int x2, int x3 )
661 {
662     setArg(0, EiC_Cfunc_3, const IplImage * ,x0);
663     setArg(1, EiC_Cfunc_3, int ,x1);
664     setArg(2, EiC_Cfunc_3, int ,x2);
665     setArg(3, EiC_Cfunc_3, int ,x3);
666
667     EiC_callBack(EiC_Cfunc_3);
668 }
669
670 static void * EiC_Cfunc_4 = NULL;
671 static void  __stdcall MiddleOne_4(const IplImage *x0,  int x1, int x2, int x3 )
672 {
673     setArg(0, EiC_Cfunc_4, const IplImage * ,x0);
674     setArg(1, EiC_Cfunc_4, int ,x1);
675     setArg(2, EiC_Cfunc_4, int ,x2);
676     setArg(3, EiC_Cfunc_4, int ,x3);
677
678     EiC_callBack(EiC_Cfunc_4);
679 }
680
681 static void * EiC_Cfunc_5 = NULL;
682 static void  __stdcall MiddleOne_5(const IplImage *x0,  int x1, int x2, int x3 )
683 {
684     setArg(0, EiC_Cfunc_5, const IplImage * ,x0);
685     setArg(1, EiC_Cfunc_5, int ,x1);
686     setArg(2, EiC_Cfunc_5, int ,x2);
687     setArg(3, EiC_Cfunc_5, int ,x3);
688
689     EiC_callBack(EiC_Cfunc_5);
690 }
691
692 static void * EiC_Cfunc_6 = NULL;
693 static void  __stdcall MiddleOne_6(const IplImage *x0,  int x1, int x2, int x3 )
694 {
695     setArg(0, EiC_Cfunc_6, const IplImage * ,x0);
696     setArg(1, EiC_Cfunc_6, int ,x1);
697     setArg(2, EiC_Cfunc_6, int ,x2);
698     setArg(3, EiC_Cfunc_6, int ,x3);
699
700     EiC_callBack(EiC_Cfunc_6);
701 }
702
703 static void * EiC_Cfunc_7 = NULL;
704 static void  __stdcall MiddleOne_7(const IplImage *x0,  int x1, int x2, int x3 )
705 {
706     setArg(0, EiC_Cfunc_7, const IplImage * ,x0);
707     setArg(1, EiC_Cfunc_7, int ,x1);
708     setArg(2, EiC_Cfunc_7, int ,x2);
709     setArg(3, EiC_Cfunc_7, int ,x3);
710
711     EiC_callBack(EiC_Cfunc_7);
712 }
713
714 static void * EiC_Cfunc_8 = NULL;
715 static void  __stdcall MiddleOne_8(const IplImage *x0,  int x1, int x2, int x3 )
716 {
717     setArg(0, EiC_Cfunc_8, const IplImage * ,x0);
718     setArg(1, EiC_Cfunc_8, int ,x1);
719     setArg(2, EiC_Cfunc_8, int ,x2);
720     setArg(3, EiC_Cfunc_8, int ,x3);
721
722     EiC_callBack(EiC_Cfunc_8);
723 }
724
725 static void * EiC_Cfunc_9 = NULL;
726 static void  __stdcall MiddleOne_9(const IplImage *x0,  int x1, int x2, int x3 )
727 {
728     setArg(0, EiC_Cfunc_9, const IplImage * ,x0);
729     setArg(1, EiC_Cfunc_9, int ,x1);
730     setArg(2, EiC_Cfunc_9, int ,x2);
731     setArg(3, EiC_Cfunc_9, int ,x3);
732
733     EiC_callBack(EiC_Cfunc_9);
734 }
735
736 static void * EiC_Cfunc_10 = NULL;
737 static void  __stdcall MiddleOne_10(const IplImage *x0,  int x1, int x2, int x3 )
738 {
739     setArg(0, EiC_Cfunc_10, const IplImage * ,x0);
740     setArg(1, EiC_Cfunc_10, int ,x1);
741     setArg(2, EiC_Cfunc_10, int ,x2);
742     setArg(3, EiC_Cfunc_10, int ,x3);
743
744     EiC_callBack(EiC_Cfunc_10);
745 }
746
747 static void * EiC_Cfunc_11 = NULL;
748 static void  __stdcall MiddleOne_11(const IplImage *x0,  int x1, int x2, int x3 )
749 {
750     setArg(0, EiC_Cfunc_11, const IplImage * ,x0);
751     setArg(1, EiC_Cfunc_11, int ,x1);
752     setArg(2, EiC_Cfunc_11, int ,x2);
753     setArg(3, EiC_Cfunc_11, int ,x3);
754
755     EiC_callBack(EiC_Cfunc_11);
756 }
757
758 static void * EiC_Cfunc_12 = NULL;
759 static void  __stdcall MiddleOne_12(const IplImage *x0,  int x1, int x2, int x3 )
760 {
761     setArg(0, EiC_Cfunc_12, const IplImage * ,x0);
762     setArg(1, EiC_Cfunc_12, int ,x1);
763     setArg(2, EiC_Cfunc_12, int ,x2);
764     setArg(3, EiC_Cfunc_12, int ,x3);
765
766     EiC_callBack(EiC_Cfunc_12);
767 }
768
769 static void * EiC_Cfunc_13 = NULL;
770 static void  __stdcall MiddleOne_13(const IplImage *x0,  int x1, int x2, int x3 )
771 {
772     setArg(0, EiC_Cfunc_13, const IplImage * ,x0);
773     setArg(1, EiC_Cfunc_13, int ,x1);
774     setArg(2, EiC_Cfunc_13, int ,x2);
775     setArg(3, EiC_Cfunc_13, int ,x3);
776
777     EiC_callBack(EiC_Cfunc_13);
778 }
779
780 static void * EiC_Cfunc_14 = NULL;
781 static void  __stdcall MiddleOne_14(const IplImage *x0,  int x1, int x2, int x3 )
782 {
783     setArg(0, EiC_Cfunc_14, const IplImage * ,x0);
784     setArg(1, EiC_Cfunc_14, int ,x1);
785     setArg(2, EiC_Cfunc_14, int ,x2);
786     setArg(3, EiC_Cfunc_14, int ,x3);
787
788     EiC_callBack(EiC_Cfunc_14);
789 }
790
791 static void * EiC_Cfunc_15 = NULL;
792 static void  __stdcall MiddleOne_15(const IplImage *x0,  int x1, int x2, int x3 )
793 {
794     setArg(0, EiC_Cfunc_15, const IplImage * ,x0);
795     setArg(1, EiC_Cfunc_15, int ,x1);
796     setArg(2, EiC_Cfunc_15, int ,x2);
797     setArg(3, EiC_Cfunc_15, int ,x3);
798
799     EiC_callBack(EiC_Cfunc_15);
800 }
801
802 static void * EiC_Cfunc_16 = NULL;
803 static void  __stdcall MiddleOne_16(const IplImage *x0,  int x1, int x2, int x3 )
804 {
805     setArg(0, EiC_Cfunc_16, const IplImage * ,x0);
806     setArg(1, EiC_Cfunc_16, int ,x1);
807     setArg(2, EiC_Cfunc_16, int ,x2);
808     setArg(3, EiC_Cfunc_16, int ,x3);
809
810     EiC_callBack(EiC_Cfunc_16);
811 }
812
813 static void * EiC_Cfunc_17 = NULL;
814 static void  __stdcall MiddleOne_17(const IplImage *x0,  int x1, int x2, int x3 )
815 {
816     setArg(0, EiC_Cfunc_17, const IplImage * ,x0);
817     setArg(1, EiC_Cfunc_17, int ,x1);
818     setArg(2, EiC_Cfunc_17, int ,x2);
819     setArg(3, EiC_Cfunc_17, int ,x3);
820
821     EiC_callBack(EiC_Cfunc_17);
822 }
823
824 static void * EiC_Cfunc_18 = NULL;
825 static void  __stdcall MiddleOne_18(const IplImage *x0,  int x1, int x2, int x3 )
826 {
827     setArg(0, EiC_Cfunc_18, const IplImage * ,x0);
828     setArg(1, EiC_Cfunc_18, int ,x1);
829     setArg(2, EiC_Cfunc_18, int ,x2);
830     setArg(3, EiC_Cfunc_18, int ,x3);
831
832     EiC_callBack(EiC_Cfunc_18);
833 }
834
835 static void * EiC_Cfunc_19 = NULL;
836 static void  __stdcall MiddleOne_19(const IplImage *x0,  int x1, int x2, int x3 )
837 {
838     setArg(0, EiC_Cfunc_19, const IplImage * ,x0);
839     setArg(1, EiC_Cfunc_19, int ,x1);
840     setArg(2, EiC_Cfunc_19, int ,x2);
841     setArg(3, EiC_Cfunc_19, int ,x3);
842
843     EiC_callBack(EiC_Cfunc_19);
844 }
845
846 static val_t eic_iplCreateTileInfo(void)
847 {
848         val_t v;
849         static int nb = 0;
850
851         switch(nb)
852         {
853         case 0 :
854         EiC_Cfunc_0 = arg(0,getargs(),ptr_t).p;
855         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_0,
856                 arg(1,getargs(),ptr_t).p,
857                 arg(2,getargs(),int),
858                 arg(3,getargs(),int));
859         break;
860         case 1 :
861         EiC_Cfunc_1 = arg(0,getargs(),ptr_t).p;
862         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_1,
863                 arg(1,getargs(),ptr_t).p,
864                 arg(2,getargs(),int),
865                 arg(3,getargs(),int));
866         break;
867         case 2 :
868         EiC_Cfunc_2 = arg(0,getargs(),ptr_t).p;
869         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_2,
870                 arg(1,getargs(),ptr_t).p,
871                 arg(2,getargs(),int),
872                 arg(3,getargs(),int));
873         break;
874         case 3 :
875         EiC_Cfunc_3 = arg(0,getargs(),ptr_t).p;
876         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_3,
877                 arg(1,getargs(),ptr_t).p,
878                 arg(2,getargs(),int),
879                 arg(3,getargs(),int));
880         break;
881         case 4 :
882         EiC_Cfunc_4 = arg(0,getargs(),ptr_t).p;
883         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_4,
884                 arg(1,getargs(),ptr_t).p,
885                 arg(2,getargs(),int),
886                 arg(3,getargs(),int));
887         break;
888         case 5 :
889         EiC_Cfunc_5 = arg(0,getargs(),ptr_t).p;
890         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_5,
891                 arg(1,getargs(),ptr_t).p,
892                 arg(2,getargs(),int),
893                 arg(3,getargs(),int));
894         break;
895         case 6 :
896         EiC_Cfunc_6 = arg(0,getargs(),ptr_t).p;
897         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_6,
898                 arg(1,getargs(),ptr_t).p,
899                 arg(2,getargs(),int),
900                 arg(3,getargs(),int));
901         break;
902         case 7 :
903         EiC_Cfunc_7 = arg(0,getargs(),ptr_t).p;
904         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_7,
905                 arg(1,getargs(),ptr_t).p,
906                 arg(2,getargs(),int),
907                 arg(3,getargs(),int));
908         break;
909         case 8 :
910         EiC_Cfunc_8 = arg(0,getargs(),ptr_t).p;
911         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_8,
912                 arg(1,getargs(),ptr_t).p,
913                 arg(2,getargs(),int),
914                 arg(3,getargs(),int));
915         break;
916         case 9 :
917         EiC_Cfunc_9 = arg(0,getargs(),ptr_t).p;
918         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_9,
919                 arg(1,getargs(),ptr_t).p,
920                 arg(2,getargs(),int),
921                 arg(3,getargs(),int));
922         break;
923         case 10 :
924         EiC_Cfunc_10 = arg(0,getargs(),ptr_t).p;
925         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_10,
926                 arg(1,getargs(),ptr_t).p,
927                 arg(2,getargs(),int),
928                 arg(3,getargs(),int));
929         break;
930         case 11 :
931         EiC_Cfunc_11 = arg(0,getargs(),ptr_t).p;
932         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_11,
933                 arg(1,getargs(),ptr_t).p,
934                 arg(2,getargs(),int),
935                 arg(3,getargs(),int));
936         break;
937         case 12 :
938         EiC_Cfunc_12 = arg(0,getargs(),ptr_t).p;
939         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_12,
940                 arg(1,getargs(),ptr_t).p,
941                 arg(2,getargs(),int),
942                 arg(3,getargs(),int));
943         break;
944         case 13 :
945         EiC_Cfunc_13 = arg(0,getargs(),ptr_t).p;
946         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_13,
947                 arg(1,getargs(),ptr_t).p,
948                 arg(2,getargs(),int),
949                 arg(3,getargs(),int));
950         break;
951         case 14 :
952         EiC_Cfunc_14 = arg(0,getargs(),ptr_t).p;
953         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_14,
954                 arg(1,getargs(),ptr_t).p,
955                 arg(2,getargs(),int),
956                 arg(3,getargs(),int));
957         break;
958         case 15 :
959         EiC_Cfunc_15 = arg(0,getargs(),ptr_t).p;
960         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_15,
961                 arg(1,getargs(),ptr_t).p,
962                 arg(2,getargs(),int),
963                 arg(3,getargs(),int));
964         break;
965         case 16 :
966         EiC_Cfunc_16 = arg(0,getargs(),ptr_t).p;
967         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_16,
968                 arg(1,getargs(),ptr_t).p,
969                 arg(2,getargs(),int),
970                 arg(3,getargs(),int));
971         break;
972         case 17 :
973         EiC_Cfunc_17 = arg(0,getargs(),ptr_t).p;
974         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_17,
975                 arg(1,getargs(),ptr_t).p,
976                 arg(2,getargs(),int),
977                 arg(3,getargs(),int));
978         break;
979         case 18 :
980         EiC_Cfunc_18 = arg(0,getargs(),ptr_t).p;
981         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_18,
982                 arg(1,getargs(),ptr_t).p,
983                 arg(2,getargs(),int),
984                 arg(3,getargs(),int));
985         break;
986         case 19 :
987         EiC_Cfunc_19 = arg(0,getargs(),ptr_t).p;
988         v.p.ep = v.p.sp = v.p.p = iplCreateTileInfo(MiddleOne_19,
989                 arg(1,getargs(),ptr_t).p,
990                 arg(2,getargs(),int),
991                 arg(3,getargs(),int));
992         break;
993         }
994         ++nb;
995         nb %= 20;
996
997         return v;
998 }
999
1000 static val_t eic_iplSetBorderMode(void)
1001 {
1002         val_t v;
1003
1004         iplSetBorderMode(arg(0,getargs(),ptr_t).p,
1005                 arg(1,getargs(),int),
1006                 arg(2,getargs(),int),
1007                 arg(3,getargs(),int));
1008
1009         return v;
1010 }
1011
1012 static val_t eic_iplAnd(void)
1013 {
1014         val_t v;
1015
1016         iplAnd(arg(0,getargs(),ptr_t).p,
1017                 arg(1,getargs(),ptr_t).p,
1018                 arg(2,getargs(),ptr_t).p);
1019
1020         return v;
1021 }
1022
1023 static val_t eic_iplDCT2D(void)
1024 {
1025         val_t v;
1026
1027         iplDCT2D(arg(0,getargs(),ptr_t).p,
1028                 arg(1,getargs(),ptr_t).p,
1029                 arg(2,getargs(),int));
1030
1031         return v;
1032 }
1033
1034 static val_t eic_iplDecimateExt(void)
1035 {
1036         val_t v;
1037
1038         iplDecimateExt(arg(0,getargs(),ptr_t).p,
1039                 arg(1,getargs(),ptr_t).p,
1040                 arg(2,getargs(),int),
1041                 arg(3,getargs(),int),
1042                 arg(4,getargs(),int),
1043                 arg(5,getargs(),int),
1044                 arg(6,getargs(),int),
1045                 arg(7,getargs(),int),
1046                 arg(8,getargs(),int));
1047
1048         return v;
1049 }
1050
1051 static val_t eic_iplAddSFP(void)
1052 {
1053         val_t v;
1054
1055         iplAddSFP(arg(0,getargs(),ptr_t).p,
1056                 arg(1,getargs(),ptr_t).p,
1057                 arg(2,getargs(),float));
1058
1059         return v;
1060 }
1061
1062 static val_t eic_iplEqualS(void)
1063 {
1064         val_t v;
1065
1066         v.ival = iplEqualS(arg(0,getargs(),ptr_t).p,
1067                 arg(1,getargs(),int),
1068                 arg(2,getargs(),ptr_t).p);
1069
1070         return v;
1071 }
1072
1073 static val_t eic_iplMaxFilter(void)
1074 {
1075         val_t v;
1076
1077         iplMaxFilter(arg(0,getargs(),ptr_t).p,
1078                 arg(1,getargs(),ptr_t).p,
1079                 arg(2,getargs(),int),
1080                 arg(3,getargs(),int),
1081                 arg(4,getargs(),int),
1082                 arg(5,getargs(),int));
1083
1084         return v;
1085 }
1086
1087 static val_t eic_iplCreateConvKernelChar(void)
1088 {
1089         val_t v;
1090
1091         v.p.ep = v.p.sp = v.p.p = iplCreateConvKernelChar(arg(0,getargs(),int),
1092                 arg(1,getargs(),int),
1093                 arg(2,getargs(),int),
1094                 arg(3,getargs(),int),
1095                 arg(4,getargs(),ptr_t).p,
1096                 arg(5,getargs(),int));
1097
1098         return v;
1099 }
1100
1101 static val_t eic_iplXor(void)
1102 {
1103         val_t v;
1104
1105         iplXor(arg(0,getargs(),ptr_t).p,
1106                 arg(1,getargs(),ptr_t).p,
1107                 arg(2,getargs(),ptr_t).p);
1108
1109         return v;
1110 }
1111
1112 static val_t eic_iplDeleteColorTwist(void)
1113 {
1114         val_t v;
1115
1116         iplDeleteColorTwist(arg(0,getargs(),ptr_t).p);
1117
1118         return v;
1119 }
1120
1121 static val_t eic_iplDilate(void)
1122 {
1123         val_t v;
1124
1125         iplDilate(arg(0,getargs(),ptr_t).p,
1126                 arg(1,getargs(),ptr_t).p,
1127                 arg(2,getargs(),int));
1128
1129         return v;
1130 }
1131
1132 static val_t eic_iplCreateConvKernelFP(void)
1133 {
1134         val_t v;
1135
1136         v.p.ep = v.p.sp = v.p.p = iplCreateConvKernelFP(arg(0,getargs(),int),
1137                 arg(1,getargs(),int),
1138                 arg(2,getargs(),int),
1139                 arg(3,getargs(),int),
1140                 arg(4,getargs(),ptr_t).p);
1141
1142         return v;
1143 }
1144
1145 static val_t eic_iplRotate(void)
1146 {
1147         val_t v;
1148     double d2 = arg(2,getargs(),double);
1149     double d3 = arg(3,getargs(),double);
1150     double d4 = arg(4,getargs(),double);
1151
1152         iplRotate(arg(0,getargs(),ptr_t).p,
1153                 arg(1,getargs(),ptr_t).p,
1154                 arg(2,getargs(),double),
1155                 arg(3,getargs(),double),
1156                 arg(4,getargs(),double),
1157                 arg(5,getargs(),int));
1158
1159         return v;
1160 }
1161
1162 static val_t eic_iplApplyColorTwist(void)
1163 {
1164         val_t v;
1165
1166         iplApplyColorTwist(arg(0,getargs(),ptr_t).p,
1167                 arg(1,getargs(),ptr_t).p,
1168                 arg(2,getargs(),ptr_t).p,
1169                 arg(3,getargs(),int));
1170
1171         return v;
1172 }
1173
1174 static val_t eic_iplSubtractS(void)
1175 {
1176         val_t v;
1177
1178         iplSubtractS(arg(0,getargs(),ptr_t).p,
1179                 arg(1,getargs(),ptr_t).p,
1180                 arg(2,getargs(),int),
1181                 arg(3,getargs(),int));
1182
1183         return v;
1184 }
1185
1186 static val_t eic_iplMirror(void)
1187 {
1188         val_t v;
1189
1190         iplMirror(arg(0,getargs(),ptr_t).p,
1191                 arg(1,getargs(),ptr_t).p,
1192                 arg(2,getargs(),int));
1193
1194         return v;
1195 }
1196
1197 static val_t eic_iplMpyRCPack2D(void)
1198 {
1199         val_t v;
1200
1201         iplMpyRCPack2D(arg(0,getargs(),ptr_t).p,
1202                 arg(1,getargs(),ptr_t).p,
1203                 arg(2,getargs(),ptr_t).p);
1204
1205         return v;
1206 }
1207
1208 static val_t eic_iplAndS(void)
1209 {
1210         val_t v;
1211
1212         iplAndS(arg(0,getargs(),ptr_t).p,
1213                 arg(1,getargs(),ptr_t).p,
1214                 arg(2,getargs(),unsigned));
1215
1216         return v;
1217 }
1218
1219 static val_t eic_iplLShiftS(void)
1220 {
1221         val_t v;
1222
1223         iplLShiftS(arg(0,getargs(),ptr_t).p,
1224                 arg(1,getargs(),ptr_t).p,
1225                 arg(2,getargs(),unsigned));
1226
1227         return v;
1228 }
1229
1230 static val_t eic_iplConvertToDIBSep(void)
1231 {
1232         val_t v;
1233
1234         v.ival = iplConvertToDIBSep(arg(0,getargs(),ptr_t).p,
1235                 arg(1,getargs(),ptr_t).p,
1236                 arg(2,getargs(),ptr_t).p,
1237                 arg(3,getargs(),int),
1238                 arg(4,getargs(),int));
1239
1240         return v;
1241 }
1242
1243 static val_t eic_iplContrastStretch(void)
1244 {
1245         val_t v;
1246
1247         iplContrastStretch(arg(0,getargs(),ptr_t).p,
1248                 arg(1,getargs(),ptr_t).p,
1249                 arg(2,getargs(),ptr_t).p);
1250
1251         return v;
1252 }
1253
1254 static val_t eic_iplRGB2LUV(void)
1255 {
1256         val_t v;
1257
1258         iplRGB2LUV(arg(0,getargs(),ptr_t).p,
1259                 arg(1,getargs(),ptr_t).p);
1260
1261         return v;
1262 }
1263
1264 static val_t eic_iplGetCentralMoment(void)
1265 {
1266         val_t v;
1267
1268         v.dval = iplGetCentralMoment(arg(0,getargs(),ptr_t).p,
1269                 arg(1,getargs(),int),
1270                 arg(2,getargs(),int));
1271
1272         return v;
1273 }
1274
1275 static val_t eic_iplMultiply(void)
1276 {
1277         val_t v;
1278
1279         iplMultiply(arg(0,getargs(),ptr_t).p,
1280                 arg(1,getargs(),ptr_t).p,
1281                 arg(2,getargs(),ptr_t).p);
1282
1283         return v;
1284 }
1285
1286 static val_t eic_iplExchange(void)
1287 {
1288         val_t v;
1289
1290         iplExchange(arg(0,getargs(),ptr_t).p,
1291                 arg(1,getargs(),ptr_t).p);
1292
1293         return v;
1294 }
1295
1296 static void * EiC_Cfunc_20 = NULL;
1297 static void  __stdcall MiddleOne_20(const IplImage *x0,  int x1, int x2, int x3 )
1298 {
1299     setArg(0, EiC_Cfunc_20, const IplImage * ,x0);
1300     setArg(1, EiC_Cfunc_20, int ,x1);
1301     setArg(2, EiC_Cfunc_20, int ,x2);
1302     setArg(3, EiC_Cfunc_20, int ,x3);
1303
1304     EiC_callBack(EiC_Cfunc_20);
1305 }
1306
1307 static void * EiC_Cfunc_21 = NULL;
1308 static void  __stdcall MiddleOne_21(const IplImage *x0,  int x1, int x2, int x3 )
1309 {
1310     setArg(0, EiC_Cfunc_21, const IplImage * ,x0);
1311     setArg(1, EiC_Cfunc_21, int ,x1);
1312     setArg(2, EiC_Cfunc_21, int ,x2);
1313     setArg(3, EiC_Cfunc_21, int ,x3);
1314
1315     EiC_callBack(EiC_Cfunc_21);
1316 }
1317
1318 static void * EiC_Cfunc_22 = NULL;
1319 static void  __stdcall MiddleOne_22(const IplImage *x0,  int x1, int x2, int x3 )
1320 {
1321     setArg(0, EiC_Cfunc_22, const IplImage * ,x0);
1322     setArg(1, EiC_Cfunc_22, int ,x1);
1323     setArg(2, EiC_Cfunc_22, int ,x2);
1324     setArg(3, EiC_Cfunc_22, int ,x3);
1325
1326     EiC_callBack(EiC_Cfunc_22);
1327 }
1328
1329 static void * EiC_Cfunc_23 = NULL;
1330 static void  __stdcall MiddleOne_23(const IplImage *x0,  int x1, int x2, int x3 )
1331 {
1332     setArg(0, EiC_Cfunc_23, const IplImage * ,x0);
1333     setArg(1, EiC_Cfunc_23, int ,x1);
1334     setArg(2, EiC_Cfunc_23, int ,x2);
1335     setArg(3, EiC_Cfunc_23, int ,x3);
1336
1337     EiC_callBack(EiC_Cfunc_23);
1338 }
1339
1340 static void * EiC_Cfunc_24 = NULL;
1341 static void  __stdcall MiddleOne_24(const IplImage *x0,  int x1, int x2, int x3 )
1342 {
1343     setArg(0, EiC_Cfunc_24, const IplImage * ,x0);
1344     setArg(1, EiC_Cfunc_24, int ,x1);
1345     setArg(2, EiC_Cfunc_24, int ,x2);
1346     setArg(3, EiC_Cfunc_24, int ,x3);
1347
1348     EiC_callBack(EiC_Cfunc_24);
1349 }
1350
1351 static void * EiC_Cfunc_25 = NULL;
1352 static void  __stdcall MiddleOne_25(const IplImage *x0,  int x1, int x2, int x3 )
1353 {
1354     setArg(0, EiC_Cfunc_25, const IplImage * ,x0);
1355     setArg(1, EiC_Cfunc_25, int ,x1);
1356     setArg(2, EiC_Cfunc_25, int ,x2);
1357     setArg(3, EiC_Cfunc_25, int ,x3);
1358
1359     EiC_callBack(EiC_Cfunc_25);
1360 }
1361
1362 static void * EiC_Cfunc_26 = NULL;
1363 static void  __stdcall MiddleOne_26(const IplImage *x0,  int x1, int x2, int x3 )
1364 {
1365     setArg(0, EiC_Cfunc_26, const IplImage * ,x0);
1366     setArg(1, EiC_Cfunc_26, int ,x1);
1367     setArg(2, EiC_Cfunc_26, int ,x2);
1368     setArg(3, EiC_Cfunc_26, int ,x3);
1369
1370     EiC_callBack(EiC_Cfunc_26);
1371 }
1372
1373 static void * EiC_Cfunc_27 = NULL;
1374 static void  __stdcall MiddleOne_27(const IplImage *x0,  int x1, int x2, int x3 )
1375 {
1376     setArg(0, EiC_Cfunc_27, const IplImage * ,x0);
1377     setArg(1, EiC_Cfunc_27, int ,x1);
1378     setArg(2, EiC_Cfunc_27, int ,x2);
1379     setArg(3, EiC_Cfunc_27, int ,x3);
1380
1381     EiC_callBack(EiC_Cfunc_27);
1382 }
1383
1384 static void * EiC_Cfunc_28 = NULL;
1385 static void  __stdcall MiddleOne_28(const IplImage *x0,  int x1, int x2, int x3 )
1386 {
1387     setArg(0, EiC_Cfunc_28, const IplImage * ,x0);
1388     setArg(1, EiC_Cfunc_28, int ,x1);
1389     setArg(2, EiC_Cfunc_28, int ,x2);
1390     setArg(3, EiC_Cfunc_28, int ,x3);
1391
1392     EiC_callBack(EiC_Cfunc_28);
1393 }
1394
1395 static void * EiC_Cfunc_29 = NULL;
1396 static void  __stdcall MiddleOne_29(const IplImage *x0,  int x1, int x2, int x3 )
1397 {
1398     setArg(0, EiC_Cfunc_29, const IplImage * ,x0);
1399     setArg(1, EiC_Cfunc_29, int ,x1);
1400     setArg(2, EiC_Cfunc_29, int ,x2);
1401     setArg(3, EiC_Cfunc_29, int ,x3);
1402
1403     EiC_callBack(EiC_Cfunc_29);
1404 }
1405
1406 static void * EiC_Cfunc_30 = NULL;
1407 static void  __stdcall MiddleOne_30(const IplImage *x0,  int x1, int x2, int x3 )
1408 {
1409     setArg(0, EiC_Cfunc_30, const IplImage * ,x0);
1410     setArg(1, EiC_Cfunc_30, int ,x1);
1411     setArg(2, EiC_Cfunc_30, int ,x2);
1412     setArg(3, EiC_Cfunc_30, int ,x3);
1413
1414     EiC_callBack(EiC_Cfunc_30);
1415 }
1416
1417 static void * EiC_Cfunc_31 = NULL;
1418 static void  __stdcall MiddleOne_31(const IplImage *x0,  int x1, int x2, int x3 )
1419 {
1420     setArg(0, EiC_Cfunc_31, const IplImage * ,x0);
1421     setArg(1, EiC_Cfunc_31, int ,x1);
1422     setArg(2, EiC_Cfunc_31, int ,x2);
1423     setArg(3, EiC_Cfunc_31, int ,x3);
1424
1425     EiC_callBack(EiC_Cfunc_31);
1426 }
1427
1428 static void * EiC_Cfunc_32 = NULL;
1429 static void  __stdcall MiddleOne_32(const IplImage *x0,  int x1, int x2, int x3 )
1430 {
1431     setArg(0, EiC_Cfunc_32, const IplImage * ,x0);
1432     setArg(1, EiC_Cfunc_32, int ,x1);
1433     setArg(2, EiC_Cfunc_32, int ,x2);
1434     setArg(3, EiC_Cfunc_32, int ,x3);
1435
1436     EiC_callBack(EiC_Cfunc_32);
1437 }
1438
1439 static void * EiC_Cfunc_33 = NULL;
1440 static void  __stdcall MiddleOne_33(const IplImage *x0,  int x1, int x2, int x3 )
1441 {
1442     setArg(0, EiC_Cfunc_33, const IplImage * ,x0);
1443     setArg(1, EiC_Cfunc_33, int ,x1);
1444     setArg(2, EiC_Cfunc_33, int ,x2);
1445     setArg(3, EiC_Cfunc_33, int ,x3);
1446
1447     EiC_callBack(EiC_Cfunc_33);
1448 }
1449
1450 static void * EiC_Cfunc_34 = NULL;
1451 static void __stdcall __stdcall MiddleOne_34(const IplImage *x0,  int x1, int x2, int x3 )
1452 {
1453     setArg(0, EiC_Cfunc_34, const IplImage * ,x0);
1454     setArg(1, EiC_Cfunc_34, int ,x1);
1455     setArg(2, EiC_Cfunc_34, int ,x2);
1456     setArg(3, EiC_Cfunc_34, int ,x3);
1457
1458     EiC_callBack(EiC_Cfunc_34);
1459 }
1460
1461 static void * EiC_Cfunc_35 = NULL;
1462 static void  __stdcall MiddleOne_35(const IplImage *x0,  int x1, int x2, int x3 )
1463 {
1464     setArg(0, EiC_Cfunc_35, const IplImage * ,x0);
1465     setArg(1, EiC_Cfunc_35, int ,x1);
1466     setArg(2, EiC_Cfunc_35, int ,x2);
1467     setArg(3, EiC_Cfunc_35, int ,x3);
1468
1469     EiC_callBack(EiC_Cfunc_35);
1470 }
1471
1472 static void * EiC_Cfunc_36 = NULL;
1473 static void  __stdcall MiddleOne_36(const IplImage *x0,  int x1, int x2, int x3 )
1474 {
1475     setArg(0, EiC_Cfunc_36, const IplImage * ,x0);
1476     setArg(1, EiC_Cfunc_36, int ,x1);
1477     setArg(2, EiC_Cfunc_36, int ,x2);
1478     setArg(3, EiC_Cfunc_36, int ,x3);
1479
1480     EiC_callBack(EiC_Cfunc_36);
1481 }
1482
1483 static void * EiC_Cfunc_37 = NULL;
1484 static void  __stdcall MiddleOne_37(const IplImage *x0,  int x1, int x2, int x3 )
1485 {
1486     setArg(0, EiC_Cfunc_37, const IplImage * ,x0);
1487     setArg(1, EiC_Cfunc_37, int ,x1);
1488     setArg(2, EiC_Cfunc_37, int ,x2);
1489     setArg(3, EiC_Cfunc_37, int ,x3);
1490
1491     EiC_callBack(EiC_Cfunc_37);
1492 }
1493
1494 static void * EiC_Cfunc_38 = NULL;
1495 static void  __stdcall MiddleOne_38(const IplImage *x0,  int x1, int x2, int x3 )
1496 {
1497     setArg(0, EiC_Cfunc_38, const IplImage * ,x0);
1498     setArg(1, EiC_Cfunc_38, int ,x1);
1499     setArg(2, EiC_Cfunc_38, int ,x2);
1500     setArg(3, EiC_Cfunc_38, int ,x3);
1501
1502     EiC_callBack(EiC_Cfunc_38);
1503 }
1504
1505 static void * EiC_Cfunc_39 = NULL;
1506 static void  __stdcall MiddleOne_39(const IplImage *x0,  int x1, int x2, int x3 )
1507 {
1508     setArg(0, EiC_Cfunc_39, const IplImage * ,x0);
1509     setArg(1, EiC_Cfunc_39, int ,x1);
1510     setArg(2, EiC_Cfunc_39, int ,x2);
1511     setArg(3, EiC_Cfunc_39, int ,x3);
1512
1513     EiC_callBack(EiC_Cfunc_39);
1514 }
1515
1516 static val_t eic_iplSetTileInfo(void)
1517 {
1518         val_t v;
1519         static int nb = 0;
1520
1521         switch(nb)
1522         {
1523         case 0 :
1524         EiC_Cfunc_20 = arg(1,getargs(),ptr_t).p;
1525         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1526                 MiddleOne_20,
1527                 arg(2,getargs(),ptr_t).p,
1528                 arg(3,getargs(),int),
1529                 arg(4,getargs(),int));
1530         break;
1531         case 1 :
1532         EiC_Cfunc_21 = arg(1,getargs(),ptr_t).p;
1533         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1534                 MiddleOne_21,
1535                 arg(2,getargs(),ptr_t).p,
1536                 arg(3,getargs(),int),
1537                 arg(4,getargs(),int));
1538         break;
1539         case 2 :
1540         EiC_Cfunc_22 = arg(1,getargs(),ptr_t).p;
1541         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1542                 MiddleOne_22,
1543                 arg(2,getargs(),ptr_t).p,
1544                 arg(3,getargs(),int),
1545                 arg(4,getargs(),int));
1546         break;
1547         case 3 :
1548         EiC_Cfunc_23 = arg(1,getargs(),ptr_t).p;
1549         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1550                 MiddleOne_23,
1551                 arg(2,getargs(),ptr_t).p,
1552                 arg(3,getargs(),int),
1553                 arg(4,getargs(),int));
1554         break;
1555         case 4 :
1556         EiC_Cfunc_24 = arg(1,getargs(),ptr_t).p;
1557         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1558                 MiddleOne_24,
1559                 arg(2,getargs(),ptr_t).p,
1560                 arg(3,getargs(),int),
1561                 arg(4,getargs(),int));
1562         break;
1563         case 5 :
1564         EiC_Cfunc_25 = arg(1,getargs(),ptr_t).p;
1565         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1566                 MiddleOne_25,
1567                 arg(2,getargs(),ptr_t).p,
1568                 arg(3,getargs(),int),
1569                 arg(4,getargs(),int));
1570         break;
1571         case 6 :
1572         EiC_Cfunc_26 = arg(1,getargs(),ptr_t).p;
1573         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1574                 MiddleOne_26,
1575                 arg(2,getargs(),ptr_t).p,
1576                 arg(3,getargs(),int),
1577                 arg(4,getargs(),int));
1578         break;
1579         case 7 :
1580         EiC_Cfunc_27 = arg(1,getargs(),ptr_t).p;
1581         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1582                 MiddleOne_27,
1583                 arg(2,getargs(),ptr_t).p,
1584                 arg(3,getargs(),int),
1585                 arg(4,getargs(),int));
1586         break;
1587         case 8 :
1588         EiC_Cfunc_28 = arg(1,getargs(),ptr_t).p;
1589         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1590                 MiddleOne_28,
1591                 arg(2,getargs(),ptr_t).p,
1592                 arg(3,getargs(),int),
1593                 arg(4,getargs(),int));
1594         break;
1595         case 9 :
1596         EiC_Cfunc_29 = arg(1,getargs(),ptr_t).p;
1597         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1598                 MiddleOne_29,
1599                 arg(2,getargs(),ptr_t).p,
1600                 arg(3,getargs(),int),
1601                 arg(4,getargs(),int));
1602         break;
1603         case 10 :
1604         EiC_Cfunc_30 = arg(1,getargs(),ptr_t).p;
1605         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1606                 MiddleOne_30,
1607                 arg(2,getargs(),ptr_t).p,
1608                 arg(3,getargs(),int),
1609                 arg(4,getargs(),int));
1610         break;
1611         case 11 :
1612         EiC_Cfunc_31 = arg(1,getargs(),ptr_t).p;
1613         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1614                 MiddleOne_31,
1615                 arg(2,getargs(),ptr_t).p,
1616                 arg(3,getargs(),int),
1617                 arg(4,getargs(),int));
1618         break;
1619         case 12 :
1620         EiC_Cfunc_32 = arg(1,getargs(),ptr_t).p;
1621         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1622                 MiddleOne_32,
1623                 arg(2,getargs(),ptr_t).p,
1624                 arg(3,getargs(),int),
1625                 arg(4,getargs(),int));
1626         break;
1627         case 13 :
1628         EiC_Cfunc_33 = arg(1,getargs(),ptr_t).p;
1629         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1630                 MiddleOne_33,
1631                 arg(2,getargs(),ptr_t).p,
1632                 arg(3,getargs(),int),
1633                 arg(4,getargs(),int));
1634         break;
1635         case 14 :
1636         EiC_Cfunc_34 = arg(1,getargs(),ptr_t).p;
1637         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1638                 MiddleOne_34,
1639                 arg(2,getargs(),ptr_t).p,
1640                 arg(3,getargs(),int),
1641                 arg(4,getargs(),int));
1642         break;
1643         case 15 :
1644         EiC_Cfunc_35 = arg(1,getargs(),ptr_t).p;
1645         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1646                 MiddleOne_35,
1647                 arg(2,getargs(),ptr_t).p,
1648                 arg(3,getargs(),int),
1649                 arg(4,getargs(),int));
1650         break;
1651         case 16 :
1652         EiC_Cfunc_36 = arg(1,getargs(),ptr_t).p;
1653         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1654                 MiddleOne_36,
1655                 arg(2,getargs(),ptr_t).p,
1656                 arg(3,getargs(),int),
1657                 arg(4,getargs(),int));
1658         break;
1659         case 17 :
1660         EiC_Cfunc_37 = arg(1,getargs(),ptr_t).p;
1661         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1662                 MiddleOne_37,
1663                 arg(2,getargs(),ptr_t).p,
1664                 arg(3,getargs(),int),
1665                 arg(4,getargs(),int));
1666         break;
1667         case 18 :
1668         EiC_Cfunc_38 = arg(1,getargs(),ptr_t).p;
1669         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1670                 MiddleOne_38,
1671                 arg(2,getargs(),ptr_t).p,
1672                 arg(3,getargs(),int),
1673                 arg(4,getargs(),int));
1674         break;
1675         case 19 :
1676         EiC_Cfunc_39 = arg(1,getargs(),ptr_t).p;
1677         iplSetTileInfo(arg(0,getargs(),ptr_t).p,
1678                 MiddleOne_39,
1679                 arg(2,getargs(),ptr_t).p,
1680                 arg(3,getargs(),int),
1681                 arg(4,getargs(),int));
1682         break;
1683         }
1684         ++nb;
1685         nb %= 20;
1686
1687         return v;
1688 }
1689
1690 static val_t eic_iplOr(void)
1691 {
1692         val_t v;
1693
1694         iplOr(arg(0,getargs(),ptr_t).p,
1695                 arg(1,getargs(),ptr_t).p,
1696                 arg(2,getargs(),ptr_t).p);
1697
1698         return v;
1699 }
1700
1701 static val_t eic_iplConvolveSep2D(void)
1702 {
1703         val_t v;
1704
1705         iplConvolveSep2D(arg(0,getargs(),ptr_t).p,
1706                 arg(1,getargs(),ptr_t).p,
1707                 arg(2,getargs(),ptr_t).p,
1708                 arg(3,getargs(),ptr_t).p);
1709
1710         return v;
1711 }
1712
1713 static val_t eic_iplWarpPerspective(void)
1714 {
1715         val_t v;
1716
1717         iplWarpPerspective(arg(0,getargs(),ptr_t).p,
1718                 arg(1,getargs(),ptr_t).p,
1719                 arg(2,getargs(),ptr_t).p,
1720                 arg(3,getargs(),int),
1721                 arg(4,getargs(),int));
1722
1723         return v;
1724 }
1725
1726 static val_t eic_iplConvertToDIB(void)
1727 {
1728         val_t v;
1729
1730         iplConvertToDIB(arg(0,getargs(),ptr_t).p,
1731                 arg(1,getargs(),ptr_t).p,
1732                 arg(2,getargs(),int),
1733                 arg(3,getargs(),int));
1734
1735         return v;
1736 }
1737
1738 static val_t eic_iplXYZ2RGB(void)
1739 {
1740         val_t v;
1741
1742         iplXYZ2RGB(arg(0,getargs(),ptr_t).p,
1743                 arg(1,getargs(),ptr_t).p);
1744
1745         return v;
1746 }
1747
1748 static val_t eic_iplCreateImageJaehne(void)
1749 {
1750         val_t v;
1751
1752         v.p.ep = v.p.sp = v.p.p = iplCreateImageJaehne(arg(0,getargs(),int),
1753                 arg(1,getargs(),int),
1754                 arg(2,getargs(),int));
1755
1756         return v;
1757 }
1758
1759 static val_t eic_iplYCC2RGB(void)
1760 {
1761         val_t v;
1762
1763         iplYCC2RGB(arg(0,getargs(),ptr_t).p,
1764                 arg(1,getargs(),ptr_t).p);
1765
1766         return v;
1767 }
1768
1769 static val_t eic_iplSetROI(void)
1770 {
1771         val_t v;
1772
1773         iplSetROI(arg(0,getargs(),ptr_t).p,
1774                 arg(1,getargs(),int),
1775                 arg(2,getargs(),int),
1776                 arg(3,getargs(),int),
1777                 arg(4,getargs(),int),
1778                 arg(5,getargs(),int));
1779
1780         return v;
1781 }
1782
1783 static val_t eic_iplGreater(void)
1784 {
1785         val_t v;
1786
1787         v.ival = iplGreater(arg(0,getargs(),ptr_t).p,
1788                 arg(1,getargs(),ptr_t).p,
1789                 arg(2,getargs(),ptr_t).p);
1790
1791         return v;
1792 }
1793
1794 static val_t eic_iplCreateConvKernel(void)
1795 {
1796         val_t v;
1797
1798         v.p.ep = v.p.sp = v.p.p = iplCreateConvKernel(arg(0,getargs(),int),
1799                 arg(1,getargs(),int),
1800                 arg(2,getargs(),int),
1801                 arg(3,getargs(),int),
1802                 arg(4,getargs(),ptr_t).p,
1803                 arg(5,getargs(),int));
1804
1805         return v;
1806 }
1807
1808 static val_t eic_iplEqualSFP(void)
1809 {
1810         val_t v;
1811
1812         v.ival = iplEqualSFP(arg(0,getargs(),ptr_t).p,
1813                 arg(1,getargs(),float),
1814                 arg(2,getargs(),ptr_t).p);
1815
1816         return v;
1817 }
1818
1819 static val_t eic_iplLess(void)
1820 {
1821         val_t v;
1822
1823         v.ival = iplLess(arg(0,getargs(),ptr_t).p,
1824                 arg(1,getargs(),ptr_t).p,
1825                 arg(2,getargs(),ptr_t).p);
1826
1827         return v;
1828 }
1829
1830 static val_t eic_iplColorToGray(void)
1831 {
1832         val_t v;
1833
1834         iplColorToGray(arg(0,getargs(),ptr_t).p,
1835                 arg(1,getargs(),ptr_t).p);
1836
1837         return v;
1838 }
1839
1840 static val_t eic_iplCcsFft2D(void)
1841 {
1842         val_t v;
1843
1844         iplCcsFft2D(arg(0,getargs(),ptr_t).p,
1845                 arg(1,getargs(),ptr_t).p,
1846                 arg(2,getargs(),int));
1847
1848         return v;
1849 }
1850
1851 static val_t eic_iplXorS(void)
1852 {
1853         val_t v;
1854
1855         iplXorS(arg(0,getargs(),ptr_t).p,
1856                 arg(1,getargs(),ptr_t).p,
1857                 arg(2,getargs(),unsigned));
1858
1859         return v;
1860 }
1861
1862 static val_t eic_iplCentralMoment(void)
1863 {
1864         val_t v;
1865
1866         v.dval = iplCentralMoment(arg(0,getargs(),ptr_t).p,
1867                 arg(1,getargs(),int),
1868                 arg(2,getargs(),int));
1869
1870         return v;
1871 }
1872
1873 static val_t eic_iplRemap(void)
1874 {
1875         val_t v;
1876
1877         iplRemap(arg(0,getargs(),ptr_t).p,
1878                 arg(1,getargs(),ptr_t).p,
1879                 arg(2,getargs(),ptr_t).p,
1880                 arg(3,getargs(),ptr_t).p,
1881                 arg(4,getargs(),int));
1882
1883         return v;
1884 }
1885
1886 static val_t eic_iplErode(void)
1887 {
1888         val_t v;
1889
1890         iplErode(arg(0,getargs(),ptr_t).p,
1891                 arg(1,getargs(),ptr_t).p,
1892                 arg(2,getargs(),int));
1893
1894         return v;
1895 }
1896
1897 static val_t eic_iplEqualSFPEps(void)
1898 {
1899         val_t v;
1900
1901         v.ival = iplEqualSFPEps(arg(0,getargs(),ptr_t).p,
1902                 arg(1,getargs(),float),
1903                 arg(2,getargs(),ptr_t).p,
1904                 arg(3,getargs(),float));
1905
1906         return v;
1907 }
1908
1909 static val_t eic_iplGetPixel(void)
1910 {
1911         val_t v;
1912
1913         iplGetPixel(arg(0,getargs(),ptr_t).p,
1914                 arg(1,getargs(),int),
1915                 arg(2,getargs(),int),
1916                 arg(3,getargs(),ptr_t).p);
1917
1918         return v;
1919 }
1920
1921 static val_t eic_iplGetBilinearTransform(void)
1922 {
1923         val_t v;
1924
1925         iplGetBilinearTransform(arg(0,getargs(),ptr_t).p,
1926                 arg(1,getargs(),ptr_t).p,
1927                 arg(2,getargs(),ptr_t).p);
1928
1929         return v;
1930 }
1931
1932 static val_t eic_iplSetColorTwist(void)
1933 {
1934         val_t v;
1935
1936         iplSetColorTwist(arg(0,getargs(),ptr_t).p,
1937                 arg(1,getargs(),ptr_t).p,
1938                 arg(2,getargs(),int));
1939
1940         return v;
1941 }
1942
1943 static val_t eic_iplTranslateDIB(void)
1944 {
1945         val_t v;
1946
1947         v.p.ep = v.p.sp = v.p.p = iplTranslateDIB(arg(0,getargs(),ptr_t).p,
1948                 arg(1,getargs(),ptr_t).p);
1949
1950         return v;
1951 }
1952
1953 static val_t eic_iplDeleteTileInfo(void)
1954 {
1955         val_t v;
1956
1957         iplDeleteTileInfo(arg(0,getargs(),ptr_t).p);
1958
1959         return v;
1960 }
1961
1962 static val_t eic_iplColorTwistFP(void)
1963 {
1964         val_t v;
1965
1966         v.ival = iplColorTwistFP(arg(0,getargs(),ptr_t).p,
1967                 arg(1,getargs(),ptr_t).p,
1968                 arg(2,getargs(),ptr_t).p);
1969
1970         return v;
1971 }
1972
1973 static val_t eic_iplNormalizedCentralMoment(void)
1974 {
1975         val_t v;
1976
1977         v.dval = iplNormalizedCentralMoment(arg(0,getargs(),ptr_t).p,
1978                 arg(1,getargs(),int),
1979                 arg(2,getargs(),int));
1980
1981         return v;
1982 }
1983
1984 static val_t eic_iplShear(void)
1985 {
1986         val_t v;
1987
1988         iplShear(arg(0,getargs(),ptr_t).p,
1989                 arg(1,getargs(),ptr_t).p,
1990                 arg(2,getargs(),double),
1991                 arg(3,getargs(),double),
1992                 arg(4,getargs(),double),
1993                 arg(5,getargs(),double),
1994                 arg(6,getargs(),int));
1995
1996         return v;
1997 }
1998
1999 static val_t eic_iplConvolve2D(void)
2000 {
2001         val_t v;
2002
2003         iplConvolve2D(arg(0,getargs(),ptr_t).p,
2004                 arg(1,getargs(),ptr_t).p,
2005                 arg(2,getargs(),ptr_t).p,
2006                 arg(3,getargs(),int),
2007                 arg(4,getargs(),int));
2008
2009         return v;
2010 }
2011
2012 static val_t eic_iplDeleteConvKernelFP(void)
2013 {
2014         val_t v;
2015
2016         iplDeleteConvKernelFP(arg(0,getargs(),ptr_t).p);
2017
2018         return v;
2019 }
2020
2021 static val_t eic_iplGetConvKernel(void)
2022 {
2023         val_t v;
2024
2025         iplGetConvKernel(arg(0,getargs(),ptr_t).p,
2026                 arg(1,getargs(),ptr_t).p,
2027                 arg(2,getargs(),ptr_t).p,
2028                 arg(3,getargs(),ptr_t).p,
2029                 arg(4,getargs(),ptr_t).p,
2030                 arg(5,getargs(),ptr_t).p,
2031                 arg(6,getargs(),ptr_t).p);
2032
2033         return v;
2034 }
2035
2036 static val_t eic_iplGetPerspectiveTransform(void)
2037 {
2038         val_t v;
2039
2040         iplGetPerspectiveTransform(arg(0,getargs(),ptr_t).p,
2041                 arg(1,getargs(),ptr_t).p,
2042                 arg(2,getargs(),ptr_t).p);
2043
2044         return v;
2045 }
2046
2047 static val_t eic_iplWarpAffine(void)
2048 {
2049         val_t v;
2050
2051         iplWarpAffine(arg(0,getargs(),ptr_t).p,
2052                 arg(1,getargs(),ptr_t).p,
2053                 arg(2,getargs(),ptr_t).p,
2054                 arg(3,getargs(),int));
2055
2056         return v;
2057 }
2058
2059 static val_t eic_iplMultiplyS(void)
2060 {
2061         val_t v;
2062
2063         iplMultiplyS(arg(0,getargs(),ptr_t).p,
2064                 arg(1,getargs(),ptr_t).p,
2065                 arg(2,getargs(),int));
2066
2067         return v;
2068 }
2069
2070 static val_t eic_iplEqual(void)
2071 {
2072         val_t v;
2073
2074         v.ival = iplEqual(arg(0,getargs(),ptr_t).p,
2075                 arg(1,getargs(),ptr_t).p,
2076                 arg(2,getargs(),ptr_t).p);
2077
2078         return v;
2079 }
2080
2081 static val_t eic_iplGetSpatialMoment(void)
2082 {
2083         val_t v;
2084
2085         v.dval = iplGetSpatialMoment(arg(0,getargs(),ptr_t).p,
2086                 arg(1,getargs(),int),
2087                 arg(2,getargs(),int));
2088
2089         return v;
2090 }
2091
2092 static val_t eic_iplOrS(void)
2093 {
2094         val_t v;
2095
2096         iplOrS(arg(0,getargs(),ptr_t).p,
2097                 arg(1,getargs(),ptr_t).p,
2098                 arg(2,getargs(),unsigned));
2099
2100         return v;
2101 }
2102
2103 static val_t eic_iplWarpPerspectiveQ(void)
2104 {
2105         val_t v;
2106
2107         iplWarpPerspectiveQ(arg(0,getargs(),ptr_t).p,
2108                 arg(1,getargs(),ptr_t).p,
2109                 arg(2,getargs(),ptr_t).p,
2110                 arg(3,getargs(),int),
2111                 arg(4,getargs(),int));
2112
2113         return v;
2114 }
2115
2116 static val_t eic_iplSubtract(void)
2117 {
2118         val_t v;
2119
2120         iplSubtract(arg(0,getargs(),ptr_t).p,
2121                 arg(1,getargs(),ptr_t).p,
2122                 arg(2,getargs(),ptr_t).p);
2123
2124         return v;
2125 }
2126
2127 static val_t eic_iplGetNormalizedCentralMoment(void)
2128 {
2129         val_t v;
2130
2131         v.dval = iplGetNormalizedCentralMoment(arg(0,getargs(),ptr_t).p,
2132                 arg(1,getargs(),int),
2133                 arg(2,getargs(),int));
2134
2135         return v;
2136 }
2137
2138 static val_t eic_iplComputeHisto(void)
2139 {
2140         val_t v;
2141
2142         iplComputeHisto(arg(0,getargs(),ptr_t).p,
2143                 arg(1,getargs(),ptr_t).p);
2144
2145         return v;
2146 }
2147
2148 static val_t eic_iplCreateColorTwist(void)
2149 {
2150         val_t v;
2151
2152         v.p.ep = v.p.sp = v.p.p = iplCreateColorTwist(arg(0,getargs(),ptr_t).p,
2153                 arg(1,getargs(),int));
2154
2155         return v;
2156 }
2157
2158 static val_t eic_iplSubtractSFP(void)
2159 {
2160         val_t v;
2161
2162         iplSubtractSFP(arg(0,getargs(),ptr_t).p,
2163                 arg(1,getargs(),ptr_t).p,
2164                 arg(2,getargs(),float),
2165                 arg(3,getargs(),int));
2166
2167         return v;
2168 }
2169
2170 static val_t eic_iplGreaterSFP(void)
2171 {
2172         val_t v;
2173
2174         v.ival = iplGreaterSFP(arg(0,getargs(),ptr_t).p,
2175                 arg(1,getargs(),float),
2176                 arg(2,getargs(),ptr_t).p);
2177
2178         return v;
2179 }
2180
2181 static val_t eic_iplRGB2YCrCb(void)
2182 {
2183         val_t v;
2184
2185         iplRGB2YCrCb(arg(0,getargs(),ptr_t).p,
2186                 arg(1,getargs(),ptr_t).p);
2187
2188         return v;
2189 }
2190
2191 static val_t eic_iplDeleteROI(void)
2192 {
2193         val_t v;
2194
2195         iplDeleteROI(arg(0,getargs(),ptr_t).p);
2196
2197         return v;
2198 }
2199
2200 static val_t eic_iplGrayToColor(void)
2201 {
2202         val_t v;
2203
2204         iplGrayToColor(arg(0,getargs(),ptr_t).p,
2205                 arg(1,getargs(),ptr_t).p,
2206                 arg(2,getargs(),float),
2207                 arg(3,getargs(),float),
2208                 arg(4,getargs(),float));
2209
2210         return v;
2211 }
2212
2213 static val_t eic_iplConvert(void)
2214 {
2215         val_t v;
2216
2217         iplConvert(arg(0,getargs(),ptr_t).p,
2218                 arg(1,getargs(),ptr_t).p);
2219
2220         return v;
2221 }
2222
2223 static val_t eic_iplMinMaxFP(void)
2224 {
2225         val_t v;
2226
2227         v.ival = iplMinMaxFP(arg(0,getargs(),ptr_t).p,
2228                 arg(1,getargs(),ptr_t).p,
2229                 arg(2,getargs(),ptr_t).p);
2230
2231         return v;
2232 }
2233
2234 static val_t eic_iplHSV2RGB(void)
2235 {
2236         val_t v;
2237
2238         iplHSV2RGB(arg(0,getargs(),ptr_t).p,
2239                 arg(1,getargs(),ptr_t).p);
2240
2241         return v;
2242 }
2243
2244 static val_t eic_iplMultiplyScale(void)
2245 {
2246         val_t v;
2247
2248         iplMultiplyScale(arg(0,getargs(),ptr_t).p,
2249                 arg(1,getargs(),ptr_t).p,
2250                 arg(2,getargs(),ptr_t).p);
2251
2252         return v;
2253 }
2254
2255 static val_t eic_iplHistoEqualize(void)
2256 {
2257         val_t v;
2258
2259         iplHistoEqualize(arg(0,getargs(),ptr_t).p,
2260                 arg(1,getargs(),ptr_t).p,
2261                 arg(2,getargs(),ptr_t).p);
2262
2263         return v;
2264 }
2265
2266 static val_t eic_iplYCrCb2RGB(void)
2267 {
2268         val_t v;
2269
2270         iplYCrCb2RGB(arg(0,getargs(),ptr_t).p,
2271                 arg(1,getargs(),ptr_t).p);
2272
2273         return v;
2274 }
2275
2276 static val_t eic_iplSpatialMoment(void)
2277 {
2278         val_t v;
2279
2280         v.dval = iplSpatialMoment(arg(0,getargs(),ptr_t).p,
2281                 arg(1,getargs(),int),
2282                 arg(2,getargs(),int));
2283
2284         return v;
2285 }
2286
2287 static val_t eic_iplGreaterS(void)
2288 {
2289         val_t v;
2290
2291         v.ival = iplGreaterS(arg(0,getargs(),ptr_t).p,
2292                 arg(1,getargs(),int),
2293                 arg(2,getargs(),ptr_t).p);
2294
2295         return v;
2296 }
2297
2298 static val_t eic_iplEqualFPEps(void)
2299 {
2300         val_t v;
2301
2302         v.ival = iplEqualFPEps(arg(0,getargs(),ptr_t).p,
2303                 arg(1,getargs(),ptr_t).p,
2304                 arg(2,getargs(),ptr_t).p,
2305                 arg(3,getargs(),float));
2306
2307         return v;
2308 }
2309
2310 static val_t eic_iplOpen(void)
2311 {
2312         val_t v;
2313
2314         iplOpen(arg(0,getargs(),ptr_t).p,
2315                 arg(1,getargs(),ptr_t).p,
2316                 arg(2,getargs(),int));
2317
2318         return v;
2319 }
2320
2321 static val_t eic_iplGetRotateShift(void)
2322 {
2323         val_t v;
2324
2325         iplGetRotateShift(arg(0,getargs(),double),
2326                 arg(1,getargs(),double),
2327                 arg(2,getargs(),double),
2328                 arg(3,getargs(),ptr_t).p,
2329                 arg(4,getargs(),ptr_t).p);
2330
2331         return v;
2332 }
2333
2334 static val_t eic_iplConvertFromDIBSep(void)
2335 {
2336         val_t v;
2337
2338         v.ival = iplConvertFromDIBSep(arg(0,getargs(),ptr_t).p,
2339                 arg(1,getargs(),ptr_t).p,
2340                 arg(2,getargs(),ptr_t).p);
2341
2342         return v;
2343 }
2344
2345 static val_t eic_iplDeallocateHeader(void)
2346 {
2347         val_t v;
2348
2349         iplDeallocateHeader(arg(0,getargs(),ptr_t).p);
2350
2351         return v;
2352 }
2353
2354 static val_t eic_iplZoom(void)
2355 {
2356         val_t v;
2357
2358         iplZoom(arg(0,getargs(),ptr_t).p,
2359                 arg(1,getargs(),ptr_t).p,
2360                 arg(2,getargs(),int),
2361                 arg(3,getargs(),int),
2362                 arg(4,getargs(),int),
2363                 arg(5,getargs(),int),
2364                 arg(6,getargs(),int));
2365
2366         return v;
2367 }
2368
2369 static val_t eic_iplConvertFromDIB(void)
2370 {
2371         val_t v;
2372
2373         iplConvertFromDIB(arg(0,getargs(),ptr_t).p,
2374                 arg(1,getargs(),ptr_t).p);
2375
2376         return v;
2377 }
2378
2379 static val_t eic_iplLessS(void)
2380 {
2381         val_t v;
2382
2383         v.ival = iplLessS(arg(0,getargs(),ptr_t).p,
2384                 arg(1,getargs(),int),
2385                 arg(2,getargs(),ptr_t).p);
2386
2387         return v;
2388 }
2389
2390 static val_t eic_iplGetPerspectiveQuad(void)
2391 {
2392         val_t v;
2393
2394         iplGetPerspectiveQuad(arg(0,getargs(),ptr_t).p,
2395                 arg(1,getargs(),ptr_t).p,
2396                 arg(2,getargs(),ptr_t).p);
2397
2398         return v;
2399 }
2400
2401 static val_t eic_iplConvolve2DFP(void)
2402 {
2403         val_t v;
2404
2405         iplConvolve2DFP(arg(0,getargs(),ptr_t).p,
2406                 arg(1,getargs(),ptr_t).p,
2407                 arg(2,getargs(),ptr_t).p,
2408                 arg(3,getargs(),int),
2409                 arg(4,getargs(),int));
2410
2411         return v;
2412 }
2413
2414 static val_t eic_iplRGB2YUV(void)
2415 {
2416         val_t v;
2417
2418         iplRGB2YUV(arg(0,getargs(),ptr_t).p,
2419                 arg(1,getargs(),ptr_t).p);
2420
2421         return v;
2422 }
2423
2424 static val_t eic_iplAlphaCompositeC(void)
2425 {
2426         val_t v;
2427
2428         iplAlphaCompositeC(arg(0,getargs(),ptr_t).p,
2429                 arg(1,getargs(),ptr_t).p,
2430                 arg(2,getargs(),ptr_t).p,
2431                 arg(3,getargs(),int),
2432                 arg(4,getargs(),int),
2433                 arg(5,getargs(),int),
2434                 arg(6,getargs(),int),
2435                 arg(7,getargs(),int));
2436
2437         return v;
2438 }
2439
2440 static val_t eic_iplLessSFP(void)
2441 {
2442         val_t v;
2443
2444         v.ival = iplLessSFP(arg(0,getargs(),ptr_t).p,
2445                 arg(1,getargs(),float),
2446                 arg(2,getargs(),ptr_t).p);
2447
2448         return v;
2449 }
2450
2451 static val_t eic_iplWarpBilinearQ(void)
2452 {
2453         val_t v;
2454
2455         iplWarpBilinearQ(arg(0,getargs(),ptr_t).p,
2456                 arg(1,getargs(),ptr_t).p,
2457                 arg(2,getargs(),ptr_t).p,
2458                 arg(3,getargs(),int),
2459                 arg(4,getargs(),int));
2460
2461         return v;
2462 }
2463
2464 static val_t eic_iplReduceBits(void)
2465 {
2466         val_t v;
2467
2468         iplReduceBits(arg(0,getargs(),ptr_t).p,
2469                 arg(1,getargs(),ptr_t).p,
2470                 arg(2,getargs(),int),
2471                 arg(3,getargs(),int),
2472                 arg(4,getargs(),int));
2473
2474         return v;
2475 }
2476
2477 static val_t eic_iplNormalizedSpatialMoment(void)
2478 {
2479         val_t v;
2480
2481         v.dval = iplNormalizedSpatialMoment(arg(0,getargs(),ptr_t).p,
2482                 arg(1,getargs(),int),
2483                 arg(2,getargs(),int));
2484
2485         return v;
2486 }
2487
2488 static val_t eic_iplAllocateImage(void)
2489 {
2490         val_t v;
2491
2492         iplAllocateImage(arg(0,getargs(),ptr_t).p,
2493                 arg(1,getargs(),int),
2494                 arg(2,getargs(),int));
2495
2496         return v;
2497 }
2498
2499 static val_t eic_iplCreateImageHeader(void)
2500 {
2501         val_t v;
2502
2503         v.p.ep = v.p.sp = v.p.p = iplCreateImageHeader(arg(0,getargs(),int),
2504                 arg(1,getargs(),int),
2505                 arg(2,getargs(),int),
2506                 arg(3,getargs(),ptr_t).p,
2507                 arg(4,getargs(),ptr_t).p,
2508                 arg(5,getargs(),int),
2509                 arg(6,getargs(),int),
2510                 arg(7,getargs(),int),
2511                 arg(8,getargs(),int),
2512                 arg(9,getargs(),int),
2513                 arg(10,getargs(),ptr_t).p,
2514                 arg(11,getargs(),ptr_t).p,
2515                 arg(12,getargs(),ptr_t).p,
2516                 arg(13,getargs(),ptr_t).p);
2517
2518         return v;
2519 }
2520
2521 /**********************************/
2522
2523 void module_ipl()
2524 {
2525 }
2526
2527 /**********************************/
2528
2529 char* eic_function_names[] = {
2530     "iplCreateImageHeader", "iplAllocateImage", "iplNormalizedSpatialMoment", "iplReduceBits", "iplWarpBilinearQ", 
2531     "iplLessSFP", "iplAlphaCompositeC", "iplRGB2YUV", "iplConvolve2DFP", "iplGetPerspectiveQuad", 
2532     "iplLessS", "iplConvertFromDIB", "iplZoom", "iplDeallocateHeader", "iplConvertFromDIBSep", 
2533     "iplGetRotateShift", "iplOpen", "iplEqualFPEps", "iplGreaterS", "iplSpatialMoment", 
2534     "iplYCrCb2RGB", "iplHistoEqualize", "iplMultiplyScale", "iplHSV2RGB", "iplMinMaxFP", 
2535     "iplConvert", "iplGrayToColor", "iplDeleteROI", "iplRGB2YCrCb", "iplGreaterSFP", 
2536     "iplSubtractSFP", "iplCreateColorTwist", "iplComputeHisto", "iplGetNormalizedCentralMoment", "iplSubtract", 
2537     "iplWarpPerspectiveQ", "iplOrS", "iplGetSpatialMoment", "iplEqual", "iplMultiplyS", 
2538     "iplWarpAffine", "iplGetPerspectiveTransform", "iplGetConvKernel", "iplDeleteConvKernelFP", "iplConvolve2D", 
2539     "iplShear", "iplNormalizedCentralMoment", "iplColorTwistFP", "iplDeleteTileInfo", "iplTranslateDIB", 
2540     "iplSetColorTwist", "iplGetBilinearTransform", "iplGetPixel", "iplEqualSFPEps", "iplErode", 
2541     "iplRemap", "iplCentralMoment", "iplXorS", "iplCcsFft2D", "iplColorToGray", 
2542     "iplLess", "iplEqualSFP", "iplCreateConvKernel", "iplGreater", "iplSetROI", 
2543     "iplYCC2RGB", "iplCreateImageJaehne", "iplXYZ2RGB", "iplConvertToDIB", "iplWarpPerspective", 
2544     "iplConvolveSep2D", "iplOr", "iplSetTileInfo", "iplExchange", "iplMultiply", 
2545     "iplGetCentralMoment", "iplRGB2LUV", "iplContrastStretch", "iplConvertToDIBSep", "iplLShiftS", 
2546     "iplAndS", "iplMpyRCPack2D", "iplMirror", "iplSubtractS", "iplApplyColorTwist", 
2547     "iplRotate", "iplCreateConvKernelFP", "iplDilate", "iplDeleteColorTwist", "iplXor", 
2548     "iplCreateConvKernelChar", "iplMaxFilter", "iplEqualS", "iplAddSFP", "iplDecimateExt", 
2549     "iplDCT2D", "iplAnd", "iplSetBorderMode", "iplCreateTileInfo", "iplDeallocateImage", 
2550     "iplCopy", "iplRGB2HSV", "iplYUV2RGB", "iplRShiftS", "iplScale", 
2551     "iplAbs", "iplGetConvKernelChar", "iplMultiplySFP", "iplPreMultiplyAlpha", "iplSetFP", 
2552     "iplResize", "iplGetBilinearBound", "iplPutPixel", "iplAlphaComposite", "iplMinFilter", 
2553     "iplHLS2RGB", "iplAllocateImageFP", "iplDeleteConvKernel", "iplGetAffineBound", "iplConvolveSep2DFP", 
2554     "iplAdd", "iplGetConvKernelFP", "iplGetNormalizedSpatialMoment", "iplDeallocate", "iplClose", 
2555     "iplScaleFP", "iplMedianFilter", "iplWarpBilinear", "iplCloneImage", "iplSquare", 
2556     "iplBlur", "iplRGB2HLS", "iplFixedFilter", "iplRealFft2D", "iplCreateROI", 
2557     "iplMultiplySScale", "iplThreshold", "iplMoments", "iplAddS", "iplRGB2XYZ", 
2558     "iplNorm", "iplGetPerspectiveBound", "iplGetBilinearQuad", "iplBitonalToGray", "iplLUV2RGB", 
2559     "iplDecimate", "iplSet", "iplNot", "iplGetAffineQuad", "iplGetAffineTransform"};
2560
2561 val_t (*eic_functions[])(void) = {    
2562     eic_iplCreateImageHeader, eic_iplAllocateImage, eic_iplNormalizedSpatialMoment, eic_iplReduceBits, eic_iplWarpBilinearQ, 
2563     eic_iplLessSFP, eic_iplAlphaCompositeC, eic_iplRGB2YUV, eic_iplConvolve2DFP, eic_iplGetPerspectiveQuad, 
2564     eic_iplLessS, eic_iplConvertFromDIB, eic_iplZoom, eic_iplDeallocateHeader, eic_iplConvertFromDIBSep, 
2565     eic_iplGetRotateShift, eic_iplOpen, eic_iplEqualFPEps, eic_iplGreaterS, eic_iplSpatialMoment, 
2566     eic_iplYCrCb2RGB, eic_iplHistoEqualize, eic_iplMultiplyScale, eic_iplHSV2RGB, eic_iplMinMaxFP, 
2567     eic_iplConvert, eic_iplGrayToColor, eic_iplDeleteROI, eic_iplRGB2YCrCb, eic_iplGreaterSFP, 
2568     eic_iplSubtractSFP, eic_iplCreateColorTwist, eic_iplComputeHisto, eic_iplGetNormalizedCentralMoment, eic_iplSubtract, 
2569     eic_iplWarpPerspectiveQ, eic_iplOrS, eic_iplGetSpatialMoment, eic_iplEqual, eic_iplMultiplyS, 
2570     eic_iplWarpAffine, eic_iplGetPerspectiveTransform, eic_iplGetConvKernel, eic_iplDeleteConvKernelFP, eic_iplConvolve2D, 
2571     eic_iplShear, eic_iplNormalizedCentralMoment, eic_iplColorTwistFP, eic_iplDeleteTileInfo, eic_iplTranslateDIB, 
2572     eic_iplSetColorTwist, eic_iplGetBilinearTransform, eic_iplGetPixel, eic_iplEqualSFPEps, eic_iplErode, 
2573     eic_iplRemap, eic_iplCentralMoment, eic_iplXorS, eic_iplCcsFft2D, eic_iplColorToGray, 
2574     eic_iplLess, eic_iplEqualSFP, eic_iplCreateConvKernel, eic_iplGreater, eic_iplSetROI, 
2575     eic_iplYCC2RGB, eic_iplCreateImageJaehne, eic_iplXYZ2RGB, eic_iplConvertToDIB, eic_iplWarpPerspective, 
2576     eic_iplConvolveSep2D, eic_iplOr, eic_iplSetTileInfo, eic_iplExchange, eic_iplMultiply, 
2577     eic_iplGetCentralMoment, eic_iplRGB2LUV, eic_iplContrastStretch, eic_iplConvertToDIBSep, eic_iplLShiftS, 
2578     eic_iplAndS, eic_iplMpyRCPack2D, eic_iplMirror, eic_iplSubtractS, eic_iplApplyColorTwist, 
2579     eic_iplRotate, eic_iplCreateConvKernelFP, eic_iplDilate, eic_iplDeleteColorTwist, eic_iplXor, 
2580     eic_iplCreateConvKernelChar, eic_iplMaxFilter, eic_iplEqualS, eic_iplAddSFP, eic_iplDecimateExt, 
2581     eic_iplDCT2D, eic_iplAnd, eic_iplSetBorderMode, eic_iplCreateTileInfo, eic_iplDeallocateImage, 
2582     eic_iplCopy, eic_iplRGB2HSV, eic_iplYUV2RGB, eic_iplRShiftS, eic_iplScale, 
2583     eic_iplAbs, eic_iplGetConvKernelChar, eic_iplMultiplySFP, eic_iplPreMultiplyAlpha, eic_iplSetFP, 
2584     eic_iplResize, eic_iplGetBilinearBound, eic_iplPutPixel, eic_iplAlphaComposite, eic_iplMinFilter, 
2585     eic_iplHLS2RGB, eic_iplAllocateImageFP, eic_iplDeleteConvKernel, eic_iplGetAffineBound, eic_iplConvolveSep2DFP, 
2586     eic_iplAdd, eic_iplGetConvKernelFP, eic_iplGetNormalizedSpatialMoment, eic_iplDeallocate, eic_iplClose, 
2587     eic_iplScaleFP, eic_iplMedianFilter, eic_iplWarpBilinear, eic_iplCloneImage, eic_iplSquare, 
2588     eic_iplBlur, eic_iplRGB2HLS, eic_iplFixedFilter, eic_iplRealFft2D, eic_iplCreateROI, 
2589     eic_iplMultiplySScale, eic_iplThreshold, eic_iplMoments, eic_iplAddS, eic_iplRGB2XYZ, 
2590     eic_iplNorm, eic_iplGetPerspectiveBound, eic_iplGetBilinearQuad, eic_iplBitonalToGray, eic_iplLUV2RGB, 
2591     eic_iplDecimate, eic_iplSet, eic_iplNot, eic_iplGetAffineQuad, eic_iplGetAffineTransform};
2592
2593 void GetFunctions(char*** func_names, val_t (***funcs)(void), int* funcs_count)
2594 {
2595     *func_names = eic_function_names;
2596     *funcs = eic_functions;
2597     *funcs_count = sizeof(eic_functions)/sizeof(eic_functions[0]);
2598 }
2599
2600 void PluginGetInfo(plugin_info* info)
2601 {
2602     strcpy(info->name, "IPL 2.5");
2603     strcpy(info->library_path, "ipl.dll");
2604     info->type = PLUG_WRAPPERS;
2605 }