2006-03-11 22:50:03 +00:00
|
|
|
/* GStreamer
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
2006-09-02 14:28:55 +00:00
|
|
|
* 2006 Edgard Lima <edgard.lima@indt.org.br>
|
|
|
|
*
|
|
|
|
* gstv4l2.c: plugin for v4l2 elements
|
2003-09-13 08:58:49 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-09-13 08:58:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2004-01-20 01:51:47 +00:00
|
|
|
#include "gst/gst-i18n-plugin.h"
|
|
|
|
|
2006-03-11 22:50:03 +00:00
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2006-05-11 17:59:59 +00:00
|
|
|
#include "gstv4l2object.h"
|
2003-09-13 08:58:49 +00:00
|
|
|
#include "gstv4l2src.h"
|
2009-08-04 07:14:20 +00:00
|
|
|
#include "gstv4l2sink.h"
|
2011-03-26 22:19:58 +00:00
|
|
|
#include "gstv4l2radio.h"
|
2013-11-28 22:14:18 +00:00
|
|
|
#include "gstv4l2videodec.h"
|
2006-03-11 22:50:03 +00:00
|
|
|
/* #include "gstv4l2jpegsrc.h" */
|
|
|
|
/* #include "gstv4l2mjpegsrc.h" */
|
|
|
|
/* #include "gstv4l2mjpegsink.h" */
|
|
|
|
|
2006-09-02 14:45:04 +00:00
|
|
|
/* used in v4l2_calls.c and v4l2src_calls.c */
|
|
|
|
GST_DEBUG_CATEGORY (v4l2_debug);
|
2003-09-13 08:58:49 +00:00
|
|
|
|
2003-11-03 22:47:52 +00:00
|
|
|
static gboolean
|
2004-03-14 22:34:33 +00:00
|
|
|
plugin_init (GstPlugin * plugin)
|
2003-09-13 08:58:49 +00:00
|
|
|
{
|
2006-03-11 22:50:03 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
|
|
|
|
|
2008-11-14 15:42:32 +00:00
|
|
|
if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY,
|
2009-08-04 07:14:20 +00:00
|
|
|
GST_TYPE_V4L2SRC) ||
|
2010-02-12 16:11:30 +00:00
|
|
|
!gst_element_register (plugin, "v4l2sink", GST_RANK_NONE,
|
2009-08-04 07:14:20 +00:00
|
|
|
GST_TYPE_V4L2SINK) ||
|
2011-03-26 22:19:58 +00:00
|
|
|
!gst_element_register (plugin, "v4l2radio", GST_RANK_NONE,
|
|
|
|
GST_TYPE_V4L2RADIO) ||
|
2013-12-18 08:56:35 +00:00
|
|
|
!gst_v4l2_video_dec_register (plugin) ||
|
2009-08-04 07:14:20 +00:00
|
|
|
/* !gst_element_register (plugin, "v4l2jpegsrc", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
|
|
|
|
/* !gst_element_register (plugin, "v4l2mjpegsrc", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSRC) || */
|
|
|
|
/* !gst_element_register (plugin, "v4l2mjpegsink", */
|
|
|
|
/* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSINK)) */
|
|
|
|
FALSE)
|
2003-09-13 08:58:49 +00:00
|
|
|
return FALSE;
|
|
|
|
|
2004-01-19 15:45:55 +00:00
|
|
|
#ifdef ENABLE_NLS
|
|
|
|
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
2008-08-07 16:11:00 +00:00
|
|
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
2004-01-19 15:45:55 +00:00
|
|
|
#endif /* ENABLE_NLS */
|
|
|
|
|
2003-09-13 08:58:49 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 15:36:38 +00:00
|
|
|
video4linux2,
|
2006-03-11 22:50:03 +00:00
|
|
|
"elements for Video 4 Linux",
|
2006-04-01 10:09:11 +00:00
|
|
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|