summaryrefslogtreecommitdiffstats
path: root/gst/debugutils/fpsdisplaysink.h
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-04-16 18:36:13 +0300
committerStefan Kost <ensonic@users.sf.net>2009-04-16 18:39:29 +0300
commite01373662a135eb01be6b7c9466a62aaf7e0f96f (patch)
tree31b1be8d47db57bb8720df1f1308785e07251622 /gst/debugutils/fpsdisplaysink.h
parent78b208125ab915c94f90806442b33cd4eb3d85e1 (diff)
downloadgst-plugins-bad-e01373662a135eb01be6b7c9466a62aaf7e0f96f.tar.gz
gst-plugins-bad-e01373662a135eb01be6b7c9466a62aaf7e0f96f.tar.bz2
gst-plugins-bad-e01373662a135eb01be6b7c9466a62aaf7e0f96f.zip
fpsdisplaysink: add a initial port of a sink with fps display
This now works with a event probe. Needs some extra work.
Diffstat (limited to 'gst/debugutils/fpsdisplaysink.h')
-rw-r--r--gst/debugutils/fpsdisplaysink.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/gst/debugutils/fpsdisplaysink.h b/gst/debugutils/fpsdisplaysink.h
new file mode 100644
index 00000000..c6230075
--- /dev/null
+++ b/gst/debugutils/fpsdisplaysink.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2009 Nokia Corporation <multimedia@maemo.org>
+ * 2006 Zeeshan Ali <zeeshan.ali@nokia.com>.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __FPS_DISPLAY_SINK_H__
+#define __FPS_DISPLAY_SINK_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define FPS_TYPE_DISPLAY_SINK \
+ (fps_display_sink_get_type())
+#define FPS_DISPLAY_SINK(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),FPS_TYPE_DISPLAY_SINK,FPSDisplaySink))
+#define FPS_DISPLAY_SINK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),FPS_TYPE_DISPLAY_SINK,FPSDisplaySinkClass))
+#define FPS_IS_DISPLAY_SINK(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),FPS_TYPE_DISPLAY_SINK))
+#define FPS_IS_DISPLAY_SINK_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),FPS_TYPE_DISPLAY_SINK))
+
+GType fps_display_sink_get_type (void);
+
+typedef struct _FPSDisplaySink FPSDisplaySink;
+typedef struct _FPSDisplaySinkClass FPSDisplaySinkClass;
+
+typedef struct _FPSDisplaySinkPrivate FPSDisplaySinkPrivate;
+
+struct _FPSDisplaySink
+{
+ GstBin bin; /* we extend GstBin */
+ FPSDisplaySinkPrivate *priv;
+};
+
+struct _FPSDisplaySinkClass
+{
+ GstBinClass parent_class;
+};
+
+G_END_DECLS
+
+#endif /* __FPS_DISPLAY_SINK_H__ */