Mercurial > hg > libxtract
annotate swig/xtract.i @ 103:1cbbe5b5e461
- Added some previously uncommitted Pd testing examples
- Improved python bindings. Now we can do vector features as well as scalar from Python
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Fri, 21 Dec 2007 11:05:20 +0000 |
parents | 525bfdf936c6 |
children | 3e648eec95cb |
rev | line source |
---|---|
jamie@87 | 1 %module xtract |
jamie@87 | 2 %include carrays.i |
jamie@87 | 3 %include typemaps.i |
jamie@87 | 4 |
jamie@87 | 5 %{ |
jamie@87 | 6 #include "xtract/xtract_scalar.h" |
jamie@103 | 7 #include "xtract/xtract_vector.h" |
jamie@103 | 8 #include "xtract/libxtract.h" |
jamie@87 | 9 %} |
jamie@87 | 10 |
jamie@88 | 11 %array_class(float, floatArray); |
jamie@87 | 12 %apply float *OUTPUT { float *result }; |
jamie@88 | 13 /* %apply float *INPUT { float *data }; */ |
jamie@87 | 14 |
jamie@103 | 15 %ignore xtract; |
jamie@103 | 16 |
jamie@87 | 17 %include "xtract/xtract_scalar.h" |
jamie@103 | 18 |
jamie@103 | 19 %clear float *result; |
jamie@103 | 20 |
jamie@103 | 21 %include "xtract/xtract_vector.h" |
jamie@103 | 22 %include "xtract/libxtract.h" |