4 GST_TYPE_BASE_TRANSFORM
6 sinkpad-simple srcpad-simple
10 sinkpad-simple srcpad-simple
12 #include <gst/base/gstbasetransform.h>
14 static GstCaps *gst_replace_transform_caps (GstBaseTransform * trans,
15 GstPadDirection direction, GstCaps * caps);
17 gst_replace_fixate_caps (GstBaseTransform * trans,
18 GstPadDirection direction, GstCaps * caps, GstCaps * othercaps);
20 gst_replace_transform_size (GstBaseTransform * trans,
21 GstPadDirection direction,
22 GstCaps * caps, guint size, GstCaps * othercaps, guint * othersize);
24 gst_replace_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
27 gst_replace_set_caps (GstBaseTransform * trans, GstCaps * incaps,
29 static gboolean gst_replace_start (GstBaseTransform * trans);
30 static gboolean gst_replace_stop (GstBaseTransform * trans);
31 static gboolean gst_replace_event (GstBaseTransform * trans, GstEvent * event);
33 gst_replace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
36 gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf);
38 gst_replace_prepare_output_buffer (GstBaseTransform * trans,
39 GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf);
41 gst_replace_src_event (GstBaseTransform * trans, GstEvent * event);
43 gst_replace_before_transform (GstBaseTransform * trans, GstBuffer * buffer);
45 GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);
47 base_transform_class->transform_caps = GST_DEBUG_FUNCPTR (gst_replace_transform_caps);
48 base_transform_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_replace_fixate_caps);
49 base_transform_class->transform_size = GST_DEBUG_FUNCPTR (gst_replace_transform_size);
50 base_transform_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_replace_get_unit_size);
51 base_transform_class->set_caps = GST_DEBUG_FUNCPTR (gst_replace_set_caps);
52 base_transform_class->start = GST_DEBUG_FUNCPTR (gst_replace_start);
53 base_transform_class->stop = GST_DEBUG_FUNCPTR (gst_replace_stop);
54 base_transform_class->event = GST_DEBUG_FUNCPTR (gst_replace_event);
55 base_transform_class->transform = GST_DEBUG_FUNCPTR (gst_replace_transform);
56 base_transform_class->transform_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_ip);
57 base_transform_class->prepare_output_buffer = GST_DEBUG_FUNCPTR (gst_replace_prepare_output_buffer);
58 base_transform_class->src_event = GST_DEBUG_FUNCPTR (gst_replace_src_event);
59 base_transform_class->before_transform = GST_DEBUG_FUNCPTR (gst_replace_before_transform);
63 gst_replace_transform_caps (GstBaseTransform * trans,
64 GstPadDirection direction, GstCaps * caps)
71 gst_replace_fixate_caps (GstBaseTransform * trans,
72 GstPadDirection direction, GstCaps * caps, GstCaps * othercaps)
78 gst_replace_transform_size (GstBaseTransform * trans,
79 GstPadDirection direction,
80 GstCaps * caps, guint size, GstCaps * othercaps, guint * othersize)
87 gst_replace_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
95 gst_replace_set_caps (GstBaseTransform * trans, GstCaps * incaps,
103 gst_replace_start (GstBaseTransform * trans)
110 gst_replace_stop (GstBaseTransform * trans)
117 gst_replace_event (GstBaseTransform * trans, GstEvent * event)
124 gst_replace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
128 return GST_FLOW_ERROR;
132 gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
135 return GST_FLOW_ERROR;
139 gst_replace_prepare_output_buffer (GstBaseTransform * trans,
140 GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf)
143 return GST_FLOW_ERROR;
147 gst_replace_src_event (GstBaseTransform * trans, GstEvent * event)
154 gst_replace_before_transform (GstBaseTransform * trans, GstBuffer * buffer)