aboutsummaryrefslogtreecommitdiff
path: root/src/pix_opencv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pix_opencv.cc')
-rw-r--r--src/pix_opencv.cc38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/pix_opencv.cc b/src/pix_opencv.cc
new file mode 100644
index 0000000..4d3eff8
--- /dev/null
+++ b/src/pix_opencv.cc
@@ -0,0 +1,38 @@
+#include "m_pd.h"
+
+extern "C" {
+
+typedef struct pix_opencv
+{
+ t_object x_ob;
+} t_pix_opencv;
+
+t_class *pix_opencv_class;
+
+ /* this is called when a new "pix_opencv" object is created. */
+void *pix_opencv_new(void)
+{
+ t_pix_opencv *x = (t_pix_opencv *)pd_new(pix_opencv_class);
+ return (void *)x;
+}
+
+void pix_opencv_setup(void)
+{
+ verbose(-1,"pix_opencv %s library by Antoine Villeret 2012-2014",VERSION);
+ verbose(-1,"\tbased on work by Yves Degoyon and Lluis Gomez i Bigorda");
+ verbose(-1,"\tbuilt on %s",__DATE__);
+#if HAVE_LIBOPENCV_NONFREE
+ verbose(-1,"\twith non-free features");
+#else
+ verbose(-1,"\twithout non-free features");
+#endif
+#ifdef HAVE_FACETRACKER
+ verbose(-1,"\twith FaceTracker.");
+#else
+ verbose(-1,"\tand without FaceTracker.");
+#endif
+ pix_opencv_class = class_new(gensym("pix_opencv"), (t_newmethod)pix_opencv_new, 0,
+ sizeof(t_pix_opencv), 0, (t_atomtype) 0);
+}
+
+} // extern "C"