2010-12-15 20:45:38 +00:00
|
|
|
/* vim: set filetype=c: */
|
2010-04-14 23:32:34 +00:00
|
|
|
% ClassName
|
|
|
|
GstVideoSink
|
|
|
|
% TYPE_CLASS_NAME
|
|
|
|
GST_TYPE_VIDEO_SINK
|
2010-12-15 03:03:09 +00:00
|
|
|
% pads
|
2013-03-15 06:57:06 +00:00
|
|
|
sinkpad-template-video
|
2010-04-14 23:32:34 +00:00
|
|
|
% pkg-config
|
2013-03-15 06:57:06 +00:00
|
|
|
gstreamer-video-1.0
|
2010-04-14 23:32:34 +00:00
|
|
|
% includes
|
2013-03-15 06:57:06 +00:00
|
|
|
#include <gst/video/video.h>
|
2010-04-14 23:32:34 +00:00
|
|
|
#include <gst/video/gstvideosink.h>
|
|
|
|
% prototypes
|
2013-03-15 06:57:06 +00:00
|
|
|
static GstFlowReturn gst_replace_show_frame (GstVideoSink * video_sink,
|
|
|
|
GstBuffer * buf);
|
2010-04-14 23:32:34 +00:00
|
|
|
% 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
|
2013-03-15 06:57:06 +00:00
|
|
|
gst_replace_show_frame (GstVideoSink * sink, GstBuffer * buf)
|
2010-04-14 23:32:34 +00:00
|
|
|
{
|
2013-03-15 06:57:06 +00:00
|
|
|
GstReplace *replace = GST_REPLACE (sink);
|
|
|
|
|
|
|
|
GST_DEBUG_OBJECT (replace, "show_frame");
|
2010-04-14 23:32:34 +00:00
|
|
|
|
|
|
|
return GST_FLOW_OK;
|
|
|
|
}
|
|
|
|
% end
|