diff options
Diffstat (limited to 'gst-libs/gst/tuner')
-rw-r--r-- | gst-libs/gst/tuner/Makefile.am | 49 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tuner-marshal.list | 2 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tuner.c | 404 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tuner.h | 127 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tuner.vcproj | 156 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tunerchannel.c | 114 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tunerchannel.h | 80 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tunernorm.c | 98 | ||||
-rw-r--r-- | gst-libs/gst/tuner/tunernorm.h | 57 |
9 files changed, 0 insertions, 1087 deletions
diff --git a/gst-libs/gst/tuner/Makefile.am b/gst-libs/gst/tuner/Makefile.am deleted file mode 100644 index 0f2b43bc..00000000 --- a/gst-libs/gst/tuner/Makefile.am +++ /dev/null @@ -1,49 +0,0 @@ -# variables used for enum/marshal generation -glib_enum_headers=$(tuner_headers) -glib_enum_define=GST_TUNER -glib_enum_prefix=gst_tuner - -libgsttunerincludedir = \ - $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/tuner - -tuner_headers = \ - tuner.h \ - tunernorm.h \ - tunerchannel.h - -built_sources = \ - tuner-marshal.c \ - tuner-enumtypes.c - -built_headers = \ - tuner-marshal.h \ - tuner-enumtypes.h - -libgsttunerinclude_HEADERS = \ - $(tuner_headers) - -nodist_libgsttunerinclude_HEADERS = \ - tuner-enumtypes.h - -noinst_LTLIBRARIES = libgsttuner.la - -libgsttuner_la_SOURCES = \ - tuner.c \ - tunernorm.c \ - tunerchannel.c - -nodist_libgsttuner_la_SOURCES = \ - $(built_sources) \ - tuner-marshal.h - -libgsttuner_la_CFLAGS = $(GST_CFLAGS) - -BUILT_SOURCES = \ - $(built_sources) \ - $(built_headers) - -EXTRA_DIST = tuner-marshal.list - -CLEANFILES = $(BUILT_SOURCES) - -include $(top_srcdir)/common/glib-gen.mak diff --git a/gst-libs/gst/tuner/tuner-marshal.list b/gst-libs/gst/tuner/tuner-marshal.list deleted file mode 100644 index c99ddc7d..00000000 --- a/gst-libs/gst/tuner/tuner-marshal.list +++ /dev/null @@ -1,2 +0,0 @@ -VOID:OBJECT,ULONG -VOID:OBJECT,INT diff --git a/gst-libs/gst/tuner/tuner.c b/gst-libs/gst/tuner/tuner.c deleted file mode 100644 index 5bfe1ae7..00000000 --- a/gst-libs/gst/tuner/tuner.c +++ /dev/null @@ -1,404 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tuner.c: tuner design virtual class function wrappers - * - * 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. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "tuner.h" -#include "tuner-marshal.h" - -#include <string.h> - -enum -{ - NORM_CHANGED, - CHANNEL_CHANGED, - FREQUENCY_CHANGED, - SIGNAL_CHANGED, - LAST_SIGNAL -}; - -static void gst_tuner_class_init (GstTunerClass * klass); - -static guint gst_tuner_signals[LAST_SIGNAL] = { 0 }; - -GType -gst_tuner_get_type (void) -{ - static GType gst_tuner_type = 0; - - if (!gst_tuner_type) { - static const GTypeInfo gst_tuner_info = { - sizeof (GstTunerClass), - (GBaseInitFunc) gst_tuner_class_init, - NULL, - NULL, - NULL, - NULL, - 0, - 0, - NULL, - }; - - gst_tuner_type = g_type_register_static (G_TYPE_INTERFACE, - "GstTuner", &gst_tuner_info, 0); - g_type_interface_add_prerequisite (gst_tuner_type, - GST_TYPE_IMPLEMENTS_INTERFACE); - } - - return gst_tuner_type; -} - -static void -gst_tuner_class_init (GstTunerClass * klass) -{ - static gboolean initialized = FALSE; - - if (!initialized) { - gst_tuner_signals[NORM_CHANGED] = - g_signal_new ("norm-changed", - GST_TYPE_TUNER, G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerClass, norm_changed), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, GST_TYPE_TUNER_NORM); - gst_tuner_signals[CHANNEL_CHANGED] = - g_signal_new ("channel-changed", - GST_TYPE_TUNER, G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerClass, channel_changed), - NULL, NULL, - g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, - GST_TYPE_TUNER_CHANNEL); - gst_tuner_signals[FREQUENCY_CHANGED] = - g_signal_new ("frequency-changed", - GST_TYPE_TUNER, G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerClass, frequency_changed), - NULL, NULL, - gst_tuner_marshal_VOID__OBJECT_ULONG, G_TYPE_NONE, 2, - GST_TYPE_TUNER_CHANNEL, G_TYPE_ULONG); - gst_tuner_signals[SIGNAL_CHANGED] = - g_signal_new ("signal-changed", - GST_TYPE_TUNER, G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerClass, signal_changed), - NULL, NULL, - gst_tuner_marshal_VOID__OBJECT_INT, G_TYPE_NONE, 2, - GST_TYPE_TUNER_CHANNEL, G_TYPE_INT); - - initialized = TRUE; - } - - /* default virtual functions */ - klass->list_channels = NULL; - klass->set_channel = NULL; - klass->get_channel = NULL; - - klass->list_norms = NULL; - klass->set_norm = NULL; - klass->get_norm = NULL; - - klass->set_frequency = NULL; - klass->get_frequency = NULL; - klass->signal_strength = NULL; -} - -/** - * gst_tuner_list_channels: - * @tuner: the #GstTuner (a #GstElement) to get the channels from. - * - * Retrieve a list of channels (e.g. 'composite', 's-video', ...) - * from the given tuner object. - * - * Returns: a list of channels available on this tuner. - */ - -const GList * -gst_tuner_list_channels (GstTuner * tuner) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->list_channels) { - return klass->list_channels (tuner); - } - - return NULL; -} - -/** - * gst_tuner_set_channel: - * @tuner: the #GstTuner (a #GstElement) that owns the channel. - * @channel: the channel to tune to. - * - * Tunes the object to the given channel. - */ - -void -gst_tuner_set_channel (GstTuner * tuner, GstTunerChannel * channel) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->set_channel) { - klass->set_channel (tuner, channel); - } -} - -/** - * gst_Tuner_get_channel: - * @tuner: the #GstTuner (a #GstElement) to get the current channel from. - * - * Retrieve the current channel from the tuner. - * - * Returns: the current channel of the tuner object. - */ - -GstTunerChannel * -gst_tuner_get_channel (GstTuner * tuner) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->get_channel) { - return klass->get_channel (tuner); - } - - return NULL; -} - -/** - * gst_tuner_get_norms_list: - * @tuner: the #GstTuner (*a #GstElement) to get the list of norms from. - * - * Retrieve a list of available norms on the currently tuned channel - * from the given tuner object. - * - * Returns: A list of norms available on the current channel for this - * tuner object. - */ - -const GList * -gst_tuner_list_norms (GstTuner * tuner) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->list_norms) { - return klass->list_norms (tuner); - } - - return NULL; -} - -/** - * gst_tuner_set_norm: - * @tuner: the #GstTuner (a #GstElement) to set the norm on. - * @norm: the norm to use for the current channel. - * - * Changes the video norm on this tuner to the given norm. - */ - -void -gst_tuner_set_norm (GstTuner * tuner, GstTunerNorm * norm) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->set_norm) { - klass->set_norm (tuner, norm); - } -} - -/** - * gst_tuner_get_norm: - * @tuner: the #GstTuner (a #GstElement) to get the current norm from. - * - * Get the current video norm from the given tuner object for the - * currently selected channel. - * - * Returns: the current norm. - */ - -GstTunerNorm * -gst_tuner_get_norm (GstTuner * tuner) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - if (klass->get_norm) { - return klass->get_norm (tuner); - } - - return NULL; -} - -/** - * gst_tuner_set_frequency: - * @tuner: the #Gsttuner (a #GstElement) that owns the given channel. - * @channel: the #GstTunerChannel to set the frequency on. - * @frequency: the frequency to tune in to. - * - * Sets a tuning frequency on the given tuner/channel. Note that this - * requires the given channel to be a "tuning" channel, which can be - * checked using GST_TUNER_CHANNEL_HAS_FLAG (), with the proper flag - * being GST_TUNER_CHANNEL_FREQUENCY. - */ - -void -gst_tuner_set_frequency (GstTuner * tuner, - GstTunerChannel * channel, gulong frequency) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - g_return_if_fail (GST_TUNER_CHANNEL_HAS_FLAG (channel, - GST_TUNER_CHANNEL_FREQUENCY)); - - if (klass->set_frequency) { - klass->set_frequency (tuner, channel, frequency); - } -} - -/** - * gst_tuner_get_frequency: - * @tuner: the #GstTuner (a #GstElement) that owns the given channel. - * @channel: the #GstTunerChannel to retrieve the frequency from. - * - * Retrieve the current frequency from the given channel. The same - * applies as for set_frequency (): check the flag. - * - * Returns: the current frequency, or 0 on error. - */ - -gulong -gst_tuner_get_frequency (GstTuner * tuner, GstTunerChannel * channel) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - g_return_val_if_fail (GST_TUNER_CHANNEL_HAS_FLAG (channel, - GST_TUNER_CHANNEL_FREQUENCY), 0); - - if (klass->get_frequency) { - return klass->get_frequency (tuner, channel); - } - - return 0; -} - -/** - * gst_tuner_get_signal_strength: - * @tuner: the #GstTuner (a #GstElement) that owns the given channel. - * @channel: the #GstTunerChannel to get the signal strength from. - * - * get the strength of the signal on this channel. Note that this - * requires the current channel to be a "tuning" channel, e.g. a - * channel on which frequency can be set. This can be checked using - * GST_TUNER_CHANNEL_HAS_FLAG (), and the appropriate flag to check - * for is GST_TUNER_CHANNEL_FREQUENCY. - * - * Returns: signal strength, or 0 on error. - */ - -gint -gst_tuner_signal_strength (GstTuner * tuner, GstTunerChannel * channel) -{ - GstTunerClass *klass = GST_TUNER_GET_CLASS (tuner); - - g_return_val_if_fail (GST_TUNER_CHANNEL_HAS_FLAG (channel, - GST_TUNER_CHANNEL_FREQUENCY), 0); - - if (klass->signal_strength) { - return klass->signal_strength (tuner, channel); - } - - return 0; -} - -GstTunerNorm * -gst_tuner_find_norm_by_name (GstTuner * tuner, gchar * norm) -{ - GList *walk; - - g_return_val_if_fail (GST_TUNER (tuner), NULL); - g_return_val_if_fail (norm != NULL, NULL); - - walk = (GList *) gst_tuner_list_norms (tuner); - while (walk) { - if (strcmp (GST_TUNER_NORM (walk->data)->label, norm) == 0) - return GST_TUNER_NORM (walk->data); - walk = g_list_next (walk); - } - return NULL; -} - -GstTunerChannel * -gst_tuner_find_channel_by_name (GstTuner * tuner, gchar * channel) -{ - GList *walk; - - g_return_val_if_fail (GST_TUNER (tuner), NULL); - g_return_val_if_fail (channel != NULL, NULL); - - walk = (GList *) gst_tuner_list_channels (tuner); - while (walk) { - if (strcmp (GST_TUNER_CHANNEL (walk->data)->label, channel) == 0) - return GST_TUNER_CHANNEL (walk->data); - walk = g_list_next (walk); - } - return NULL; -} - -void -gst_tuner_channel_changed (GstTuner * tuner, GstTunerChannel * channel) -{ - g_return_if_fail (GST_IS_TUNER (tuner)); - g_return_if_fail (GST_IS_TUNER_CHANNEL (channel)); - - g_signal_emit (G_OBJECT (tuner), - gst_tuner_signals[CHANNEL_CHANGED], 0, channel); -} - -void -gst_tuner_norm_changed (GstTuner * tuner, GstTunerNorm * norm) -{ - g_return_if_fail (GST_IS_TUNER (tuner)); - g_return_if_fail (GST_IS_TUNER_NORM (norm)); - - g_signal_emit (G_OBJECT (tuner), gst_tuner_signals[NORM_CHANGED], 0, norm); -} - -void -gst_tuner_frequency_changed (GstTuner * tuner, - GstTunerChannel * channel, gulong frequency) -{ - g_return_if_fail (GST_IS_TUNER (tuner)); - g_return_if_fail (GST_IS_TUNER_CHANNEL (channel)); - - g_signal_emit (G_OBJECT (tuner), - gst_tuner_signals[FREQUENCY_CHANGED], 0, channel, frequency); - - g_signal_emit_by_name (G_OBJECT (channel), "frequency_changed", frequency); -} - -void -gst_tuner_signal_changed (GstTuner * tuner, - GstTunerChannel * channel, gint signal) -{ - g_return_if_fail (GST_IS_TUNER (tuner)); - g_return_if_fail (GST_IS_TUNER_CHANNEL (channel)); - - g_signal_emit (G_OBJECT (tuner), - gst_tuner_signals[SIGNAL_CHANGED], 0, channel, signal); - - g_signal_emit_by_name (G_OBJECT (channel), "signal_changed", signal); -} diff --git a/gst-libs/gst/tuner/tuner.h b/gst-libs/gst/tuner/tuner.h deleted file mode 100644 index 8c935389..00000000 --- a/gst-libs/gst/tuner/tuner.h +++ /dev/null @@ -1,127 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tuner.h: tuner interface design - * - * 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_TUNER_H__ -#define __GST_TUNER_H__ - -#include <gst/gst.h> -#include <gst/tuner/tunernorm.h> -#include <gst/tuner/tunerchannel.h> -#include <gst/tuner/tuner-enumtypes.h> - -G_BEGIN_DECLS - -#define GST_TYPE_TUNER \ - (gst_tuner_get_type ()) -#define GST_TUNER(obj) \ - (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TUNER, GstTuner)) -#define GST_TUNER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TUNER, GstTunerClass)) -#define GST_IS_TUNER(obj) \ - (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER)) -#define GST_IS_TUNER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER)) -#define GST_TUNER_GET_CLASS(inst) \ - (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_TUNER, GstTunerClass)) - -typedef struct _GstTuner GstTuner; - -typedef struct _GstTunerClass { - GTypeInterface klass; - - /* virtual functions */ - const GList * (* list_channels) (GstTuner *tuner); - void (* set_channel) (GstTuner *tuner, - GstTunerChannel *channel); - GstTunerChannel * - (* get_channel) (GstTuner *tuner); - - const GList * (* list_norms) (GstTuner *tuner); - void (* set_norm) (GstTuner *tuner, - GstTunerNorm *norm); - GstTunerNorm *(* get_norm) (GstTuner *tuner); - - void (* set_frequency) (GstTuner *tuner, - GstTunerChannel *channel, - gulong frequency); - gulong (* get_frequency) (GstTuner *tuner, - GstTunerChannel *channel); - gint (* signal_strength) (GstTuner *tuner, - GstTunerChannel *channel); - - /* signals */ - void (*channel_changed) (GstTuner *tuner, - GstTunerChannel *channel); - void (*norm_changed) (GstTuner *tuner, - GstTunerNorm *norm); - void (*frequency_changed) (GstTuner *tuner, - GstTunerChannel *channel, - gulong frequency); - void (*signal_changed) (GstTuner *tuner, - GstTunerChannel *channel, - gint signal); - - gpointer _gst_reserved[GST_PADDING]; -} GstTunerClass; - -GType gst_tuner_get_type (void); - -/* virtual class function wrappers */ -const GList * gst_tuner_list_channels (GstTuner *tuner); -void gst_tuner_set_channel (GstTuner *tuner, - GstTunerChannel *channel); -GstTunerChannel * - gst_tuner_get_channel (GstTuner *tuner); - -const GList * gst_tuner_list_norms (GstTuner *tuner); -void gst_tuner_set_norm (GstTuner *tuner, - GstTunerNorm *channel); -GstTunerNorm * gst_tuner_get_norm (GstTuner *tuner); - -void gst_tuner_set_frequency (GstTuner *tuner, - GstTunerChannel *channel, - gulong frequency); -gulong gst_tuner_get_frequency (GstTuner *tuner, - GstTunerChannel *channel); -gint gst_tuner_signal_strength (GstTuner *tuner, - GstTunerChannel *channel); - -/* helper functions */ -GstTunerNorm * gst_tuner_find_norm_by_name (GstTuner *tuner, - gchar *norm); -GstTunerChannel *gst_tuner_find_channel_by_name (GstTuner *tuner, - gchar *channel); - -/* trigger signals */ -void gst_tuner_channel_changed (GstTuner *tuner, - GstTunerChannel *channel); -void gst_tuner_norm_changed (GstTuner *tuner, - GstTunerNorm *norm); -void gst_tuner_frequency_changed (GstTuner *tuner, - GstTunerChannel *channel, - gulong frequency); -void gst_tuner_signal_changed (GstTuner *tuner, - GstTunerChannel *channel, - gint signal); - -G_END_DECLS - -#endif /* __GST_TUNER_H__ */ diff --git a/gst-libs/gst/tuner/tuner.vcproj b/gst-libs/gst/tuner/tuner.vcproj deleted file mode 100644 index d69b2c60..00000000 --- a/gst-libs/gst/tuner/tuner.vcproj +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="7.10" - Name="tuner" - ProjectGUID="{979C216F-0ACF-4956-AE00-055A42D6789C}" - RootNamespace="tuner" - Keyword="Win32Proj"> - <Platforms> - <Platform - Name="Win32"/> - </Platforms> - <Configurations> - <Configuration - Name="Debug|Win32" - OutputDirectory="../../../win32/Debug" - IntermediateDirectory="../../../win32/Debug" - ConfigurationType="2" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="../../../../gstreamer/win32;../../../../gstreamer;../../../../gstreamer/libs;../../../../glib;../../../../glib/glib;../../../../glib/gmodule;"../../../gst-libs";../../../../popt/include;../../../../libxml2/include/libxml2" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;HAVE_CONFIG_H;_USE_MATH_DEFINES" - MinimalRebuild="TRUE" - BasicRuntimeChecks="3" - RuntimeLibrary="3" - UsePrecompiledHeader="0" - WarningLevel="3" - Detect64BitPortabilityProblems="TRUE" - DebugInformationFormat="4"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="glib-2.0.lib gmodule-2.0.lib gthread-2.0.lib gobject-2.0.lib libgstreamer.lib gstbytestream.lib iconv.lib intl.lib" - OutputFile="$(OutDir)/gsttuner.dll" - LinkIncremental="2" - AdditionalLibraryDirectories="../../../../gstreamer/win32/Debug;../../../../glib/glib;../../../../glib/gmodule;../../../../glib/gthread;../../../../glib/gobject;../../../../gettext/lib;../../../../libiconv/lib" - ModuleDefinitionFile="tuner.def" - GenerateDebugInformation="TRUE" - ProgramDatabaseFile="$(OutDir)/tuner.pdb" - SubSystem="2" - OptimizeReferences="2" - ImportLibrary="$(OutDir)/gsttuner.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool"/> - <Tool - Name="VCPostBuildEventTool" - CommandLine="copy /Y $(TargetPath) c:\gstreamer\plugins"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - <Configuration - Name="Release|Win32" - OutputDirectory="../../../win32/Release" - IntermediateDirectory="../../../win32/Release" - ConfigurationType="2" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="../../../../gstreamer/win32;../../../../gstreamer;../../../../gstreamer/libs;../../../../glib;../../../../glib/glib;../../../../glib/gmodule;"../../../gst-libs";../../../../popt/include;../../../../libxml2/include/libxml2" - PreprocessorDefinitions="WIN32;NDEBUG;GST_DISABLE_GST_DEBUG;_WINDOWS;_USRDLL;HAVE_CONFIG_H;_USE_MATH_DEFINES" - RuntimeLibrary="2" - UsePrecompiledHeader="0" - WarningLevel="3" - Detect64BitPortabilityProblems="TRUE" - DebugInformationFormat="3"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="glib-2.0.lib gmodule-2.0.lib gthread-2.0.lib gobject-2.0.lib libgstreamer.lib gstbytestream.lib iconv.lib intl.lib" - OutputFile="$(OutDir)/gsttuner.dll" - LinkIncremental="1" - AdditionalLibraryDirectories="../../../../gstreamer/win32/Release;../../../../glib/glib;../../../../glib/gmodule;../../../../glib/gthread;../../../../glib/gobject;../../../../gettext/lib;../../../../libiconv/lib" - ModuleDefinitionFile="tuner.def" - GenerateDebugInformation="TRUE" - SubSystem="2" - OptimizeReferences="2" - EnableCOMDATFolding="2" - ImportLibrary="$(OutDir)/gsttuner.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool"/> - <Tool - Name="VCPostBuildEventTool" - CommandLine="copy /Y $(TargetPath) c:\gstreamer\plugins"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - </Configurations> - <References> - </References> - <Files> - <Filter - Name="Source Files" - Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" - UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> - <File - RelativePath=".\tuner.c"> - </File> - <File - RelativePath=".\tunerchannel.c"> - </File> - <File - RelativePath=".\tunernorm.c"> - </File> - </Filter> - <Filter - Name="Header Files" - Filter="h;hpp;hxx;hm;inl;inc;xsd" - UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> - <File - RelativePath=".\tuner.h"> - </File> - <File - RelativePath=".\tunerchannel.h"> - </File> - <File - RelativePath=".\tunernorm.h"> - </File> - </Filter> - </Files> - <Globals> - </Globals> -</VisualStudioProject> diff --git a/gst-libs/gst/tuner/tunerchannel.c b/gst-libs/gst/tuner/tunerchannel.c deleted file mode 100644 index 1826a3e2..00000000 --- a/gst-libs/gst/tuner/tunerchannel.c +++ /dev/null @@ -1,114 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tunerchannel.c: tuner channel object design - * - * 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. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "tunerchannel.h" - -enum -{ - /* FILL ME */ - SIGNAL_FREQUENCY_CHANGED, - SIGNAL_SIGNAL_CHANGED, - LAST_SIGNAL -}; - -static void gst_tuner_channel_class_init (GstTunerChannelClass * klass); -static void gst_tuner_channel_init (GstTunerChannel * channel); -static void gst_tuner_channel_dispose (GObject * object); - -static GObjectClass *parent_class = NULL; -static guint signals[LAST_SIGNAL] = { 0 }; - -GType -gst_tuner_channel_get_type (void) -{ - static GType gst_tuner_channel_type = 0; - - if (!gst_tuner_channel_type) { - static const GTypeInfo tuner_channel_info = { - sizeof (GstTunerChannelClass), - NULL, - NULL, - (GClassInitFunc) gst_tuner_channel_class_init, - NULL, - NULL, - sizeof (GstTunerChannel), - 0, - (GInstanceInitFunc) gst_tuner_channel_init, - NULL - }; - - gst_tuner_channel_type = - g_type_register_static (G_TYPE_OBJECT, - "GstTunerChannel", &tuner_channel_info, 0); - } - - return gst_tuner_channel_type; -} - -static void -gst_tuner_channel_class_init (GstTunerChannelClass * klass) -{ - GObjectClass *object_klass = (GObjectClass *) klass; - - parent_class = g_type_class_ref (G_TYPE_OBJECT); - - signals[SIGNAL_FREQUENCY_CHANGED] = - g_signal_new ("frequency-changed", G_TYPE_FROM_CLASS (klass), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerChannelClass, - frequency_changed), - NULL, NULL, g_cclosure_marshal_VOID__ULONG, G_TYPE_NONE, 1, G_TYPE_ULONG); - signals[SIGNAL_SIGNAL_CHANGED] = - g_signal_new ("signal-changed", G_TYPE_FROM_CLASS (klass), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (GstTunerChannelClass, - signal_changed), - NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); - - object_klass->dispose = gst_tuner_channel_dispose; -} - -static void -gst_tuner_channel_init (GstTunerChannel * channel) -{ - channel->label = NULL; - channel->flags = 0; - channel->min_frequency = channel->max_frequency = 0; - channel->min_signal = channel->max_signal = 0; -} - -static void -gst_tuner_channel_dispose (GObject * object) -{ - GstTunerChannel *channel = GST_TUNER_CHANNEL (object); - - if (channel->label) { - g_free (channel->label); - channel->label = NULL; - } - - if (parent_class->dispose) - parent_class->dispose (object); -} diff --git a/gst-libs/gst/tuner/tunerchannel.h b/gst-libs/gst/tuner/tunerchannel.h deleted file mode 100644 index b38dc279..00000000 --- a/gst-libs/gst/tuner/tunerchannel.h +++ /dev/null @@ -1,80 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tunerchannel.h: tuner channel object design - * - * 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_TUNER_CHANNEL_H__ -#define __GST_TUNER_CHANNEL_H__ - -#include <gst/gst.h> - -G_BEGIN_DECLS - -#define GST_TYPE_TUNER_CHANNEL \ - (gst_tuner_channel_get_type ()) -#define GST_TUNER_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TUNER_CHANNEL, \ - GstTunerChannel)) -#define GST_TUNER_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TUNER_CHANNEL, \ - GstTunerChannelClass)) -#define GST_IS_TUNER_CHANNEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_CHANNEL)) -#define GST_IS_TUNER_CHANNEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_CHANNEL)) - -typedef enum { - GST_TUNER_CHANNEL_INPUT = (1<<0), - GST_TUNER_CHANNEL_OUTPUT = (1<<1), - GST_TUNER_CHANNEL_FREQUENCY = (1<<2), - GST_TUNER_CHANNEL_AUDIO = (1<<3) -} GstTunerChannelFlags; - -#define GST_TUNER_CHANNEL_HAS_FLAG(channel, flag) \ - ((channel)->flags & flag) - -typedef struct _GstTunerChannel { - GObject parent; - - gchar *label; - GstTunerChannelFlags flags; - gfloat freq_multiplicator; - gulong min_frequency, - max_frequency; - gint min_signal, - max_signal; -} GstTunerChannel; - -typedef struct _GstTunerChannelClass { - GObjectClass parent; - - /* signals */ - void (*frequency_changed) (GstTunerChannel *channel, - gulong frequency); - void (*signal_changed) (GstTunerChannel *channel, - gint signal); - - gpointer _gst_reserved[GST_PADDING]; -} GstTunerChannelClass; - -GType gst_tuner_channel_get_type (void); - -G_END_DECLS - -#endif /* __GST_TUNER_CHANNEL_H__ */ diff --git a/gst-libs/gst/tuner/tunernorm.c b/gst-libs/gst/tuner/tunernorm.c deleted file mode 100644 index 2eb973de..00000000 --- a/gst-libs/gst/tuner/tunernorm.c +++ /dev/null @@ -1,98 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tunernorm.c: tuner norm object design - * - * 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. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "tunernorm.h" - -enum -{ - /* FILL ME */ - LAST_SIGNAL -}; - -static void gst_tuner_norm_class_init (GstTunerNormClass * klass); -static void gst_tuner_norm_init (GstTunerNorm * norm); -static void gst_tuner_norm_dispose (GObject * object); - -static GObjectClass *parent_class = NULL; - -/*static guint signals[LAST_SIGNAL] = { 0 };*/ - -GType -gst_tuner_norm_get_type (void) -{ - static GType gst_tuner_norm_type = 0; - - if (!gst_tuner_norm_type) { - static const GTypeInfo tuner_norm_info = { - sizeof (GstTunerNormClass), - NULL, - NULL, - (GClassInitFunc) gst_tuner_norm_class_init, - NULL, - NULL, - sizeof (GstTunerNorm), - 0, - (GInstanceInitFunc) gst_tuner_norm_init, - NULL - }; - - gst_tuner_norm_type = - g_type_register_static (G_TYPE_OBJECT, - "GstTunerNorm", &tuner_norm_info, 0); - } - - return gst_tuner_norm_type; -} - -static void -gst_tuner_norm_class_init (GstTunerNormClass * klass) -{ - GObjectClass *object_klass = (GObjectClass *) klass; - - parent_class = g_type_class_ref (G_TYPE_OBJECT); - - object_klass->dispose = gst_tuner_norm_dispose; -} - -static void -gst_tuner_norm_init (GstTunerNorm * norm) -{ - norm->label = NULL; - norm->fps = 0.; -} - -static void -gst_tuner_norm_dispose (GObject * object) -{ - GstTunerNorm *norm = GST_TUNER_NORM (object); - - if (norm->label) { - g_free (norm->label); - norm->label = NULL; - } - - if (parent_class->dispose) - parent_class->dispose (object); -} diff --git a/gst-libs/gst/tuner/tunernorm.h b/gst-libs/gst/tuner/tunernorm.h deleted file mode 100644 index cd89e1ee..00000000 --- a/gst-libs/gst/tuner/tunernorm.h +++ /dev/null @@ -1,57 +0,0 @@ -/* GStreamer Tuner - * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> - * - * tunernorm.h: tuner norm object design - * - * 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_TUNER_NORM_H__ -#define __GST_TUNER_NORM_H__ - -#include <gst/gst.h> - -G_BEGIN_DECLS - -#define GST_TYPE_TUNER_NORM \ - (gst_tuner_norm_get_type ()) -#define GST_TUNER_NORM(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TUNER_NORM, GstTunerNorm)) -#define GST_TUNER_NORM_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TUNER_NORM, GstTunerNormClass)) -#define GST_IS_TUNER_NORM(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TUNER_NORM)) -#define GST_IS_TUNER_NORM_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TUNER_NORM)) - -typedef struct _GstTunerNorm { - GObject parent; - - gchar *label; - gfloat fps; -} GstTunerNorm; - -typedef struct _GstTunerNormClass { - GObjectClass parent; - - gpointer _gst_reserved[GST_PADDING]; -} GstTunerNormClass; - -GType gst_tuner_norm_get_type (void); - -G_END_DECLS - -#endif /* __GST_TUNER_NORM_H__ */ |