3 * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * 2006 Edgard Lima <edgard.lima@indt.org.br>
6 * gstv4l2.c: plugin for v4l2 elements
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
28 #include "gst/gst-i18n-plugin.h"
32 #include "gstv4l2object.h"
33 #include "gstv4l2src.h"
34 #include "gstv4l2sink.h"
35 #include "gstv4l2radio.h"
36 /* #include "gstv4l2jpegsrc.h" */
37 /* #include "gstv4l2mjpegsrc.h" */
38 /* #include "gstv4l2mjpegsink.h" */
40 /* used in v4l2_calls.c and v4l2src_calls.c */
41 GST_DEBUG_CATEGORY (v4l2_debug);
44 plugin_init (GstPlugin * plugin)
46 GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
48 if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY,
50 !gst_element_register (plugin, "v4l2sink", GST_RANK_NONE,
52 !gst_element_register (plugin, "v4l2radio", GST_RANK_NONE,
53 GST_TYPE_V4L2RADIO) ||
54 /* !gst_element_register (plugin, "v4l2jpegsrc", */
55 /* GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
56 /* !gst_element_register (plugin, "v4l2mjpegsrc", */
57 /* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSRC) || */
58 /* !gst_element_register (plugin, "v4l2mjpegsink", */
59 /* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSINK)) */
64 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
65 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
66 #endif /* ENABLE_NLS */
71 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
74 "elements for Video 4 Linux",
75 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)