Commit e0137366 authored by Stefan Kost's avatar Stefan Kost

fpsdisplaysink: add a initial port of a sink with fps display

This now works with a event probe. Needs some extra work.
parent 78b20812
......@@ -266,6 +266,7 @@ AG_GST_CHECK_PLUGIN(legacyresample)
AG_GST_CHECK_PLUGIN(bayer)
AG_GST_CHECK_PLUGIN(cdxaparse)
AG_GST_CHECK_PLUGIN(dccp)
AG_GST_CHECK_PLUGIN(debugutils)
AG_GST_CHECK_PLUGIN(deinterlace)
AG_GST_CHECK_PLUGIN(deinterlace2)
AG_GST_CHECK_PLUGIN(dtmf)
......@@ -1513,6 +1514,7 @@ gst/bayer/Makefile
gst/camerabin/Makefile
gst/cdxaparse/Makefile
gst/dccp/Makefile
gst/debugutils/Makefile
gst/deinterlace/Makefile
gst/deinterlace2/Makefile
gst/dtmf/Makefile
......
plugin_LTLIBRARIES = libgstfpsdisplaysink.la
libgstfpsdisplaysink_la_SOURCES = fpsdisplaysink.c
libgstfpsdisplaysink_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
libgstfpsdisplaysink_la_LIBADD = $(GST_BASE_LIBS) -lgstinterfaces-$(GST_MAJORMINOR)
libgstfpsdisplaysink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstfpsdisplaysink_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = fpsdisplaysink.h
This diff is collapsed.
/*
* 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__ */
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