diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-21 22:46:00 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-21 22:46:00 +0100 |
commit | 25a54fc391b06e8b9f7e0c8cdb25ef5b1bcd3551 (patch) | |
tree | 65e2e77df33d35858f5369eaf0ef383a07a26c32 /tests/examples/camerabin | |
parent | 3b1dd2683db1dbafe6f3dfa00d919f8f20d36297 (diff) | |
download | gstreamer-plugins-bad-25a54fc391b06e8b9f7e0c8cdb25ef5b1bcd3551.tar.gz |
gst-camera: Add a header declaring the functions from the ui file
Diffstat (limited to 'tests/examples/camerabin')
-rw-r--r-- | tests/examples/camerabin/Makefile.am | 2 | ||||
-rw-r--r-- | tests/examples/camerabin/gst-camera.c | 2 | ||||
-rw-r--r-- | tests/examples/camerabin/gst-camera.h | 105 |
3 files changed, 108 insertions, 1 deletions
diff --git a/tests/examples/camerabin/Makefile.am b/tests/examples/camerabin/Makefile.am index e082c2450..afd4c3616 100644 --- a/tests/examples/camerabin/Makefile.am +++ b/tests/examples/camerabin/Makefile.am @@ -4,7 +4,7 @@ if HAVE_GTK GST_CAMERABIN_GTK_EXAMPLES = gst-camera -gst_camera_SOURCES = gst-camera.c +gst_camera_SOURCES = gst-camera.h gst-camera.c gst_camera_CFLAGS = \ -I$(top_builddir)/gst-libs \ $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \ diff --git a/tests/examples/camerabin/gst-camera.c b/tests/examples/camerabin/gst-camera.c index 516229bb6..52c72c6b3 100644 --- a/tests/examples/camerabin/gst-camera.c +++ b/tests/examples/camerabin/gst-camera.c @@ -29,6 +29,8 @@ # include "config.h" #endif +#include "gst-camera.h" + #include <gst/gst.h> #include <gst/interfaces/xoverlay.h> #include <gst/interfaces/colorbalance.h> diff --git a/tests/examples/camerabin/gst-camera.h b/tests/examples/camerabin/gst-camera.h new file mode 100644 index 000000000..b027ecd23 --- /dev/null +++ b/tests/examples/camerabin/gst-camera.h @@ -0,0 +1,105 @@ +/* + * GStreamer + * Copyright (C) 2008 Nokia Corporation <multimedia@maemo.org> + * + * 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. + */ +/* + * This is a demo application to test the camerabin element. + * If you have question don't hesitate in contact me edgard.lima@indt.org.br + */ + +#ifndef __GST_CAMERA_BIN_H__ +#define __GST_CAMERA_BIN_H__ + +#include <gtk/gtk.h> + +void +on_windowMain_delete_event (GtkWidget * widget, GdkEvent * event, gpointer data); + +void +on_buttonShot_clicked (GtkButton * button, gpointer user_data); + +void +on_buttonPause_clicked (GtkButton * button, gpointer user_data); + +void +on_drawingareaView_realize (GtkWidget * widget, gpointer data); + +gboolean +on_drawingareaView_configure_event (GtkWidget * widget, + GdkEventConfigure * event, gpointer data); + +void +on_comboboxResolution_changed (GtkComboBox * widget, gpointer user_data); + +void +on_radiobuttonImageCapture_toggled (GtkToggleButton * togglebutton, + gpointer user_data); + +void +on_radiobuttonVideoCapture_toggled (GtkToggleButton * togglebutton, + gpointer user_data); + +void +on_rbBntVidEff_toggled (GtkToggleButton * togglebutton, gchar * effect); + +void +on_rbBntVidEffNone_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffEdge_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffAging_toggled (GtkToggleButton * togglebutton, gpointer user_data); + +void +on_rbBntVidEffDice_toggled (GtkToggleButton * togglebutton, gpointer user_data); + +void +on_rbBntVidEffWarp_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffShagadelic_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffVertigo_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffRev_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_rbBntVidEffQuark_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_chkbntMute_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_chkbtnRawMsg_toggled (GtkToggleButton * togglebutton, gpointer data); + +void +on_hscaleZoom_value_changed (GtkRange * range, gpointer user_data); + +void +on_color_control_value_changed (GtkRange * range, gpointer user_data); + +gboolean +on_key_released (GtkWidget * widget, GdkEventKey * event, gpointer user_data); + +gboolean +on_key_pressed (GtkWidget * widget, GdkEventKey * event, gpointer user_data); + +#endif /* __GST_CAMERA_BIN_H__ */ |