• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <2009> Kapil Agrawal <kapil@mediamagictechnologies.com>
3  *
4  * gstopencv.cpp: plugin registering
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifdef HAVE_CONFIG_H
23 #include "config.h"
24 #endif
25 
26 #include "gstcvdilate.h"
27 #include "gstcvequalizehist.h"
28 #include "gstcverode.h"
29 #include "gstcvlaplace.h"
30 #include "gstcvsmooth.h"
31 #include "gstcvsobel.h"
32 #include "gstedgedetect.h"
33 #include "gstfaceblur.h"
34 #include "gstfacedetect.h"
35 #include "gstmotioncells.h"
36 #include "gsttemplatematch.h"
37 #include "gsttextoverlay.h"
38 #include "gsthanddetect.h"
39 #include "gstskindetect.h"
40 #include "gstretinex.h"
41 #include "gstsegmentation.h"
42 #include "gstgrabcut.h"
43 #include "gstdisparity.h"
44 #include "gstdewarp.h"
45 #include "gstcameracalibrate.h"
46 #include "gstcameraundistort.h"
47 #include "gstcvtracker.h"
48 
49 
50 static gboolean
plugin_init(GstPlugin * plugin)51 plugin_init (GstPlugin * plugin)
52 {
53   gboolean ret = FALSE;
54 
55   ret |= GST_ELEMENT_REGISTER (cvdilate, plugin);
56   ret |= GST_ELEMENT_REGISTER (cvequalizehist, plugin);
57   ret |= GST_ELEMENT_REGISTER (cverode, plugin);
58   ret |= GST_ELEMENT_REGISTER (cvlaplace, plugin);
59   ret |= GST_ELEMENT_REGISTER (cvsmooth, plugin);
60   ret |= GST_ELEMENT_REGISTER (cvsobel, plugin);
61   ret |= GST_ELEMENT_REGISTER (edgedetect, plugin);
62   ret |= GST_ELEMENT_REGISTER (faceblur, plugin);
63   ret |= GST_ELEMENT_REGISTER (facedetect, plugin);
64   ret |= GST_ELEMENT_REGISTER (motioncells, plugin);
65   ret |= GST_ELEMENT_REGISTER (templatematch, plugin);
66   ret |= GST_ELEMENT_REGISTER (opencvtextoverlay, plugin);
67   ret |= GST_ELEMENT_REGISTER (handdetect, plugin);
68   ret |= GST_ELEMENT_REGISTER (skindetect, plugin);
69   ret |= GST_ELEMENT_REGISTER (retinex, plugin);
70   ret |= GST_ELEMENT_REGISTER (segmentation, plugin);
71   ret |= GST_ELEMENT_REGISTER (grabcut, plugin);
72   ret |= GST_ELEMENT_REGISTER (disparity, plugin);
73   ret |= GST_ELEMENT_REGISTER (dewarp, plugin);
74   ret |= GST_ELEMENT_REGISTER (cameracalibrate, plugin);
75   ret |= GST_ELEMENT_REGISTER (cameraundistort, plugin);
76   ret |= GST_ELEMENT_REGISTER (cvtracker, plugin);
77 
78   return ret;
79 }
80 
81 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
82     GST_VERSION_MINOR,
83     opencv,
84     "GStreamer OpenCV Plugins",
85     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
86