1 /* GStreamer
2  * Copyright (C) 2013 Miguel Casas-Sanchez <miguelecasassanchez@gmail.com>
3  *
4  * gstopenni2.c: plugin registration
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 /**
23  * SECTION:plugin-openni2src
24  *
25  * OpenNI2 is a library to access 3D sensors such as those based on PrimeSense
26  * depth sensor. Examples of such sensors are the Kinect used in Microsoft Xbox
27  * consoles and Asus WAVI Xtion. Notably recordings of 3D sessions can also be
28  * replayed as the original devices. See www.openni.org for more details.
29  *
30  * OpenNI2 can be downloaded from source, compiled and installed in Linux, Mac
31  * and Windows devices(https://github.com/OpenNI/OpenNI2). However is better to
32  * rely on Debian packages as part of the PCL library (or http://goo.gl/0o87EB).
33  * More concretely on the "libopenni2-dev" and "libopenni2" packages - that can
34  * be downloaded in http://goo.gl/2H6SZ6.
35  *
36  * <refsect2>
37  * <title>Examples</title>
38  * <para>
39  * Some recorded .oni files are available at:
40  * <programlisting>
41  *  http://people.cs.pitt.edu/~chang/1635/proj11/kinectRecord
42  * </programlisting>
43  * </para>
44  * </refsect2>
45  */
46 
47 
48 #ifdef HAVE_CONFIG_H
49 #include "config.h"
50 #endif
51 #include <gst/gst.h>
52 #include "gstopenni2src.h"
53 
54 static gboolean
plugin_init(GstPlugin * plugin)55 plugin_init (GstPlugin * plugin)
56 {
57   if (!gst_openni2src_plugin_init (plugin))
58     return FALSE;
59 
60   return TRUE;
61 }
62 
63 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
64     GST_VERSION_MINOR,
65     openni2,
66     "GStreamer Openni2 Plugins",
67     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
68