• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  * ## Examples
37  *
38  * Some recorded .oni files are available at <http://people.cs.pitt.edu/~chang/1635/proj11/kinectRecord>
39  */
40 
41 
42 #ifdef HAVE_CONFIG_H
43 #include "config.h"
44 #endif
45 #include <gst/gst.h>
46 #include "gstopenni2src.h"
47 
48 static gboolean
plugin_init(GstPlugin * plugin)49 plugin_init (GstPlugin * plugin)
50 {
51   return GST_ELEMENT_REGISTER (openni2src, plugin);
52 }
53 
54 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
55     GST_VERSION_MINOR,
56     openni2,
57     "GStreamer Openni2 Plugins",
58     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
59