Commit e7a63c34 authored by Alexey Chernov's avatar Alexey Chernov Committed by Tim-Philipp Müller

v4l2: new v4l2radio element to control analog radio devices

https://bugzilla.gnome.org/show_bug.cgi?id=640118
parent 0a39cec7
......@@ -229,6 +229,7 @@ EXTRA_HFILES = \
$(top_srcdir)/sys/osxvideo/osxvideosink.h \
$(top_srcdir)/sys/v4l2/gstv4l2src.h \
$(top_srcdir)/sys/v4l2/gstv4l2sink.h \
$(top_srcdir)/sys/v4l2/gstv4l2radio.h \
$(top_srcdir)/sys/waveform/gstwaveformsink.h \
$(top_srcdir)/sys/ximage/gstximagesrc.h
......
......@@ -154,6 +154,7 @@
<xi:include href="xml/element-udpsink.xml" />
<xi:include href="xml/element-v4l2src.xml" />
<xi:include href="xml/element-v4l2sink.xml" />
<xi:include href="xml/element-v4l2radio.xml" />
<xi:include href="xml/element-vertigotv.xml" />
<xi:include href="xml/element-videobalance.xml" />
<xi:include href="xml/element-videobox.xml" />
......
......@@ -2048,6 +2048,20 @@ GST_IS_V4L2SINK_CLASS
gst_v4l2sink_get_type
</SECTION>
<SECTION>
<FILE>element-v4l2radio</FILE>
<TITLE>v4l2radio</TITLE>
GstV4l2Radio
<SUBSECTION Standard>
GstV4l2RadioClass
GST_V4L2RADIO
GST_IS_V4L2RADIO
GST_TYPE_V4L2RADIO
GST_V4L2RADIO_CLASS
GST_IS_V4L2RADIO_CLASS
gst_v4l2radio_get_type
</SECTION>
<SECTION>
<FILE>element-waveformsink</FILE>
<TITLE>waveformsink</TITLE>
......
......@@ -24,5 +24,12 @@
</caps>
</pads>
</element>
<element>
<name>v4l2radio</name>
<longname>Radio (video4linux2) Tuner</longname>
<class>Tuner</class>
<description>Controls a Video4Linux2 radio device</description>
<author>Alexey Chernov &lt;4ernov@gmail.com&gt;</author>
</element>
</elements>
</plugin>
\ No newline at end of file
</plugin>
......@@ -13,6 +13,7 @@ libgstvideo4linux2_la_SOURCES = gstv4l2.c \
gstv4l2object.c \
gstv4l2bufferpool.c \
gstv4l2src.c \
gstv4l2radio.c \
gstv4l2tuner.c \
gstv4l2vidorient.c \
v4l2_calls.c \
......@@ -51,6 +52,7 @@ noinst_HEADERS = \
gstv4l2object.h \
gstv4l2sink.h \
gstv4l2src.h \
gstv4l2radio.h \
gstv4l2tuner.h \
gstv4l2vidorient.h \
gstv4l2xoverlay.h \
......
......@@ -35,6 +35,7 @@
#ifdef HAVE_EXPERIMENTAL
#include "gstv4l2sink.h"
#endif
#include "gstv4l2radio.h"
/* #include "gstv4l2jpegsrc.h" */
/* #include "gstv4l2mjpegsrc.h" */
/* #include "gstv4l2mjpegsink.h" */
......@@ -58,6 +59,8 @@ plugin_init (GstPlugin * plugin)
!gst_element_register (plugin, "v4l2sink", GST_RANK_NONE,
GST_TYPE_V4L2SINK) ||
#endif
!gst_element_register (plugin, "v4l2radio", GST_RANK_NONE,
GST_TYPE_V4L2RADIO) ||
/* !gst_element_register (plugin, "v4l2jpegsrc", */
/* GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
/* !gst_element_register (plugin, "v4l2mjpegsrc", */
......
This diff is collapsed.
/* GStreamer v4l2 radio tuner element
* Copyright (C) 2010, 2011 Alexey Chernov <4ernov@gmail.com>
*
* gstv4l2radio.h - V4L2 radio tuner element
*
* 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
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_V4L2RADIO_H__
#define __GST_V4L2RADIO_H__
#include "gstv4l2object.h"
G_BEGIN_DECLS
#define GST_TYPE_V4L2RADIO \
(gst_v4l2radio_get_type())
#define GST_V4L2RADIO(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_V4L2RADIO,GstV4l2Radio))
#define GST_V4L2RADIO_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_V4L2RADIO,GstV4l2RadioClass))
#define GST_IS_V4L2RADIO(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_V4L2RADIO))
#define GST_IS_V4L2RADIO_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_V4L2RADIO))
typedef struct _GstV4l2Radio GstV4l2Radio;
typedef struct _GstV4l2RadioClass GstV4l2RadioClass;
/**
* GstV4l2Radio:
* @v4l2object: private #GstV4l2Object
*
* Opaque video4linux2 radio tuner element
*/
struct _GstV4l2Radio
{
GstElement element;
/*< private >*/
GstV4l2Object * v4l2object;
};
struct _GstV4l2RadioClass
{
GstElementClass parent_class;
GList *v4l2_class_devices;
};
GType gst_v4l2radio_get_type (void);
G_END_DECLS
#endif /* __GST_V4L2RADIO_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment