summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2013-05-18 14:01:22 -0700
committerDavid Schleef <ds@schleef.org>2013-05-18 14:02:18 -0700
commit15f4154b6af56989a2c661cb515dad67cc374e3d (patch)
treee143118c4f24832175fadfdaae265499c95907d9 /tools
parent35018ae6323645833bdd2ba604a7eb1954d12aa3 (diff)
downloadgstreamer-plugins-bad-15f4154b6af56989a2c661cb515dad67cc374e3d.tar.gz
element-maker: Add transform functions to audiofilter
Diffstat (limited to 'tools')
-rw-r--r--tools/element-templates/audiofilter29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/element-templates/audiofilter b/tools/element-templates/audiofilter
index 01ac322ce..efd496911 100644
--- a/tools/element-templates/audiofilter
+++ b/tools/element-templates/audiofilter
@@ -13,10 +13,17 @@ gstreamer-audio-1.0
% prototypes
static gboolean gst_replace_setup (GstAudioFilter * filter,
const GstAudioInfo * info);
+static GstFlowReturn gst_replace_transform (GstBaseTransform * trans,
+ GstBuffer * inbuf, GstBuffer * outbuf);
+static GstFlowReturn gst_replace_transform_ip (GstBaseTransform * trans,
+ GstBuffer * buf);
% declare-class
+ GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);
GstAudioFilterClass *audio_filter_class = GST_AUDIO_FILTER_CLASS (klass);
% set-methods
audio_filter_class->setup = GST_DEBUG_FUNCPTR (gst_replace_setup);
+ base_transform_class->transform = GST_DEBUG_FUNCPTR (gst_replace_transform);
+ base_transform_class->transform_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_ip);
% methods
static gboolean
gst_replace_setup (GstAudioFilter * filter, const GstAudioInfo * info)
@@ -27,4 +34,26 @@ gst_replace_setup (GstAudioFilter * filter, const GstAudioInfo * info)
return TRUE;
}
+
+/* transform */
+static GstFlowReturn
+gst_replace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
+ GstBuffer * outbuf)
+{
+ GstReplace *replace = GST_REPLACE (trans);
+
+ GST_DEBUG_OBJECT (replace, "transform");
+
+ return GST_FLOW_OK;
+}
+
+static GstFlowReturn
+gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
+{
+ GstReplace *replace = GST_REPLACE (trans);
+
+ GST_DEBUG_OBJECT (replace, "transform_ip");
+
+ return GST_FLOW_OK;
+}
% end