projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98e7ec4
)
element-template: add start/stop to videofilter
author
David Schleef
<ds@schleef.org>
Fri, 12 Apr 2013 21:09:24 +0000
(14:09 -0700)
committer
David Schleef
<ds@schleef.org>
Fri, 12 Apr 2013 21:11:10 +0000
(14:11 -0700)
tools/element-templates/videofilter
patch
|
blob
|
history
diff --git
a/tools/element-templates/videofilter
b/tools/element-templates/videofilter
index 9b07557dd1ec26ff29d11acd59d824f1c41020f8..5bc68ba248149e456ae935db50f45461f702743b 100644
(file)
--- a/
tools/element-templates/videofilter
+++ b/
tools/element-templates/videofilter
@@
-12,6
+12,8
@@
gstreamer-video-1.0
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
% prototypes
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
% prototypes
+static gboolean gst_replace_start (GstBaseTransform * trans);
+static gboolean gst_replace_stop (GstBaseTransform * trans);
static gboolean gst_replace_set_info (GstVideoFilter * filter, GstCaps * incaps,
GstVideoInfo * in_info, GstCaps * outcaps, GstVideoInfo * out_info);
static GstFlowReturn gst_replace_transform_frame (GstVideoFilter * filter,
static gboolean gst_replace_set_info (GstVideoFilter * filter, GstCaps * incaps,
GstVideoInfo * in_info, GstCaps * outcaps, GstVideoInfo * out_info);
static GstFlowReturn gst_replace_transform_frame (GstVideoFilter * filter,
@@
-19,12
+21,35
@@
static GstFlowReturn gst_replace_transform_frame (GstVideoFilter * filter,
static GstFlowReturn gst_replace_transform_frame_ip (GstVideoFilter * filter,
GstVideoFrame * frame);
% declare-class
static GstFlowReturn gst_replace_transform_frame_ip (GstVideoFilter * filter,
GstVideoFrame * frame);
% declare-class
+ GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);
GstVideoFilterClass *video_filter_class = GST_VIDEO_FILTER_CLASS (klass);
% set-methods
GstVideoFilterClass *video_filter_class = GST_VIDEO_FILTER_CLASS (klass);
% set-methods
+ base_transform_class->start = GST_DEBUG_FUNCPTR (gst_replace_start);
+ base_transform_class->stop = GST_DEBUG_FUNCPTR (gst_replace_stop);
video_filter_class->set_info = GST_DEBUG_FUNCPTR (gst_replace_set_info);
video_filter_class->transform_frame = GST_DEBUG_FUNCPTR (gst_replace_transform_frame);
video_filter_class->transform_frame_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_frame_ip);
% methods
video_filter_class->set_info = GST_DEBUG_FUNCPTR (gst_replace_set_info);
video_filter_class->transform_frame = GST_DEBUG_FUNCPTR (gst_replace_transform_frame);
video_filter_class->transform_frame_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_frame_ip);
% methods
+static gboolean
+gst_replace_start (GstBaseTransform * trans)
+{
+ GstReplace *replace = GST_REPLACE (trans);
+
+ GST_DEBUG_OBJECT (replace, "start");
+
+ return TRUE;
+}
+
+static gboolean
+gst_replace_stop (GstBaseTransform * trans)
+{
+ GstReplace *replace = GST_REPLACE (trans);
+
+ GST_DEBUG_OBJECT (replace, "stop");
+
+ return TRUE;
+}
+
static gboolean
gst_replace_set_info (GstVideoFilter * filter, GstCaps * incaps,
GstVideoInfo * in_info, GstCaps * outcaps, GstVideoInfo * out_info)
static gboolean
gst_replace_set_info (GstVideoFilter * filter, GstCaps * incaps,
GstVideoInfo * in_info, GstCaps * outcaps, GstVideoInfo * out_info)