Revert "Revert "Use init functions for Orc code""
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 9 Sep 2010 08:57:41 +0000 (10:57 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 9 Sep 2010 08:57:41 +0000 (10:57 +0200)
This reverts commit 93aa13639d74449dc68296427e5dbcfe8aca5f51.

Everything should work now after regenerating the disted source files.

gst/adder/gstadder.c
gst/adder/gstadderorc.orc
gst/audioconvert/gstaudioconvertorc.orc
gst/audioconvert/plugin.c
gst/videoscale/gstvideoscale.c
gst/videoscale/gstvideoscaleorc.orc
gst/videotestsrc/gstvideotestsrc.c
gst/videotestsrc/gstvideotestsrcorc.orc
gst/volume/gstvolume.c
gst/volume/gstvolumeorc.orc

index 07a1f34..f8a30a9 100644 (file)
@@ -1291,8 +1291,7 @@ gst_adder_change_state (GstElement * element, GstStateChange transition)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-  GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "adder", 0,
-      "audio channel mixing element");
+  gst_adder_orc_init ();
 
   if (!gst_element_register (plugin, "adder", GST_RANK_NONE, GST_TYPE_ADDER)) {
     return FALSE;
index e37f4a9..f8c3caf 100644 (file)
@@ -1,4 +1,6 @@
 
+.init gst_adder_orc_init
+
 .function add_int32
 .dest 4 d1 gint32
 .source 4 s1 gint32
index aad07e9..1bed605 100644 (file)
@@ -1,4 +1,6 @@
 
+.init gst_audio_convert_orc_init
+
 .function orc_audio_convert_unpack_u8
 .dest 4 d1 gint32
 .source 1 s1 guint8
index 643737a..45882dc 100644 (file)
 #include "plugin.h"
 
 #include <gst/audio/multichannel.h>
+#include "gstaudioconvertorc.h"
 
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  gst_audio_convert_orc_init ();
+
   /* ensure GstAudioChannelPosition type is registered */
   if (!gst_audio_channel_position_get_type ())
     return FALSE;
index b3aeb21..b0f8f43 100644 (file)
@@ -79,6 +79,7 @@
 #include <gst/video/video.h>
 
 #include "gstvideoscale.h"
+#include "gstvideoscaleorc.h"
 #include "vs_image.h"
 #include "vs_4tap.h"
 #include "vs_fill_borders.h"
@@ -1289,6 +1290,8 @@ gst_video_scale_src_event (GstBaseTransform * trans, GstEvent * event)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  gst_videoscale_orc_init ();
+
   if (!gst_element_register (plugin, "videoscale", GST_RANK_NONE,
           GST_TYPE_VIDEO_SCALE))
     return FALSE;
index 45434fc..561f411 100644 (file)
@@ -1,4 +1,6 @@
 
+.init gst_videoscale_orc_init
+
 .function orc_merge_linear_u8
 .dest 1 d1
 .source 1 s1
index 35f1292..fe3a99b 100644 (file)
@@ -37,6 +37,7 @@
 #include "config.h"
 #endif
 #include "gstvideotestsrc.h"
+#include "gstvideotestsrcorc.h"
 #include "videotestsrc.h"
 
 #include <string.h>
@@ -919,6 +920,8 @@ gst_video_test_src_start (GstBaseSrc * basesrc)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  gst_videotestsrc_orc_init ();
+
   GST_DEBUG_CATEGORY_INIT (video_test_src_debug, "videotestsrc", 0,
       "Video Test Source");
 
index 30097fd..a2fc80b 100644 (file)
@@ -1,4 +1,6 @@
 
+.init gst_videotestsrc_orc_init
+
 .function gst_orc_splat_u8
 .dest 1 d1 guint8
 .param 1 p1
index 269f712..c37eeea 100644 (file)
@@ -1078,6 +1078,8 @@ volume_get_property (GObject * object, guint prop_id, GValue * value,
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  gst_volume_orc_init ();
+
   /* initialize gst controller library */
   gst_controller_init (NULL, NULL);
 
index 0f6da91..8e100a4 100644 (file)
@@ -1,4 +1,6 @@
 
+.init gst_volume_orc_init
+
 .function orc_scalarmultiply_f32_ns
 .dest 4 d1 float
 .source 4 s1 float