|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
Packit Service |
963350 |
* 2000 Wim Taymans <wtay@chello.be>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gsttee.h: Header for GstTee element
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#ifndef __GST_TEE_H__
|
|
Packit Service |
963350 |
#define __GST_TEE_H__
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/gst.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_BEGIN_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define GST_TYPE_TEE \
|
|
Packit Service |
963350 |
(gst_tee_get_type())
|
|
Packit Service |
963350 |
#define GST_TEE(obj) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TEE,GstTee))
|
|
Packit Service |
963350 |
#define GST_TEE_CLASS(klass) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TEE,GstTeeClass))
|
|
Packit Service |
963350 |
#define GST_IS_TEE(obj) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TEE))
|
|
Packit Service |
963350 |
#define GST_IS_TEE_CLASS(klass) \
|
|
Packit Service |
963350 |
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TEE))
|
|
Packit Service |
963350 |
#define GST_TEE_CAST(obj) ((GstTee*) obj)
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
typedef struct _GstTee GstTee;
|
|
Packit Service |
963350 |
typedef struct _GstTeeClass GstTeeClass;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstTeePullMode:
|
|
Packit Service |
963350 |
* @GST_TEE_PULL_MODE_NEVER: Never activate in pull mode.
|
|
Packit Service |
963350 |
* @GST_TEE_PULL_MODE_SINGLE: Only one src pad can be active in pull mode.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* The different ways that tee can behave in pull mode. @TEE_PULL_MODE_NEVER
|
|
Packit Service |
963350 |
* disables pull mode.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef enum {
|
|
Packit Service |
963350 |
GST_TEE_PULL_MODE_NEVER,
|
|
Packit Service |
963350 |
GST_TEE_PULL_MODE_SINGLE,
|
|
Packit Service |
963350 |
} GstTeePullMode;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/**
|
|
Packit Service |
963350 |
* GstTee:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Opaque #GstTee data structure.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
struct _GstTee {
|
|
Packit Service |
963350 |
GstElement element;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*< private >*/
|
|
Packit Service |
963350 |
GstPad *sinkpad;
|
|
Packit Service |
963350 |
GstPad *allocpad;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GHashTable *pad_indexes;
|
|
Packit Service |
963350 |
guint next_pad_index;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gboolean has_chain;
|
|
Packit Service |
963350 |
gboolean silent;
|
|
Packit Service |
963350 |
gchar *last_message;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GstPadMode sink_mode;
|
|
Packit Service |
963350 |
GstTeePullMode pull_mode;
|
|
Packit Service |
963350 |
GstPad *pull_pad;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gboolean allow_not_linked;
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
struct _GstTeeClass {
|
|
Packit Service |
963350 |
GstElementClass parent_class;
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_GNUC_INTERNAL GType gst_tee_get_type (void);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_END_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#endif /* __GST_TEE_H__ */
|