2003-10-28 20:25:30 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
|
|
|
*
|
gst/: splitted gsttypefind into gsttypefind, gsttypefindfactory
Original commit message from CVS:
* gst/Makefile.am:
* gst/elements/gstbufferstore.h:
* gst/elements/gsttypefindelement.c:
* gst/elements/gsttypefindelement.h:
* gst/gst.h:
* gst/gsttypefind.c:
* gst/gsttypefind.h:
* gst/gsttypefindfactory.c: (gst_type_find_factory_get_type),
(gst_type_find_factory_class_init), (gst_type_find_factory_init),
(gst_type_find_factory_dispose),
(gst_type_find_factory_unload_thyself),
(gst_type_find_load_plugin), (gst_type_find_factory_get_list),
(gst_type_find_factory_get_caps),
(gst_type_find_factory_get_extensions),
(gst_type_find_factory_call_function):
* gst/gsttypefindfactory.h:
* gst/registries/gstlibxmlregistry.c:
* gst/registries/gstxmlregistry.c:
splitted gsttypefind into gsttypefind, gsttypefindfactory
2005-09-07 12:35:23 +00:00
|
|
|
* gsttypefindelement.h: element that detects type of stream
|
2003-10-28 20:25:30 +00:00
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-10-28 20:25:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_TYPE_FIND_ELEMENT_H__
|
|
|
|
#define __GST_TYPE_FIND_ELEMENT_H__
|
|
|
|
|
|
|
|
#include <gst/gstinfo.h>
|
|
|
|
#include <gst/gstelement.h>
|
2011-03-21 17:13:55 +00:00
|
|
|
#include <gst/base/gstadapter.h>
|
2003-10-28 20:25:30 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2003-10-28 20:25:30 +00:00
|
|
|
#define GST_TYPE_TYPE_FIND_ELEMENT (gst_type_find_element_get_type ())
|
|
|
|
#define GST_TYPE_FIND_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TYPE_FIND_ELEMENT, GstTypeFindElement))
|
|
|
|
#define GST_IS_TYPE_FIND_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TYPE_FIND_ELEMENT))
|
|
|
|
#define GST_TYPE_FIND_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TYPE_FIND_ELEMENT, GstTypeFindElementClass))
|
|
|
|
#define GST_IS_TYPE_FIND_ELEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TYPE_FIND_ELEMENT))
|
|
|
|
#define GST_TYPE_FIND_ELEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TYPE_FIND_ELEMENT, GstTypeFindElementClass))
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
typedef struct _GstTypeFindElement GstTypeFindElement;
|
|
|
|
typedef struct _GstTypeFindElementClass GstTypeFindElementClass;
|
2003-10-28 20:25:30 +00:00
|
|
|
|
2006-01-04 12:41:35 +00:00
|
|
|
/**
|
|
|
|
* GstTypeFindElement:
|
|
|
|
*
|
|
|
|
* Opaque #GstTypeFindElement data structure
|
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstTypeFindElement {
|
|
|
|
GstElement element;
|
2003-10-28 20:25:30 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
GstPad * sink;
|
|
|
|
GstPad * src;
|
2003-10-28 20:25:30 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
guint min_probability;
|
|
|
|
GstCaps * caps;
|
2003-10-28 20:25:30 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
guint mode;
|
2011-03-21 17:13:55 +00:00
|
|
|
GstAdapter * adapter;
|
2006-03-29 10:33:19 +00:00
|
|
|
|
|
|
|
GList * cached_events;
|
2008-04-02 17:21:40 +00:00
|
|
|
GstCaps * force_caps;
|
2012-01-27 15:18:00 +00:00
|
|
|
|
2014-12-10 11:17:11 +00:00
|
|
|
guint64 initial_offset;
|
2014-11-04 18:11:50 +00:00
|
|
|
|
2012-01-27 15:18:00 +00:00
|
|
|
/* Only used when driving the pipeline */
|
|
|
|
gboolean need_segment;
|
2012-09-26 11:19:13 +00:00
|
|
|
gboolean need_stream_start;
|
2012-01-27 15:18:00 +00:00
|
|
|
GstSegment segment;
|
|
|
|
guint64 offset;
|
2003-10-28 20:25:30 +00:00
|
|
|
};
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstTypeFindElementClass {
|
|
|
|
GstElementClass parent_class;
|
2003-10-28 20:25:30 +00:00
|
|
|
|
|
|
|
/* signals */
|
2004-03-15 14:43:35 +00:00
|
|
|
void (*have_type) (GstTypeFindElement *element,
|
2012-03-10 08:25:43 +00:00
|
|
|
guint probability,
|
|
|
|
GstCaps *caps);
|
2003-10-28 20:25:30 +00:00
|
|
|
};
|
|
|
|
|
2012-07-14 19:00:30 +00:00
|
|
|
G_GNUC_INTERNAL GType gst_type_find_element_get_type (void);
|
2003-10-28 20:25:30 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2003-10-28 20:25:30 +00:00
|
|
|
#endif /* __GST_TYPE_FIND_ELEMENT_H__ */
|