mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +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.
29 lines
562 B
C
29 lines
562 B
C
% ClassName
|
|
GstVideoSink
|
|
% TYPE_CLASS_NAME
|
|
GST_TYPE_VIDEO_SINK
|
|
% pkg-config
|
|
gstreamer-video-0.10
|
|
% includes
|
|
#include <gst/video/gstvideosink.h>
|
|
% prototypes
|
|
|
|
static GstFlowReturn
|
|
gst_replace_show_frame (GstVideoSink * video_sink, GstBuffer * buf);
|
|
|
|
|
|
% declare-class
|
|
GstVideoSinkClass *video_sink_class = GST_VIDEO_SINK_CLASS (klass);
|
|
% set-methods
|
|
video_sink_class->show_frame = GST_DEBUG_FUNCPTR (gst_replace_show_frame);
|
|
% methods
|
|
|
|
static GstFlowReturn
|
|
gst_replace_show_frame (GstVideoSink * video_sink, GstBuffer * buf)
|
|
{
|
|
|
|
return GST_FLOW_OK;
|
|
}
|
|
|
|
% end
|
|
|