gst_plugins_base/sys/v4l/gstv4l.c
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer
       
     2  *
       
     3  * gstv4l.c: plugin for v4l elements
       
     4  *
       
     5  * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
       
     6  *
       
     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.
       
    11  *
       
    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.
       
    16  *
       
    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.
       
    21  */
       
    22 
       
    23 #ifdef HAVE_CONFIG_H
       
    24 #include "config.h"
       
    25 #endif
       
    26 
       
    27 #include "gst/gst-i18n-plugin.h"
       
    28 
       
    29 #include <gst/gst.h>
       
    30 
       
    31 #include "gstv4lelement.h"
       
    32 #include "gstv4lsrc.h"
       
    33 /* #include "gstv4ljpegsrc.h" */
       
    34 /* #include "gstv4lmjpegsrc.h" */
       
    35 /* #include "gstv4lmjpegsink.h" */
       
    36 
       
    37 GST_DEBUG_CATEGORY (v4l_debug); /* used in v4l_calls.c and v4lsrc_calls.c */
       
    38 
       
    39 static gboolean
       
    40 plugin_init (GstPlugin * plugin)
       
    41 {
       
    42   GST_DEBUG_CATEGORY_INIT (v4l_debug, "v4l", 0, "V4L API calls");
       
    43 
       
    44   if (!gst_element_register (plugin, "v4lsrc", GST_RANK_NONE, GST_TYPE_V4LSRC))
       
    45 /*       !gst_element_register (plugin, "v4ljpegsrc", */
       
    46 /*           GST_RANK_NONE, GST_TYPE_V4LJPEGSRC) || */
       
    47 /*       !gst_element_register (plugin, "v4lmjpegsrc", */
       
    48 /*           GST_RANK_NONE, GST_TYPE_V4LMJPEGSRC) || */
       
    49 /*       !gst_element_register (plugin, "v4lmjpegsink", */
       
    50 /*           GST_RANK_NONE, GST_TYPE_V4LMJPEGSINK)) */
       
    51     return FALSE;
       
    52 
       
    53 #ifdef ENABLE_NLS
       
    54   setlocale (LC_ALL, "");
       
    55   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
       
    56 #endif /* ENABLE_NLS */
       
    57 
       
    58   return TRUE;
       
    59 }
       
    60 
       
    61 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
       
    62     GST_VERSION_MINOR,
       
    63     "video4linux",
       
    64     "elements for Video 4 Linux",
       
    65     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)