3 * gstv4l.c: plugin for v4l elements
5 * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
27 #include "gst/gst-i18n-plugin.h"
31 #include "gstv4lelement.h"
32 #include "gstv4lsrc.h"
33 /* #include "gstv4ljpegsrc.h" */
34 /* #include "gstv4lmjpegsrc.h" */
35 /* #include "gstv4lmjpegsink.h" */
37 GST_DEBUG_CATEGORY (v4l_debug); /* used in v4l_calls.c and v4lsrc_calls.c */
40 plugin_init (GstPlugin * plugin)
42 GST_DEBUG_CATEGORY_INIT (v4l_debug, "v4l", 0, "V4L API calls");
44 if (!gst_element_register (plugin, "v4lsrc", GST_RANK_MARGINAL,
46 /* !gst_element_register (plugin, "v4ljpegsrc", */
47 /* GST_RANK_NONE, GST_TYPE_V4LJPEGSRC) || */
48 /* !gst_element_register (plugin, "v4lmjpegsrc", */
49 /* GST_RANK_NONE, GST_TYPE_V4LMJPEGSRC) || */
50 /* !gst_element_register (plugin, "v4lmjpegsink", */
51 /* GST_RANK_NONE, GST_TYPE_V4LMJPEGSINK)) */
55 setlocale (LC_ALL, "");
56 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
57 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
58 #endif /* ENABLE_NLS */
63 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
66 "elements for Video 4 Linux",
67 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)