|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) <2007> Wim Taymans <wim.taymans@gmail.com>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_PLAY_SINK_H__
|
|
Packit |
971217 |
#define __GST_PLAY_SINK_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include "gstplay-enum.h"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_PLAY_SINK \
|
|
Packit |
971217 |
(gst_play_sink_get_type())
|
|
Packit |
971217 |
#define GST_PLAY_SINK(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PLAY_SINK, GstPlaySink))
|
|
Packit |
971217 |
#define GST_PLAY_SINK_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAY_SINK, GstPlaySinkClass))
|
|
Packit |
971217 |
#define GST_IS_PLAY_SINK(obj) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLAY_SINK))
|
|
Packit |
971217 |
#define GST_IS_PLAY_SINK_CLASS(klass) \
|
|
Packit |
971217 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY_SINK))
|
|
Packit |
971217 |
#define GST_PLAY_SINK_CAST(obj) \
|
|
Packit |
971217 |
((GstPlaySink*)(obj))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GstPlaySinkType:
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_AUDIO: an audio pad
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_AUDIO_RAW: a raw audio pad. Deprecated.
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_VIDEO: a video pad
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad. Deprecated.
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_TEXT: a text pad
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_LAST: the last type
|
|
Packit |
971217 |
* @GST_PLAY_SINK_TYPE_FLUSHING: a flushing pad, used when shutting down
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Types of pads that can be requested from the sinks.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
typedef enum {
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_AUDIO = 0,
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_AUDIO_RAW = 1,
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_VIDEO = 2,
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_VIDEO_RAW = 3,
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_TEXT = 4,
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_LAST = 5,
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* this is a dummy pad */
|
|
Packit |
971217 |
GST_PLAY_SINK_TYPE_FLUSHING = 6
|
|
Packit |
971217 |
} GstPlaySinkType;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstPlaySink GstPlaySink;
|
|
Packit |
971217 |
typedef struct _GstPlaySinkClass GstPlaySinkClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_play_sink_get_type (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstPad * gst_play_sink_request_pad (GstPlaySink *playsink, GstPlaySinkType type);
|
|
Packit |
971217 |
void gst_play_sink_release_pad (GstPlaySink *playsink, GstPad *pad);
|
|
Packit |
971217 |
void gst_play_sink_refresh_pad (GstPlaySink *playsink, GstPad *pad, GstPlaySinkType type);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_filter (GstPlaySink * playsink, GstPlaySinkType type, GstElement * filter);
|
|
Packit |
971217 |
GstElement * gst_play_sink_get_filter (GstPlaySink * playsink, GstPlaySinkType type);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_sink (GstPlaySink * playsink, GstPlaySinkType type, GstElement * sink);
|
|
Packit |
971217 |
GstElement * gst_play_sink_get_sink (GstPlaySink * playsink, GstPlaySinkType type);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_vis_plugin (GstPlaySink * playsink, GstElement * vis);
|
|
Packit |
971217 |
GstElement * gst_play_sink_get_vis_plugin (GstPlaySink * playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_volume (GstPlaySink *playsink, gdouble volume);
|
|
Packit |
971217 |
gdouble gst_play_sink_get_volume (GstPlaySink *playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_mute (GstPlaySink *playsink, gboolean mute);
|
|
Packit |
971217 |
gboolean gst_play_sink_get_mute (GstPlaySink *playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean gst_play_sink_set_flags (GstPlaySink * playsink, GstPlayFlags flags);
|
|
Packit |
971217 |
GstPlayFlags gst_play_sink_get_flags (GstPlaySink * playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_font_desc (GstPlaySink *playsink, const gchar * desc);
|
|
Packit |
971217 |
gchar * gst_play_sink_get_font_desc (GstPlaySink *playsink);
|
|
Packit |
971217 |
void gst_play_sink_set_subtitle_encoding (GstPlaySink *playsink, const gchar * encoding);
|
|
Packit |
971217 |
gchar * gst_play_sink_get_subtitle_encoding (GstPlaySink *playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_play_sink_set_av_offset (GstPlaySink *playsink, gint64 av_offset);
|
|
Packit |
971217 |
gint64 gst_play_sink_get_av_offset (GstPlaySink *playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstSample * gst_play_sink_get_last_sample (GstPlaySink * playsink);
|
|
Packit |
971217 |
GstSample * gst_play_sink_convert_sample (GstPlaySink * playsink, GstCaps * caps);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean gst_play_sink_reconfigure (GstPlaySink * playsink);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gboolean gst_play_sink_plugin_init (GstPlugin * plugin);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_PLAY_SINK_H__ */
|