mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
f6f9563dc8
Add a script that creates elements based on any of the GStreamer base classes. It isn't very user friendly at the moment, one needs to edit the script to make it work properly. Each base class has a template file describing what to put into the constructed element. Eventually, these templates should be moved to reside with the base class source and installed to a well-known directory, where an installed script could find them. The template files use the .c ending so editors know they are C source, but gst-indent doesn't handle them correctly. So they need to be committed with -n. Ugh. I'll try to figure out a fix for that soon.
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
% ClassName
|
|
GstTagDemux
|
|
% TYPE_CLASS_NAME
|
|
GST_TYPE_TAG_DEMUX
|
|
% pkg-config
|
|
gstreamer-tag-0.10
|
|
% includes
|
|
#include <gst/tag/gsttagdemux.h>
|
|
% prototypes
|
|
static gboolean
|
|
gst_replace_identify_tag (GstTagDemux * demux,
|
|
GstBuffer * buffer, gboolean start_tag, guint * tag_size);
|
|
static GstTagDemuxResult
|
|
gst_replace_parse_tag (GstTagDemux * demux,
|
|
GstBuffer * buffer,
|
|
gboolean start_tag, guint * tag_size, GstTagList ** tags);
|
|
static GstTagList *gst_replace_merge_tags (GstTagDemux * demux,
|
|
const GstTagList * start_tags, const GstTagList * end_tags);
|
|
% declare-class
|
|
GstTagdemux *tagdemux_class = GST_TAGDEMUX (klass);
|
|
% set-methods
|
|
tagdemux_class-> = GST_DEBUG_FUNCPTR (gst_replace_);
|
|
% methods
|
|
|
|
|
|
static gboolean
|
|
gst_replace_identify_tag (GstTagDemux * demux,
|
|
GstBuffer * buffer, gboolean start_tag, guint * tag_size)
|
|
{
|
|
|
|
}
|
|
|
|
static GstTagDemuxResult
|
|
gst_replace_parse_tag (GstTagDemux * demux,
|
|
GstBuffer * buffer,
|
|
gboolean start_tag, guint * tag_size, GstTagList ** tags)
|
|
{
|
|
|
|
}
|
|
|
|
static GstTagList *
|
|
gst_replace_merge_tags (GstTagDemux * demux,
|
|
const GstTagList * start_tags, const GstTagList * end_tags)
|
|
{
|
|
|
|
}
|
|
% end
|