element-maker: clean up bits from previous commit
authorDavid Schleef <ds@schleef.org>
Fri, 15 Mar 2013 07:25:43 +0000 (00:25 -0700)
committerDavid Schleef <ds@schleef.org>
Sat, 16 Mar 2013 03:30:01 +0000 (20:30 -0700)
Files that were supposed to be in the previous element-maker
commit.  This is what happens when cherry-pick doesn't work.

tools/element-templates/sinkpad-template
tools/element-templates/sinkpad-template-video
tools/element-templates/srcpad-template
tools/element-templates/srcpad-template-video

index b06b346..785365d 100644 (file)
@@ -11,8 +11,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
     );
 
 % base-init
-  gst_element_class_add_static_pad_template (element_class,
-      &gst_replace_sink_template);
+  gst_element_class_add_pad_template (element_class,
+      gst_static_pad_template_get (&gst_replace_sink_template);
 % instance-init
 % methods
 % end
index b317c6f..b11965d 100644 (file)
@@ -1,21 +1,12 @@
 /* vim: set filetype=c: */
 
 % instance-members
+  GstPad *sinkpad;
 % prototypes
 % pad-template
 /* FIXME: add/remove formats you can handle */
 #define VIDEO_SINK_CAPS \
-    GST_VIDEO_CAPS_RGBA "; " \
-    GST_VIDEO_CAPS_ARGB "; " \
-    GST_VIDEO_CAPS_BGRA "; " \
-    GST_VIDEO_CAPS_ABGR "; " \
-    GST_VIDEO_CAPS_RGBx "; " \
-    GST_VIDEO_CAPS_xRGB "; " \
-    GST_VIDEO_CAPS_BGRx "; " \
-    GST_VIDEO_CAPS_xBGR "; " \
-    GST_VIDEO_CAPS_RGB  "; " \
-    GST_VIDEO_CAPS_BGR  "; " \
-    GST_VIDEO_CAPS_YUV("{ AYUV }")
+    GST_VIDEO_CAPS_MAKE("{ I420, Y444, Y42B, UYVY, RGBA }")
 
 static GstStaticPadTemplate gst_replace_sink_template =
 GST_STATIC_PAD_TEMPLATE ("sink",
@@ -25,9 +16,11 @@ GST_STATIC_PAD_TEMPLATE ("sink",
     );
 
 % base-init
-  gst_element_class_add_static_pad_template (element_class,
-      &gst_replace_sink_template);
+  gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
+      gst_static_pad_template_get (&gst_replace_sink_template));
 % instance-init
+  replace->sinkpad = gst_pad_new_from_static_template (
+      &gst_replace_sink_template, "sink");
 % methods
 % end
 
index dd0842b..020f6a2 100644 (file)
@@ -11,8 +11,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
     );
 
 % base-init
-  gst_element_class_add_static_pad_template (element_class,
-      &gst_replace_src_template);
+  gst_element_class_add_pad_template (element_class,
+      gst_static_pad_template_get (&gst_replace_src_template);
 % instance-init
 % methods
 % end
index 4f39320..6e233df 100644 (file)
@@ -1,21 +1,12 @@
 /* vim: set filetype=c: */
 
 % instance-members
+  GstPad *srcpad;
 % prototypes
 % pad-template
 /* FIXME: add/remove formats you can handle */
 #define VIDEO_SRC_CAPS \
-    GST_VIDEO_CAPS_RGBA "; " \
-    GST_VIDEO_CAPS_ARGB "; " \
-    GST_VIDEO_CAPS_BGRA "; " \
-    GST_VIDEO_CAPS_ABGR "; " \
-    GST_VIDEO_CAPS_RGBx "; " \
-    GST_VIDEO_CAPS_xRGB "; " \
-    GST_VIDEO_CAPS_BGRx "; " \
-    GST_VIDEO_CAPS_xBGR "; " \
-    GST_VIDEO_CAPS_RGB  "; " \
-    GST_VIDEO_CAPS_BGR  "; " \
-    GST_VIDEO_CAPS_YUV("{ AYUV }")
+    GST_VIDEO_CAPS_MAKE("{ I420, Y444, Y42B, UYVY, RGBA }")
 
 static GstStaticPadTemplate gst_replace_src_template =
 GST_STATIC_PAD_TEMPLATE ("src",
@@ -25,8 +16,11 @@ GST_STATIC_PAD_TEMPLATE ("src",
     );
 
 % base-init
-  gst_element_class_add_static_pad_template (element_class,
-      &gst_replace_src_template);
+  gst_element_class_add_pad_template (GST_ELEMENT_CLASS(klass),
+      gst_static_pad_template_get (&gst_replace_src_template));
+% instance-init
+  replace->srcpad = gst_pad_new_from_static_template (
+      &gst_replace_src_template, "src");
 % instance-init
 % methods
 % end