4 GST_TYPE_BASE_TRANSFORM
8 #include <gst/base/gstbasetransform.h>
10 static GstCaps *gst_replace_transform_caps (GstBaseTransform * trans,
11 GstPadDirection direction, GstCaps * caps);
13 gst_replace_fixate_caps (GstBaseTransform * trans,
14 GstPadDirection direction, GstCaps * caps, GstCaps * othercaps);
16 gst_replace_transform_size (GstBaseTransform * trans,
17 GstPadDirection direction,
18 GstCaps * caps, guint size, GstCaps * othercaps, guint * othersize);
20 gst_replace_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
23 gst_replace_set_caps (GstBaseTransform * trans, GstCaps * incaps,
25 static gboolean gst_replace_start (GstBaseTransform * trans);
26 static gboolean gst_replace_stop (GstBaseTransform * trans);
27 static gboolean gst_replace_event (GstBaseTransform * trans, GstEvent * event);
29 gst_replace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
32 gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf);
34 gst_replace_prepare_output_buffer (GstBaseTransform * trans,
35 GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf);
37 gst_replace_src_event (GstBaseTransform * trans, GstEvent * event);
39 gst_replace_before_transform (GstBaseTransform * trans, GstBuffer * buffer);
41 GstBaseTransformClass *base_transform_class = GST_BASE_TRANSFORM_CLASS (klass);
43 base_transform_class->transform_caps = GST_DEBUG_FUNCPTR (gst_replace_transform_caps);
44 base_transform_class->fixate_caps = GST_DEBUG_FUNCPTR (gst_replace_fixate_caps);
45 base_transform_class->transform_size = GST_DEBUG_FUNCPTR (gst_replace_transform_size);
46 base_transform_class->get_unit_size = GST_DEBUG_FUNCPTR (gst_replace_get_unit_size);
47 base_transform_class->set_caps = GST_DEBUG_FUNCPTR (gst_replace_set_caps);
48 base_transform_class->start = GST_DEBUG_FUNCPTR (gst_replace_start);
49 base_transform_class->stop = GST_DEBUG_FUNCPTR (gst_replace_stop);
50 base_transform_class->event = GST_DEBUG_FUNCPTR (gst_replace_event);
51 base_transform_class->transform = GST_DEBUG_FUNCPTR (gst_replace_transform);
52 base_transform_class->transform_ip = GST_DEBUG_FUNCPTR (gst_replace_transform_ip);
53 base_transform_class->prepare_output_buffer = GST_DEBUG_FUNCPTR (gst_replace_prepare_output_buffer);
54 base_transform_class->src_event = GST_DEBUG_FUNCPTR (gst_replace_src_event);
55 base_transform_class->before_transform = GST_DEBUG_FUNCPTR (gst_replace_before_transform);
59 gst_replace_transform_caps (GstBaseTransform * trans,
60 GstPadDirection direction, GstCaps * caps)
67 gst_replace_fixate_caps (GstBaseTransform * trans,
68 GstPadDirection direction, GstCaps * caps, GstCaps * othercaps)
74 gst_replace_transform_size (GstBaseTransform * trans,
75 GstPadDirection direction,
76 GstCaps * caps, guint size, GstCaps * othercaps, guint * othersize)
83 gst_replace_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
91 gst_replace_set_caps (GstBaseTransform * trans, GstCaps * incaps,
99 gst_replace_start (GstBaseTransform * trans)
106 gst_replace_stop (GstBaseTransform * trans)
113 gst_replace_event (GstBaseTransform * trans, GstEvent * event)
120 gst_replace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
124 return GST_FLOW_ERROR;
128 gst_replace_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
131 return GST_FLOW_ERROR;
135 gst_replace_prepare_output_buffer (GstBaseTransform * trans,
136 GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf)
139 return GST_FLOW_ERROR;
143 gst_replace_src_event (GstBaseTransform * trans, GstEvent * event)
150 gst_replace_before_transform (GstBaseTransform * trans, GstBuffer * buffer)