mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
860ccd414d
Conflicts: NEWS RELEASE common configure.ac docs/libs/gst-plugins-bad-libs-sections.txt docs/plugins/gst-plugins-bad-plugins.args docs/plugins/gst-plugins-bad-plugins.hierarchy docs/plugins/gst-plugins-bad-plugins.interfaces docs/plugins/inspect/plugin-adpcmdec.xml docs/plugins/inspect/plugin-adpcmenc.xml docs/plugins/inspect/plugin-assrender.xml docs/plugins/inspect/plugin-audiovisualizers.xml docs/plugins/inspect/plugin-autoconvert.xml docs/plugins/inspect/plugin-bayer.xml docs/plugins/inspect/plugin-bz2.xml docs/plugins/inspect/plugin-camerabin2.xml docs/plugins/inspect/plugin-celt.xml docs/plugins/inspect/plugin-dataurisrc.xml docs/plugins/inspect/plugin-debugutilsbad.xml docs/plugins/inspect/plugin-dtmf.xml docs/plugins/inspect/plugin-dtsdec.xml docs/plugins/inspect/plugin-dvbsuboverlay.xml docs/plugins/inspect/plugin-dvdspu.xml docs/plugins/inspect/plugin-faac.xml docs/plugins/inspect/plugin-faad.xml docs/plugins/inspect/plugin-gsm.xml docs/plugins/inspect/plugin-h264parse.xml docs/plugins/inspect/plugin-mms.xml docs/plugins/inspect/plugin-modplug.xml docs/plugins/inspect/plugin-mpeg2enc.xml docs/plugins/inspect/plugin-mpegdemux2.xml docs/plugins/inspect/plugin-mpegtsdemux.xml docs/plugins/inspect/plugin-mpegvideoparse.xml docs/plugins/inspect/plugin-mplex.xml docs/plugins/inspect/plugin-pcapparse.xml docs/plugins/inspect/plugin-rawparse.xml docs/plugins/inspect/plugin-rtpmux.xml docs/plugins/inspect/plugin-rtpvp8.xml docs/plugins/inspect/plugin-scaletempo.xml docs/plugins/inspect/plugin-schro.xml docs/plugins/inspect/plugin-sdp.xml docs/plugins/inspect/plugin-segmentclip.xml docs/plugins/inspect/plugin-shm.xml docs/plugins/inspect/plugin-videomaxrate.xml docs/plugins/inspect/plugin-videoparsersbad.xml docs/plugins/inspect/plugin-vp8.xml docs/plugins/inspect/plugin-y4mdec.xml ext/celt/gstceltdec.c ext/dts/gstdtsdec.c ext/modplug/gstmodplug.cc ext/opus/gstopusenc.c gst-libs/gst/video/gstbasevideocodec.c gst-libs/gst/video/gstbasevideocodec.h gst-libs/gst/video/gstbasevideodecoder.c gst-libs/gst/video/gstbasevideodecoder.h gst-libs/gst/video/gstbasevideoencoder.c gst-libs/gst/video/gstbasevideoencoder.h gst/adpcmdec/Makefile.am gst/audiovisualizers/gstbaseaudiovisualizer.c gst/h264parse/gsth264parse.c gst/mpegdemux/mpegtsparse.c gst/mpegtsdemux/mpegtsbase.c gst/mpegtsdemux/mpegtspacketizer.c gst/mpegtsdemux/mpegtsparse.c gst/mpegtsdemux/tsdemux.c gst/mpegtsdemux/tsdemux.h gst/mxf/mxfdemux.c gst/rawparse/gstaudioparse.c gst/videoparsers/gsth263parse.c gst/videoparsers/gsth264parse.c sys/d3dvideosink/d3dvideosink.c sys/decklink/gstdecklinksink.cpp sys/dvb/gstdvbsrc.c sys/shm/gstshmsrc.c sys/vdpau/h264/gstvdph264dec.c sys/vdpau/mpeg/gstvdpmpegdec.c tests/examples/opencv/gst_element_print_properties.c win32/common/config.h
139 lines
3.5 KiB
C
139 lines
3.5 KiB
C
/* vim: set filetype=c: */
|
|
% ClassName
|
|
GstElement
|
|
% TYPE_CLASS_NAME
|
|
GST_TYPE_ELEMENT
|
|
% pads
|
|
sinkpad srcpad
|
|
% pkg-config
|
|
gstreamer-0.10
|
|
% includes
|
|
#include <gst/gst.h>
|
|
% prototypes
|
|
static GstPad *gst_replace_request_new_pad (GstElement * element,
|
|
GstPadTemplate * templ, const gchar * name);
|
|
static void gst_replace_release_pad (GstElement * element, GstPad * pad);
|
|
static GstStateChangeReturn
|
|
gst_replace_change_state (GstElement * element, GstStateChange transition);
|
|
static GstClock *gst_replace_provide_clock (GstElement * element);
|
|
static gboolean gst_replace_set_clock (GstElement * element, GstClock * clock);
|
|
static GstIndex *gst_replace_get_index (GstElement * element);
|
|
static void gst_replace_set_index (GstElement * element, GstIndex * index);
|
|
static gboolean gst_replace_send_event (GstElement * element, GstEvent * event);
|
|
static gboolean gst_replace_query (GstElement * element, GstQuery * query);
|
|
% declare-class
|
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
|
% set-methods
|
|
element_class->request_new_pad = GST_DEBUG_FUNCPTR (gst_replace_request_new_pad);
|
|
element_class->release_pad = GST_DEBUG_FUNCPTR (gst_replace_release_pad);
|
|
element_class->change_state = GST_DEBUG_FUNCPTR (gst_replace_change_state);
|
|
element_class->provide_clock = GST_DEBUG_FUNCPTR (gst_replace_provide_clock);
|
|
element_class->set_clock = GST_DEBUG_FUNCPTR (gst_replace_set_clock);
|
|
element_class->get_index = GST_DEBUG_FUNCPTR (gst_replace_get_index);
|
|
element_class->set_index = GST_DEBUG_FUNCPTR (gst_replace_set_index);
|
|
element_class->send_event = GST_DEBUG_FUNCPTR (gst_replace_send_event);
|
|
element_class->query = GST_DEBUG_FUNCPTR (gst_replace_query);
|
|
% methods
|
|
|
|
|
|
static GstPad *
|
|
gst_replace_request_new_pad (GstElement * element, GstPadTemplate * templ,
|
|
const gchar * name)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static void
|
|
gst_replace_release_pad (GstElement * element, GstPad * pad)
|
|
{
|
|
|
|
}
|
|
|
|
static GstStateChangeReturn
|
|
gst_replace_change_state (GstElement * element, GstStateChange transition)
|
|
{
|
|
GstReplace *replace;
|
|
GstStateChangeReturn ret;
|
|
|
|
g_return_val_if_fail (GST_IS_REPLACE (element), GST_STATE_CHANGE_FAILURE);
|
|
replace = GST_REPLACE (element);
|
|
|
|
switch (transition) {
|
|
case GST_STATE_CHANGE_NULL_TO_READY:
|
|
break;
|
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
|
break;
|
|
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
|
|
|
switch (transition) {
|
|
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
|
break;
|
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
|
break;
|
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
static GstClock *
|
|
gst_replace_provide_clock (GstElement * element)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static gboolean
|
|
gst_replace_set_clock (GstElement * element, GstClock * clock)
|
|
{
|
|
|
|
return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
|
|
}
|
|
|
|
static GstIndex *
|
|
gst_replace_get_index (GstElement * element)
|
|
{
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static void
|
|
gst_replace_set_index (GstElement * element, GstIndex * index)
|
|
{
|
|
|
|
}
|
|
|
|
static gboolean
|
|
gst_replace_send_event (GstElement * element, GstEvent * event)
|
|
{
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
static gboolean
|
|
gst_replace_query (GstElement * element, GstQuery * query)
|
|
{
|
|
GstReplace *replace = GST_REPLACE (element);
|
|
gboolean ret;
|
|
|
|
GST_DEBUG_OBJECT (replace, "query");
|
|
|
|
switch (GST_QUERY_TYPE (query)) {
|
|
default:
|
|
ret = GST_ELEMENT_CLASS (parent_class)->query (element, query);
|
|
break;
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
% end
|