Debian Codegraph @

tools/element-templates/videosink

raw
1 /* vim: set filetype=c: */
2 % ClassName
3 GstVideoSink
4 % TYPE_CLASS_NAME
5 GST_TYPE_VIDEO_SINK
6 % pads
7 sinkpad-template-video
8 % pkg-config
9 gstreamer-video-1.0
10 % includes
11 #include <gst/video/video.h>
12 #include <gst/video/gstvideosink.h>
13 % prototypes
14 static GstFlowReturn gst_replace_show_frame (GstVideoSink * video_sink,
15 GstBuffer * buf);
16 % declare-class
17 GstVideoSinkClass *video_sink_class = GST_VIDEO_SINK_CLASS (klass);
18 % set-methods
19 video_sink_class->show_frame = GST_DEBUG_FUNCPTR (gst_replace_show_frame);
20 % methods
21 static GstFlowReturn
22 gst_replace_show_frame (GstVideoSink * sink, GstBuffer * buf)
23 {
24 GstReplace *replace = GST_REPLACE (sink);
25
26 GST_DEBUG_OBJECT (replace, "show_frame");
27
28 return GST_FLOW_OK;
29 }
30 % end